Skip to content

release: 0.1.0-alpha.14 #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4c6751a
feat(api): OpenAPI spec update via Stainless API (#271)
stainless-app[bot] Aug 20, 2024
e9d3e2d
feat(api): OpenAPI spec update via Stainless API (#273)
stainless-app[bot] Aug 20, 2024
080663e
feat(api): OpenAPI spec update via Stainless API (#274)
stainless-app[bot] Aug 20, 2024
b19a6f9
feat(api): OpenAPI spec update via Stainless API (#275)
stainless-app[bot] Aug 20, 2024
c9c3357
feat(api): OpenAPI spec update via Stainless API (#276)
stainless-app[bot] Aug 22, 2024
1f274a8
feat(api): OpenAPI spec update via Stainless API (#277)
stainless-app[bot] Aug 22, 2024
56cacb5
feat(api): OpenAPI spec update via Stainless API (#278)
stainless-app[bot] Aug 23, 2024
f9f4520
feat(api): OpenAPI spec update via Stainless API (#279)
stainless-app[bot] Aug 23, 2024
18ffd3c
feat(api): OpenAPI spec update via Stainless API (#280)
stainless-app[bot] Aug 23, 2024
af39ea5
feat(api): OpenAPI spec update via Stainless API (#281)
stainless-app[bot] Aug 23, 2024
7df3d07
feat(api): OpenAPI spec update via Stainless API (#282)
stainless-app[bot] Aug 26, 2024
fcd9e6f
feat(api): OpenAPI spec update via Stainless API (#283)
stainless-app[bot] Aug 26, 2024
4e5ce8c
feat(api): OpenAPI spec update via Stainless API (#284)
stainless-app[bot] Aug 26, 2024
e5105fa
feat(api): OpenAPI spec update via Stainless API (#285)
stainless-app[bot] Aug 26, 2024
7a8d128
feat(api): OpenAPI spec update via Stainless API (#286)
stainless-app[bot] Aug 26, 2024
3f07e39
feat(api): OpenAPI spec update via Stainless API (#287)
stainless-app[bot] Aug 26, 2024
9e7569a
feat(api): OpenAPI spec update via Stainless API (#288)
stainless-app[bot] Aug 27, 2024
9614fa0
feat(api): OpenAPI spec update via Stainless API (#289)
stainless-app[bot] Aug 27, 2024
793f960
feat(api): OpenAPI spec update via Stainless API (#290)
stainless-app[bot] Aug 28, 2024
2c4cab2
feat(api): OpenAPI spec update via Stainless API (#291)
stainless-app[bot] Aug 28, 2024
244ea00
feat(api): OpenAPI spec update via Stainless API (#292)
stainless-app[bot] Aug 28, 2024
8998b8d
feat(api): OpenAPI spec update via Stainless API (#293)
stainless-app[bot] Aug 28, 2024
473d442
feat(api): OpenAPI spec update via Stainless API (#294)
stainless-app[bot] Aug 28, 2024
3137813
feat(api): OpenAPI spec update via Stainless API (#295)
stainless-app[bot] Aug 28, 2024
686cce8
feat(api): OpenAPI spec update via Stainless API (#296)
stainless-app[bot] Aug 30, 2024
8af54a0
feat(api): OpenAPI spec update via Stainless API (#297)
stainless-app[bot] Aug 30, 2024
2c8dcf7
codegen metadata
stainless-bot Aug 30, 2024
c9c8a89
codegen metadata
stainless-bot Aug 30, 2024
947f752
codegen metadata
stainless-bot Sep 4, 2024
c06b603
codegen metadata
stainless-bot Sep 4, 2024
0b39be2
codegen metadata
stainless-bot Sep 4, 2024
0a92048
chore: pyproject.toml formatting changes (#298)
stainless-app[bot] Sep 4, 2024
da6834f
codegen metadata
stainless-bot Sep 4, 2024
7da5eaa
codegen metadata
stainless-bot Sep 5, 2024
2f11a03
codegen metadata
stainless-bot Sep 5, 2024
df7548a
codegen metadata
stainless-bot Sep 5, 2024
c8fbc66
codegen metadata
stainless-bot Sep 5, 2024
dae878f
fix file permissions
Sep 6, 2024
0da70b8
feat(api): OpenAPI spec update via Stainless API (#299)
stainless-app[bot] Sep 14, 2024
68f8e74
chore(internal): codegen related update (#300)
stainless-app[bot] Sep 14, 2024
229a803
docs(readme): add section on determining installed version (#301)
stainless-app[bot] Sep 14, 2024
c205f0e
docs: update CONTRIBUTING.md (#302)
stainless-app[bot] Sep 14, 2024
215336e
release: 0.1.0-alpha.14
stainless-app[bot] Sep 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .devcontainer/Dockerfile
100755 → 100644
Empty file.
Empty file modified .devcontainer/devcontainer.json
100755 → 100644
Empty file.
Empty file modified .github/workflows/ci.yml
100755 → 100644
Empty file.
Empty file modified .github/workflows/publish-pypi.yml
100755 → 100644
Empty file.
Empty file modified .github/workflows/release-doctor.yml
100755 → 100644
Empty file.
Empty file modified .gitignore
100755 → 100644
Empty file.
Empty file modified .python-version
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.13"
".": "0.1.0-alpha.14"
}
2 changes: 1 addition & 1 deletion .stats.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-84eb1e848fd165a965df78740df71651a8b413f023e5fdb6eb1acb9cce08e006.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-d232bc0a3409f271bb778f567e5caeb18bea44e721c3d82a78f475f9ca3faa2b.yml
Empty file modified Brewfile
100755 → 100644
Empty file.
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Changelog

## 0.1.0-alpha.14 (2024-09-14)

Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/prompt-foundry/python-sdk/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)

### Features

* **api:** OpenAPI spec update via Stainless API ([#271](https://github.com/prompt-foundry/python-sdk/issues/271)) ([4c6751a](https://github.com/prompt-foundry/python-sdk/commit/4c6751aa300a930de5bebc9bcd0a51fe8d86534a))
* **api:** OpenAPI spec update via Stainless API ([#273](https://github.com/prompt-foundry/python-sdk/issues/273)) ([e9d3e2d](https://github.com/prompt-foundry/python-sdk/commit/e9d3e2d5888bde33ca1b572ff9eb151f5d156e49))
* **api:** OpenAPI spec update via Stainless API ([#274](https://github.com/prompt-foundry/python-sdk/issues/274)) ([080663e](https://github.com/prompt-foundry/python-sdk/commit/080663ea3f50326a5d842045aba98bc4f8f1a510))
* **api:** OpenAPI spec update via Stainless API ([#275](https://github.com/prompt-foundry/python-sdk/issues/275)) ([b19a6f9](https://github.com/prompt-foundry/python-sdk/commit/b19a6f9741b92092bd8821dd2270afce492fc55f))
* **api:** OpenAPI spec update via Stainless API ([#276](https://github.com/prompt-foundry/python-sdk/issues/276)) ([c9c3357](https://github.com/prompt-foundry/python-sdk/commit/c9c3357d3472d7ad1a5599b5e61331adbda3ec45))
* **api:** OpenAPI spec update via Stainless API ([#277](https://github.com/prompt-foundry/python-sdk/issues/277)) ([1f274a8](https://github.com/prompt-foundry/python-sdk/commit/1f274a86f96e2fd7e2e5c60b85e4d4dfe1e3c734))
* **api:** OpenAPI spec update via Stainless API ([#278](https://github.com/prompt-foundry/python-sdk/issues/278)) ([56cacb5](https://github.com/prompt-foundry/python-sdk/commit/56cacb5ad53fa814163afa31e4b247abee281818))
* **api:** OpenAPI spec update via Stainless API ([#279](https://github.com/prompt-foundry/python-sdk/issues/279)) ([f9f4520](https://github.com/prompt-foundry/python-sdk/commit/f9f452070e8ac4149bc9f6dd19c1033bacd5e909))
* **api:** OpenAPI spec update via Stainless API ([#280](https://github.com/prompt-foundry/python-sdk/issues/280)) ([18ffd3c](https://github.com/prompt-foundry/python-sdk/commit/18ffd3cfbc584090777cfdbf47d1772ed48b1884))
* **api:** OpenAPI spec update via Stainless API ([#281](https://github.com/prompt-foundry/python-sdk/issues/281)) ([af39ea5](https://github.com/prompt-foundry/python-sdk/commit/af39ea571f490b98433da4ccc7a432cef4858b8d))
* **api:** OpenAPI spec update via Stainless API ([#282](https://github.com/prompt-foundry/python-sdk/issues/282)) ([7df3d07](https://github.com/prompt-foundry/python-sdk/commit/7df3d073c549d78f97c87213e1d16258ebe4f01c))
* **api:** OpenAPI spec update via Stainless API ([#283](https://github.com/prompt-foundry/python-sdk/issues/283)) ([fcd9e6f](https://github.com/prompt-foundry/python-sdk/commit/fcd9e6fa3ab06ee59402393fe3f153e70a851014))
* **api:** OpenAPI spec update via Stainless API ([#284](https://github.com/prompt-foundry/python-sdk/issues/284)) ([4e5ce8c](https://github.com/prompt-foundry/python-sdk/commit/4e5ce8c858497127ba6389f319bdff61b61af97b))
* **api:** OpenAPI spec update via Stainless API ([#285](https://github.com/prompt-foundry/python-sdk/issues/285)) ([e5105fa](https://github.com/prompt-foundry/python-sdk/commit/e5105fa21ad9859ccb8bdea5f11db74d82401606))
* **api:** OpenAPI spec update via Stainless API ([#286](https://github.com/prompt-foundry/python-sdk/issues/286)) ([7a8d128](https://github.com/prompt-foundry/python-sdk/commit/7a8d128961aaef728df795aafd693fb1f256d647))
* **api:** OpenAPI spec update via Stainless API ([#287](https://github.com/prompt-foundry/python-sdk/issues/287)) ([3f07e39](https://github.com/prompt-foundry/python-sdk/commit/3f07e39f446c97a84d037b81a6b178bb2176d0b8))
* **api:** OpenAPI spec update via Stainless API ([#288](https://github.com/prompt-foundry/python-sdk/issues/288)) ([9e7569a](https://github.com/prompt-foundry/python-sdk/commit/9e7569ad26ab4fd61e3aa84e70293d869673c3c6))
* **api:** OpenAPI spec update via Stainless API ([#289](https://github.com/prompt-foundry/python-sdk/issues/289)) ([9614fa0](https://github.com/prompt-foundry/python-sdk/commit/9614fa0e9c9b28cab752193d3c2c34b4e138f57f))
* **api:** OpenAPI spec update via Stainless API ([#290](https://github.com/prompt-foundry/python-sdk/issues/290)) ([793f960](https://github.com/prompt-foundry/python-sdk/commit/793f9600798a3b656e1069da9471eff70d70ac10))
* **api:** OpenAPI spec update via Stainless API ([#291](https://github.com/prompt-foundry/python-sdk/issues/291)) ([2c4cab2](https://github.com/prompt-foundry/python-sdk/commit/2c4cab2527d40beff0daec2f12d9d444f831dd3c))
* **api:** OpenAPI spec update via Stainless API ([#292](https://github.com/prompt-foundry/python-sdk/issues/292)) ([244ea00](https://github.com/prompt-foundry/python-sdk/commit/244ea00a86a35f3eb68cf2fd7f0e1c6d79054e5b))
* **api:** OpenAPI spec update via Stainless API ([#293](https://github.com/prompt-foundry/python-sdk/issues/293)) ([8998b8d](https://github.com/prompt-foundry/python-sdk/commit/8998b8dae1460bd0892ce00d3eba5683d0f46aa0))
* **api:** OpenAPI spec update via Stainless API ([#294](https://github.com/prompt-foundry/python-sdk/issues/294)) ([473d442](https://github.com/prompt-foundry/python-sdk/commit/473d442b72510d41da63512e4146b9c02f655b1d))
* **api:** OpenAPI spec update via Stainless API ([#295](https://github.com/prompt-foundry/python-sdk/issues/295)) ([3137813](https://github.com/prompt-foundry/python-sdk/commit/3137813996092309100a794ff085ffdbd491c587))
* **api:** OpenAPI spec update via Stainless API ([#296](https://github.com/prompt-foundry/python-sdk/issues/296)) ([686cce8](https://github.com/prompt-foundry/python-sdk/commit/686cce833e31ec43864f6fb59b8f8d23a18b6046))
* **api:** OpenAPI spec update via Stainless API ([#297](https://github.com/prompt-foundry/python-sdk/issues/297)) ([8af54a0](https://github.com/prompt-foundry/python-sdk/commit/8af54a04f733b4f926b227168e220b109237ecd4))
* **api:** OpenAPI spec update via Stainless API ([#299](https://github.com/prompt-foundry/python-sdk/issues/299)) ([0da70b8](https://github.com/prompt-foundry/python-sdk/commit/0da70b849dd098ce919c2c4761e6fa95b5bb40a5))


### Chores

* **internal:** codegen related update ([#300](https://github.com/prompt-foundry/python-sdk/issues/300)) ([68f8e74](https://github.com/prompt-foundry/python-sdk/commit/68f8e74e3ea4213fce959184ae503da561c07229))
* pyproject.toml formatting changes ([#298](https://github.com/prompt-foundry/python-sdk/issues/298)) ([0a92048](https://github.com/prompt-foundry/python-sdk/commit/0a92048e7bbf562ed88d6940163e78083774c106))


### Documentation

* **readme:** add section on determining installed version ([#301](https://github.com/prompt-foundry/python-sdk/issues/301)) ([229a803](https://github.com/prompt-foundry/python-sdk/commit/229a803d0777cb72a9c34c86f314e002fcd4ea2d))
* update CONTRIBUTING.md ([#302](https://github.com/prompt-foundry/python-sdk/issues/302)) ([c205f0e](https://github.com/prompt-foundry/python-sdk/commit/c205f0ea97d9faf98d205d2da14108d67b06d154))

## 0.1.0-alpha.13 (2024-08-20)

Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/prompt-foundry/python-sdk/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ $ pip install -r requirements-dev.lock

## Modifying/Adding code

Most of the SDK is generated code, and any modified code will be overridden on the next generation. The
`src/prompt_foundry_python_sdk/lib/` and `examples/` directories are exceptions and will never be overridden.
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
modify the contents of the `src/prompt_foundry_python_sdk/lib/` and `examples/` directories.

## Adding and running examples

All files in the `examples/` directory are not modified by the Stainless generator and can be freely edited or
added to.
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.

```bash
# add an example to examples/<your-example>.py
Expand Down
Empty file modified LICENSE
100755 → 100644
Empty file.
11 changes: 11 additions & 0 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,17 @@ We take backwards-compatibility seriously and work hard to ensure you can rely o

We are keen for your feedback; please open an [issue](https://www.github.com/prompt-foundry/python-sdk/issues) with questions, bugs, or suggestions.

### Determining the installed version

If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version.

You can determine the version that is being used at runtime with:

```py
import prompt_foundry_python_sdk
print(prompt_foundry_python_sdk.__version__)
```

## Requirements

Python 3.7 or higher.
Empty file modified SECURITY.md
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions api.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Types:

```python
from prompt_foundry_python_sdk.types import (
Parameters,
PromptConfiguration,
PromptListResponse,
PromptDeleteResponse,
PromptGetParametersResponse,
)
```

Expand All @@ -30,7 +30,7 @@ Methods:
- <code title="get /sdk/v1/prompts">client.prompts.<a href="./src/prompt_foundry_python_sdk/resources/prompts.py">list</a>() -> <a href="./src/prompt_foundry_python_sdk/types/prompt_list_response.py">PromptListResponse</a></code>
- <code title="delete /sdk/v1/prompts/{id}">client.prompts.<a href="./src/prompt_foundry_python_sdk/resources/prompts.py">delete</a>(id) -> <a href="./src/prompt_foundry_python_sdk/types/prompt_delete_response.py">PromptDeleteResponse</a></code>
- <code title="get /sdk/v1/prompts/{id}">client.prompts.<a href="./src/prompt_foundry_python_sdk/resources/prompts.py">get</a>(id) -> <a href="./src/prompt_foundry_python_sdk/types/prompt_configuration.py">PromptConfiguration</a></code>
- <code title="post /sdk/v1/prompts/{id}">client.prompts.<a href="./src/prompt_foundry_python_sdk/resources/prompts.py">get_parameters</a>(id, \*\*<a href="src/prompt_foundry_python_sdk/types/prompt_get_parameters_params.py">params</a>) -> <a href="./src/prompt_foundry_python_sdk/types/parameters.py">Parameters</a></code>
- <code title="post /sdk/v1/prompts/{id}">client.prompts.<a href="./src/prompt_foundry_python_sdk/resources/prompts.py">get_parameters</a>(id, \*\*<a href="src/prompt_foundry_python_sdk/types/prompt_get_parameters_params.py">params</a>) -> <a href="./src/prompt_foundry_python_sdk/types/prompt_get_parameters_response.py">PromptGetParametersResponse</a></code>

# Tools

Expand Down
Empty file modified bin/check-release-environment
100755 → 100644
Empty file.
Empty file modified bin/publish-pypi
100755 → 100644
Empty file.
Empty file modified examples/.keep
100755 → 100644
Empty file.
Empty file modified mypy.ini
100755 → 100644
Empty file.
Empty file modified noxfile.py
100755 → 100644
Empty file.
6 changes: 1 addition & 5 deletions pyproject.toml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "prompt_foundry_python_sdk"
version = "0.1.0-alpha.13"
version = "0.1.0-alpha.14"
description = "The prompt engineering, prompt management, and prompt evaluation tool for Python "
keywords = ["llm evaluation", "prompt management", "prompt testing", "prompt engineering"]
dynamic = ["readme"]
Expand All @@ -16,7 +16,6 @@ dependencies = [
"distro>=1.7.0, <2",
"sniffio",
"cached-property; python_version < '3.8'",

]
requires-python = ">= 3.7"
classifiers = [
Expand All @@ -37,8 +36,6 @@ classifiers = [
"License :: OSI Approved :: Apache Software License"
]



[project.urls]
Homepage = "https://https://www.promptfoundry.ai"
Repository = "https://github.com/prompt-foundry/python-sdk"
Expand All @@ -61,7 +58,6 @@ dev-dependencies = [
"dirty-equals>=0.6.0",
"importlib-metadata>=6.7.0",
"rich>=13.7.1",

]

[tool.rye.scripts]
Expand Down
Empty file modified release-please-config.json
100755 → 100644
Empty file.
Empty file modified requirements-dev.lock
100755 → 100644
Empty file.
Empty file modified requirements.lock
100755 → 100644
Empty file.
Empty file modified scripts/utils/ruffen-docs.py
100755 → 100644
Empty file.
Empty file modified src/prompt-foundry-python-sdk/lib/.keep
100755 → 100644
Empty file.
Empty file modified src/prompt-foundry-sdk/lib/.keep
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/__init__.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_base_client.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_client.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_compat.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_constants.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_exceptions.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_files.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_models.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_qs.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_resource.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_response.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_streaming.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_types.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/__init__.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_logs.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_proxy.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_reflection.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_streams.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_sync.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_transform.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_typing.py
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/_utils/_utils.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion src/prompt_foundry_python_sdk/_version.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "prompt_foundry_python_sdk"
__version__ = "0.1.0-alpha.13" # x-release-please-version
__version__ = "0.1.0-alpha.14" # x-release-please-version
Empty file modified src/prompt_foundry_python_sdk/lib/.keep
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/py.typed
100755 → 100644
Empty file.
Empty file modified src/prompt_foundry_python_sdk/resources/__init__.py
100755 → 100644
Empty file.
22 changes: 22 additions & 0 deletions src/prompt_foundry_python_sdk/resources/completion.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,21 @@
class CompletionResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CompletionResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
"""
return CompletionResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> CompletionResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
"""
return CompletionResourceWithStreamingResponse(self)

def create(
Expand Down Expand Up @@ -98,10 +109,21 @@ def create(
class AsyncCompletionResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCompletionResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCompletionResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncCompletionResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
"""
return AsyncCompletionResourceWithStreamingResponse(self)

async def create(
Expand Down
22 changes: 22 additions & 0 deletions src/prompt_foundry_python_sdk/resources/evaluation_assertions.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,21 @@
class EvaluationAssertionsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> EvaluationAssertionsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
"""
return EvaluationAssertionsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> EvaluationAssertionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
"""
return EvaluationAssertionsResourceWithStreamingResponse(self)

@overload
Expand Down Expand Up @@ -914,10 +925,21 @@ def get(
class AsyncEvaluationAssertionsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncEvaluationAssertionsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncEvaluationAssertionsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncEvaluationAssertionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
"""
return AsyncEvaluationAssertionsResourceWithStreamingResponse(self)

@overload
Expand Down
22 changes: 22 additions & 0 deletions src/prompt_foundry_python_sdk/resources/evaluations.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,21 @@
class EvaluationsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> EvaluationsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
"""
return EvaluationsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> EvaluationsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
"""
return EvaluationsResourceWithStreamingResponse(self)

def create(
Expand Down Expand Up @@ -235,10 +246,21 @@ def get(
class AsyncEvaluationsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncEvaluationsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/prompt-foundry/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncEvaluationsResourceWithRawResponse(self)

@cached_property
def with_streaming_response(self) -> AsyncEvaluationsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/prompt-foundry/python-sdk#with_streaming_response
"""
return AsyncEvaluationsResourceWithStreamingResponse(self)

async def create(
Expand Down
Loading