Skip to content

Commit 725f48d

Browse files
feat(api): OpenAPI spec update via Stainless API (#77)
1 parent 50424c6 commit 725f48d

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

.stats.yml

+1-1
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-cda2d45e20e1f02206e927055340f82767dae13b0fd16849300b7b1252246e90.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-27e00076c32b4d01f49438c1db3d4efd946ea82e8e2af8d9ad0af43b2ed0cc58.yml

src/prompt_foundry_python_sdk/resources/evaluations.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def create(
5858
Args:
5959
appended_messages: The messages to append to the completion messages when running the evaluation.
6060
61-
variables: The variables to in the prompt when evaluating the prompt.
61+
variables: The template variables added to the prompt when executing the prompt.
6262
6363
extra_headers: Send extra headers
6464
@@ -104,7 +104,7 @@ def update(
104104
Args:
105105
appended_messages: The messages to append to the completion messages when running the evaluation.
106106
107-
variables: The variables to in the prompt when evaluating the prompt.
107+
variables: The template variables added to the prompt when executing the prompt.
108108
109109
extra_headers: Send extra headers
110110
@@ -246,7 +246,7 @@ async def create(
246246
Args:
247247
appended_messages: The messages to append to the completion messages when running the evaluation.
248248
249-
variables: The variables to in the prompt when evaluating the prompt.
249+
variables: The template variables added to the prompt when executing the prompt.
250250
251251
extra_headers: Send extra headers
252252
@@ -292,7 +292,7 @@ async def update(
292292
Args:
293293
appended_messages: The messages to append to the completion messages when running the evaluation.
294294
295-
variables: The variables to in the prompt when evaluating the prompt.
295+
variables: The template variables added to the prompt when executing the prompt.
296296
297297
extra_headers: Send extra headers
298298

src/prompt_foundry_python_sdk/resources/prompts.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -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, Optional[object]] | NotGiven = NOT_GIVEN,
226+
variables: Dict[str, Optional[str]] | 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,
@@ -245,7 +245,7 @@ def get_parameters(
245245
user: A unique identifier representing your end-user, which can help monitor and
246246
detect abuse.
247247
248-
variables: The template variables added to the prompt when running the prompt.
248+
variables: The template variables added to the prompt when executing the prompt.
249249
250250
extra_headers: Send extra headers
251251
@@ -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, Optional[object]] | NotGiven = NOT_GIVEN,
470+
variables: Dict[str, Optional[str]] | 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,
@@ -489,7 +489,7 @@ async def get_parameters(
489489
user: A unique identifier representing your end-user, which can help monitor and
490490
detect abuse.
491491
492-
variables: The template variables added to the prompt when running the prompt.
492+
variables: The template variables added to the prompt when executing the prompt.
493493
494494
extra_headers: Send extra headers
495495

src/prompt_foundry_python_sdk/types/evaluation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ class Evaluation(BaseModel):
5353
prompt_id: str = FieldInfo(alias="promptId")
5454

5555
variables: Dict[str, Optional[str]]
56-
"""The variables to in the prompt when evaluating the prompt."""
56+
"""The template variables added to the prompt when executing the prompt."""

src/prompt_foundry_python_sdk/types/evaluation_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class EvaluationCreateParams(TypedDict, total=False):
1717
prompt_id: Required[Annotated[str, PropertyInfo(alias="promptId")]]
1818

1919
variables: Required[Dict[str, Optional[str]]]
20-
"""The variables to in the prompt when evaluating the prompt."""
20+
"""The template variables added to the prompt when executing the prompt."""
2121

2222

2323
class AppendedMessageToolCallFunction(TypedDict, total=False):

src/prompt_foundry_python_sdk/types/evaluation_update_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class EvaluationUpdateParams(TypedDict, total=False):
1717
prompt_id: Required[Annotated[str, PropertyInfo(alias="promptId")]]
1818

1919
variables: Required[Dict[str, Optional[str]]]
20-
"""The variables to in the prompt when evaluating the prompt."""
20+
"""The template variables added to the prompt when executing the prompt."""
2121

2222

2323
class AppendedMessageToolCallFunction(TypedDict, total=False):

src/prompt_foundry_python_sdk/types/prompt_get_parameters_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class PromptGetParametersParams(TypedDict, total=False):
3434
detect abuse.
3535
"""
3636

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

4040

4141
class AppendMessageToolCallFunction(TypedDict, total=False):

tests/api_resources/test_prompts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ def test_method_get_parameters_with_all_params(self, client: PromptFoundry) -> N
11611161
},
11621162
],
11631163
user="string",
1164-
variables={"foo": {}},
1164+
variables={"foo": "string"},
11651165
)
11661166
assert_matches_type(ModelParameters, prompt, path=["response"])
11671167

@@ -2339,7 +2339,7 @@ async def test_method_get_parameters_with_all_params(self, async_client: AsyncPr
23392339
},
23402340
],
23412341
user="string",
2342-
variables={"foo": {}},
2342+
variables={"foo": "string"},
23432343
)
23442344
assert_matches_type(ModelParameters, prompt, path=["response"])
23452345

0 commit comments

Comments
 (0)