Skip to content

Commit e232df4

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#12)
1 parent 1b71f5c commit e232df4

File tree

13 files changed

+26
-26
lines changed

13 files changed

+26
-26
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-49889b19b9ef424b520d257ca3f15d7dc5e116835d7b36b678e01755f617743b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-e2cae3fe1d0a839dbd41f4120ff919c13c241c083c00c50f9ce005f8709bd447.yml

src/prompt_foundry_python_sdk/resources/evaluations.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Iterable
5+
from typing import Dict, Iterable, Optional
66

77
import httpx
88

@@ -44,7 +44,7 @@ def create(
4444
*,
4545
appended_messages: Iterable[evaluation_create_params.AppendedMessage],
4646
prompt_id: str,
47-
variables: Dict[str, object],
47+
variables: Dict[str, Optional[object]],
4848
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4949
# The extra values given here take precedence over values defined on the client or passed to this method.
5050
extra_headers: Headers | None = None,
@@ -90,7 +90,7 @@ def update(
9090
*,
9191
appended_messages: Iterable[evaluation_update_params.AppendedMessage],
9292
prompt_id: str,
93-
variables: Dict[str, object],
93+
variables: Dict[str, Optional[object]],
9494
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9595
# The extra values given here take precedence over values defined on the client or passed to this method.
9696
extra_headers: Headers | None = None,
@@ -232,7 +232,7 @@ async def create(
232232
*,
233233
appended_messages: Iterable[evaluation_create_params.AppendedMessage],
234234
prompt_id: str,
235-
variables: Dict[str, object],
235+
variables: Dict[str, Optional[object]],
236236
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
237237
# The extra values given here take precedence over values defined on the client or passed to this method.
238238
extra_headers: Headers | None = None,
@@ -278,7 +278,7 @@ async def update(
278278
*,
279279
appended_messages: Iterable[evaluation_update_params.AppendedMessage],
280280
prompt_id: str,
281-
variables: Dict[str, object],
281+
variables: Dict[str, Optional[object]],
282282
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
283283
# The extra values given here take precedence over values defined on the client or passed to this method.
284284
extra_headers: Headers | None = None,

src/prompt_foundry_python_sdk/resources/prompts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Iterable
5+
from typing import Dict, Iterable, Optional
66

77
import httpx
88

@@ -223,7 +223,7 @@ def get_parameters(
223223
append_messages: Iterable[prompt_get_parameters_params.AppendMessage] | NotGiven = NOT_GIVEN,
224224
override_messages: Iterable[prompt_get_parameters_params.OverrideMessage] | NotGiven = NOT_GIVEN,
225225
user: str | NotGiven = NOT_GIVEN,
226-
variables: Dict[str, object] | NotGiven = NOT_GIVEN,
226+
variables: Dict[str, Optional[object]] | NotGiven = NOT_GIVEN,
227227
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
228228
# The extra values given here take precedence over values defined on the client or passed to this method.
229229
extra_headers: Headers | None = None,
@@ -467,7 +467,7 @@ async def get_parameters(
467467
append_messages: Iterable[prompt_get_parameters_params.AppendMessage] | NotGiven = NOT_GIVEN,
468468
override_messages: Iterable[prompt_get_parameters_params.OverrideMessage] | NotGiven = NOT_GIVEN,
469469
user: str | NotGiven = NOT_GIVEN,
470-
variables: Dict[str, object] | NotGiven = NOT_GIVEN,
470+
variables: Dict[str, Optional[object]] | NotGiven = NOT_GIVEN,
471471
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
472472
# The extra values given here take precedence over values defined on the client or passed to this method.
473473
extra_headers: Headers | None = None,

src/prompt_foundry_python_sdk/resources/tools.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict
5+
from typing import Dict, Optional
66

77
import httpx
88

@@ -44,7 +44,7 @@ def create(
4444
*,
4545
description: str,
4646
name: str,
47-
parameters: Dict[str, object],
47+
parameters: Dict[str, Optional[object]],
4848
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
4949
# The extra values given here take precedence over values defined on the client or passed to this method.
5050
extra_headers: Headers | None = None,
@@ -96,7 +96,7 @@ def update(
9696
*,
9797
description: str,
9898
name: str,
99-
parameters: Dict[str, object],
99+
parameters: Dict[str, Optional[object]],
100100
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
101101
# The extra values given here take precedence over values defined on the client or passed to this method.
102102
extra_headers: Headers | None = None,
@@ -244,7 +244,7 @@ async def create(
244244
*,
245245
description: str,
246246
name: str,
247-
parameters: Dict[str, object],
247+
parameters: Dict[str, Optional[object]],
248248
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
249249
# The extra values given here take precedence over values defined on the client or passed to this method.
250250
extra_headers: Headers | None = None,
@@ -296,7 +296,7 @@ async def update(
296296
*,
297297
description: str,
298298
name: str,
299-
parameters: Dict[str, object],
299+
parameters: Dict[str, Optional[object]],
300300
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
301301
# The extra values given here take precedence over values defined on the client or passed to this method.
302302
extra_headers: Headers | None = None,

src/prompt_foundry_python_sdk/types/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ class Evaluation(BaseModel):
5252

5353
prompt_id: str = FieldInfo(alias="promptId")
5454

55-
variables: Dict[str, object]
55+
variables: Dict[str, Optional[object]]
5656
"""The variables to in the prompt when evaluating the prompt."""

src/prompt_foundry_python_sdk/types/evaluation_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EvaluationCreateParams(TypedDict, total=False):
1616

1717
prompt_id: Required[Annotated[str, PropertyInfo(alias="promptId")]]
1818

19-
variables: Required[Dict[str, object]]
19+
variables: Required[Dict[str, Optional[object]]]
2020
"""The variables to in the prompt when evaluating the prompt."""
2121

2222

src/prompt_foundry_python_sdk/types/evaluation_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class EvaluationUpdateParams(TypedDict, total=False):
1616

1717
prompt_id: Required[Annotated[str, PropertyInfo(alias="promptId")]]
1818

19-
variables: Required[Dict[str, object]]
19+
variables: Required[Dict[str, Optional[object]]]
2020
"""The variables to in the prompt when evaluating the prompt."""
2121

2222

src/prompt_foundry_python_sdk/types/model_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class ParametersToolFunction(BaseModel):
162162

163163
description: Optional[str] = None
164164

165-
parameters: Optional[Dict[str, object]] = None
165+
parameters: Optional[Dict[str, Optional[object]]] = None
166166

167167

168168
class ParametersTool(BaseModel):

src/prompt_foundry_python_sdk/types/prompt_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Tool(BaseModel):
9090
of 64.
9191
"""
9292

93-
parameters: Dict[str, object]
93+
parameters: Dict[str, Optional[object]]
9494
"""The parameters the functions accepts, described as a JSON Schema object.
9595
9696
This schema is designed to match the TypeScript Record<string, unknown>,

src/prompt_foundry_python_sdk/types/prompt_get_parameters_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PromptGetParametersParams(TypedDict, total=False):
3434
detect abuse.
3535
"""
3636

37-
variables: Dict[str, object]
37+
variables: Dict[str, Optional[object]]
3838
"""The template variables added to the prompt when running the prompt."""
3939

4040

0 commit comments

Comments
 (0)