Skip to content

Commit 6835317

Browse files
stainless-app[bot]Stainless Bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#98)
1 parent 753d7d3 commit 6835317

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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-4f2f102207a7920168c5275abfbec4b156a1f8cef6bee009d4b1dd21a3878eb8.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-21244ccc5783139d80c623dfbcbe5f67c48291edd544e919bccb0fbb64780d90.yml

src/prompt_foundry_python_sdk/resources/evaluation_assertions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def create(
4949
*,
5050
evaluation_id: str,
5151
json_path: Optional[str],
52-
target_value: str,
52+
target_value: Optional[str],
5353
tool_name: Optional[str],
5454
type: Literal[
5555
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"
@@ -105,7 +105,7 @@ def update(
105105
*,
106106
evaluation_id: str,
107107
json_path: Optional[str],
108-
target_value: str,
108+
target_value: Optional[str],
109109
tool_name: Optional[str],
110110
type: Literal[
111111
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"
@@ -277,7 +277,7 @@ async def create(
277277
*,
278278
evaluation_id: str,
279279
json_path: Optional[str],
280-
target_value: str,
280+
target_value: Optional[str],
281281
tool_name: Optional[str],
282282
type: Literal[
283283
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"
@@ -333,7 +333,7 @@ async def update(
333333
*,
334334
evaluation_id: str,
335335
json_path: Optional[str],
336-
target_value: str,
336+
target_value: Optional[str],
337337
tool_name: Optional[str],
338338
type: Literal[
339339
"CONTAINS", "EXACT_MATCH", "JSON_CONTAINS", "JSON_EXACT_MATCH", "TOOL_CALLED", "TOOL_CALLED_WITH"

src/prompt_foundry_python_sdk/types/evaluation_assertion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class EvaluationAssertion(BaseModel):
2121
Only required when type is `JSON_EXACT_MATCH` or `JSON_CONTAINS`.
2222
"""
2323

24-
target_value: str = FieldInfo(alias="targetValue")
24+
target_value: Optional[str] = FieldInfo(alias="targetValue", default=None)
2525

2626
tool_name: Optional[str] = FieldInfo(alias="toolName", default=None)
2727
"""The name of the tool to match.

src/prompt_foundry_python_sdk/types/evaluation_assertion_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class EvaluationAssertionCreateParams(TypedDict, total=False):
1919
Only required when type is `JSON_EXACT_MATCH` or `JSON_CONTAINS`.
2020
"""
2121

22-
target_value: Required[Annotated[str, PropertyInfo(alias="targetValue")]]
22+
target_value: Required[Annotated[Optional[str], PropertyInfo(alias="targetValue")]]
2323

2424
tool_name: Required[Annotated[Optional[str], PropertyInfo(alias="toolName")]]
2525
"""The name of the tool to match.

src/prompt_foundry_python_sdk/types/evaluation_assertion_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class EvaluationAssertionUpdateParams(TypedDict, total=False):
1919
Only required when type is `JSON_EXACT_MATCH` or `JSON_CONTAINS`.
2020
"""
2121

22-
target_value: Required[Annotated[str, PropertyInfo(alias="targetValue")]]
22+
target_value: Required[Annotated[Optional[str], PropertyInfo(alias="targetValue")]]
2323

2424
tool_name: Required[Annotated[Optional[str], PropertyInfo(alias="toolName")]]
2525
"""The name of the tool to match.

0 commit comments

Comments
 (0)