Skip to content

Commit 3f896cf

Browse files
feat(api): api update
1 parent 9bb3abf commit 3f896cf

File tree

3 files changed

+7
-104
lines changed

3 files changed

+7
-104
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 91
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-04db114d63ee85c22cfe1523fc2422a2e19b7cb7b93cbee97936a1e1a8997a89.yml
3-
openapi_spec_hash: c3d50a0138a3a9c35f0a02292f3788a3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-1d4b018cbfb409baf83725737f00789a9ddbbdbdbe12db1ac7a1fd2cf9c453f0.yml
3+
openapi_spec_hash: 1c533f386f6d3d3802d353cc6f1df547
44
config_hash: 55cf3b0829d3d91846df7c4cfab7db0d

src/runloop_api_client/types/input_context_update_param.py

Lines changed: 3 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,13 @@
33
from __future__ import annotations
44

55
from typing import Optional
6-
from typing_extensions import Literal, Required, Annotated, TypedDict
6+
from typing_extensions import TypedDict
77

8-
from .._utils import PropertyInfo
9-
10-
__all__ = ["InputContextUpdateParam", "AdditionalContext"]
11-
12-
13-
class AdditionalContext(TypedDict, total=False):
14-
array: Required[bool]
15-
16-
big_decimal: Required[Annotated[bool, PropertyInfo(alias="bigDecimal")]]
17-
18-
big_integer: Required[Annotated[bool, PropertyInfo(alias="bigInteger")]]
19-
20-
binary: Required[bool]
21-
22-
boolean: Required[bool]
23-
24-
container_node: Required[Annotated[bool, PropertyInfo(alias="containerNode")]]
25-
26-
double: Required[bool]
27-
28-
empty: Required[bool]
29-
30-
float: Required[bool]
31-
32-
floating_point_number: Required[Annotated[bool, PropertyInfo(alias="floatingPointNumber")]]
33-
34-
int: Required[bool]
35-
36-
integral_number: Required[Annotated[bool, PropertyInfo(alias="integralNumber")]]
37-
38-
long: Required[bool]
39-
40-
missing_node: Required[Annotated[bool, PropertyInfo(alias="missingNode")]]
41-
42-
null: Required[bool]
43-
44-
number: Required[bool]
45-
46-
object: Required[bool]
47-
48-
pojo: Required[bool]
49-
50-
short: Required[bool]
51-
52-
textual: Required[bool]
53-
54-
value_node: Required[Annotated[bool, PropertyInfo(alias="valueNode")]]
55-
56-
node_type: Annotated[
57-
Literal["ARRAY", "BINARY", "BOOLEAN", "MISSING", "NULL", "NUMBER", "OBJECT", "POJO", "STRING"],
58-
PropertyInfo(alias="nodeType"),
59-
]
8+
__all__ = ["InputContextUpdateParam"]
609

6110

6211
class InputContextUpdateParam(TypedDict, total=False):
63-
additional_context: Optional[AdditionalContext]
12+
additional_context: Optional[object]
6413
"""Additional JSON structured input context."""
6514

6615
problem_statement: Optional[str]

tests/api_resources/test_scenarios.py

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -217,30 +217,7 @@ def test_method_update_with_all_params(self, client: Runloop) -> None:
217217
"working_directory": "working_directory",
218218
},
219219
input_context={
220-
"additional_context": {
221-
"array": True,
222-
"big_decimal": True,
223-
"big_integer": True,
224-
"binary": True,
225-
"boolean": True,
226-
"container_node": True,
227-
"double": True,
228-
"empty": True,
229-
"float": True,
230-
"floating_point_number": True,
231-
"int": True,
232-
"integral_number": True,
233-
"long": True,
234-
"missing_node": True,
235-
"null": True,
236-
"number": True,
237-
"object": True,
238-
"pojo": True,
239-
"short": True,
240-
"textual": True,
241-
"value_node": True,
242-
"node_type": "ARRAY",
243-
},
220+
"additional_context": {},
244221
"problem_statement": "problem_statement",
245222
},
246223
metadata={"foo": "string"},
@@ -606,30 +583,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncRunloop) -
606583
"working_directory": "working_directory",
607584
},
608585
input_context={
609-
"additional_context": {
610-
"array": True,
611-
"big_decimal": True,
612-
"big_integer": True,
613-
"binary": True,
614-
"boolean": True,
615-
"container_node": True,
616-
"double": True,
617-
"empty": True,
618-
"float": True,
619-
"floating_point_number": True,
620-
"int": True,
621-
"integral_number": True,
622-
"long": True,
623-
"missing_node": True,
624-
"null": True,
625-
"number": True,
626-
"object": True,
627-
"pojo": True,
628-
"short": True,
629-
"textual": True,
630-
"value_node": True,
631-
"node_type": "ARRAY",
632-
},
586+
"additional_context": {},
633587
"problem_statement": "problem_statement",
634588
},
635589
metadata={"foo": "string"},

0 commit comments

Comments
 (0)