Skip to content

Commit 8ed1b7c

Browse files
feat(api): api update
1 parent 218a8a8 commit 8ed1b7c

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
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: 66
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-0492a98f2c352b73f89b71f1ca656a6ffb44d9e1d1bc3410e996874960f0bf19.yml
3-
openapi_spec_hash: 319d513d3d0d9d0eca326a381a2775f9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-266657b5af7f6ae5fbe9cdbc253553cd7e8246e742cbb4e8e22aecbccd6c7a9e.yml
3+
openapi_spec_hash: 64878c8b3f1cc0c66ee4d94bd49c6593
44
config_hash: 5cb77b8389154096b85883a93680f511

src/julep/resources/executions/executions.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def create(
7474
task_id: str,
7575
*,
7676
input: object,
77+
connection_pool: object | Omit = omit,
7778
error: Optional[str] | Omit = omit,
7879
metadata: Optional[object] | Omit = omit,
7980
output: object | Omit = omit,
@@ -112,7 +113,13 @@ def create(
112113
execution_create_params.ExecutionCreateParams,
113114
),
114115
options=make_request_options(
115-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
116+
extra_headers=extra_headers,
117+
extra_query=extra_query,
118+
extra_body=extra_body,
119+
timeout=timeout,
120+
query=maybe_transform(
121+
{"connection_pool": connection_pool}, execution_create_params.ExecutionCreateParams
122+
),
116123
),
117124
cast_to=Execution,
118125
)
@@ -322,6 +329,7 @@ async def create(
322329
task_id: str,
323330
*,
324331
input: object,
332+
connection_pool: object | Omit = omit,
325333
error: Optional[str] | Omit = omit,
326334
metadata: Optional[object] | Omit = omit,
327335
output: object | Omit = omit,
@@ -360,7 +368,13 @@ async def create(
360368
execution_create_params.ExecutionCreateParams,
361369
),
362370
options=make_request_options(
363-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
371+
extra_headers=extra_headers,
372+
extra_query=extra_query,
373+
extra_body=extra_body,
374+
timeout=timeout,
375+
query=await async_maybe_transform(
376+
{"connection_pool": connection_pool}, execution_create_params.ExecutionCreateParams
377+
),
364378
),
365379
cast_to=Execution,
366380
)

src/julep/types/execution_create_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
class ExecutionCreateParams(TypedDict, total=False):
1212
input: Required[object]
1313

14+
connection_pool: object
15+
1416
error: Optional[str]
1517

1618
metadata: Optional[object]

tests/api_resources/test_executions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_method_create_with_all_params(self, client: Julep) -> None:
3131
execution = client.executions.create(
3232
task_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3333
input={},
34+
connection_pool={},
3435
error="error",
3536
metadata={},
3637
output={},
@@ -272,6 +273,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncJulep) ->
272273
execution = await async_client.executions.create(
273274
task_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
274275
input={},
276+
connection_pool={},
275277
error="error",
276278
metadata={},
277279
output={},

0 commit comments

Comments
 (0)