Skip to content

Commit 053aa7e

Browse files
feat(api): api update
1 parent f573d02 commit 053aa7e

37 files changed

+791
-2
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 53
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-088c2ebb89888cf56ffffab17b30ff32f80d89429db53d15b850ed125ca26099.yml
3-
openapi_spec_hash: 130f40612695fe1100877f898e49b14b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-3b58badc86faa95cdd3ca635911d7e31fc286635d11d7731caaf537c239be52b.yml
3+
openapi_spec_hash: 9c451e0c93746d508c96eb94262c79ea
44
config_hash: 9d1802d2b4bc76fd963c6ed787f5d425

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ tool = client.agents.tools.create(
184184
"json": {},
185185
"params": "string",
186186
"schema": {},
187+
"secrets": {"foo": {"name": "name"}},
187188
"timeout": 0,
188189
},
189190
)

src/julep/resources/agents/agents.py

+16
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def create(
8787
instructions: Union[str, List[str]] | NotGiven = NOT_GIVEN,
8888
metadata: Optional[object] | NotGiven = NOT_GIVEN,
8989
model: str | NotGiven = NOT_GIVEN,
90+
project: Optional[str] | NotGiven = NOT_GIVEN,
9091
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9192
# The extra values given here take precedence over values defined on the client or passed to this method.
9293
extra_headers: Headers | None = None,
@@ -118,6 +119,7 @@ def create(
118119
"instructions": instructions,
119120
"metadata": metadata,
120121
"model": model,
122+
"project": project,
121123
},
122124
agent_create_params.AgentCreateParams,
123125
),
@@ -139,6 +141,7 @@ def update(
139141
metadata: Optional[object] | NotGiven = NOT_GIVEN,
140142
model: str | NotGiven = NOT_GIVEN,
141143
name: Optional[str] | NotGiven = NOT_GIVEN,
144+
project: Optional[str] | NotGiven = NOT_GIVEN,
142145
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
143146
# The extra values given here take precedence over values defined on the client or passed to this method.
144147
extra_headers: Headers | None = None,
@@ -172,6 +175,7 @@ def update(
172175
"metadata": metadata,
173176
"model": model,
174177
"name": name,
178+
"project": project,
175179
},
176180
agent_update_params.AgentUpdateParams,
177181
),
@@ -275,6 +279,7 @@ def create_or_update(
275279
instructions: Union[str, List[str]] | NotGiven = NOT_GIVEN,
276280
metadata: Optional[object] | NotGiven = NOT_GIVEN,
277281
model: str | NotGiven = NOT_GIVEN,
282+
project: Optional[str] | NotGiven = NOT_GIVEN,
278283
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
279284
# The extra values given here take precedence over values defined on the client or passed to this method.
280285
extra_headers: Headers | None = None,
@@ -308,6 +313,7 @@ def create_or_update(
308313
"instructions": instructions,
309314
"metadata": metadata,
310315
"model": model,
316+
"project": project,
311317
},
312318
agent_create_or_update_params.AgentCreateOrUpdateParams,
313319
),
@@ -362,6 +368,7 @@ def reset(
362368
instructions: Union[str, List[str]] | NotGiven = NOT_GIVEN,
363369
metadata: Optional[object] | NotGiven = NOT_GIVEN,
364370
model: str | NotGiven = NOT_GIVEN,
371+
project: Optional[str] | NotGiven = NOT_GIVEN,
365372
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
366373
# The extra values given here take precedence over values defined on the client or passed to this method.
367374
extra_headers: Headers | None = None,
@@ -395,6 +402,7 @@ def reset(
395402
"instructions": instructions,
396403
"metadata": metadata,
397404
"model": model,
405+
"project": project,
398406
},
399407
agent_reset_params.AgentResetParams,
400408
),
@@ -444,6 +452,7 @@ async def create(
444452
instructions: Union[str, List[str]] | NotGiven = NOT_GIVEN,
445453
metadata: Optional[object] | NotGiven = NOT_GIVEN,
446454
model: str | NotGiven = NOT_GIVEN,
455+
project: Optional[str] | NotGiven = NOT_GIVEN,
447456
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
448457
# The extra values given here take precedence over values defined on the client or passed to this method.
449458
extra_headers: Headers | None = None,
@@ -475,6 +484,7 @@ async def create(
475484
"instructions": instructions,
476485
"metadata": metadata,
477486
"model": model,
487+
"project": project,
478488
},
479489
agent_create_params.AgentCreateParams,
480490
),
@@ -496,6 +506,7 @@ async def update(
496506
metadata: Optional[object] | NotGiven = NOT_GIVEN,
497507
model: str | NotGiven = NOT_GIVEN,
498508
name: Optional[str] | NotGiven = NOT_GIVEN,
509+
project: Optional[str] | NotGiven = NOT_GIVEN,
499510
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
500511
# The extra values given here take precedence over values defined on the client or passed to this method.
501512
extra_headers: Headers | None = None,
@@ -529,6 +540,7 @@ async def update(
529540
"metadata": metadata,
530541
"model": model,
531542
"name": name,
543+
"project": project,
532544
},
533545
agent_update_params.AgentUpdateParams,
534546
),
@@ -632,6 +644,7 @@ async def create_or_update(
632644
instructions: Union[str, List[str]] | NotGiven = NOT_GIVEN,
633645
metadata: Optional[object] | NotGiven = NOT_GIVEN,
634646
model: str | NotGiven = NOT_GIVEN,
647+
project: Optional[str] | NotGiven = NOT_GIVEN,
635648
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
636649
# The extra values given here take precedence over values defined on the client or passed to this method.
637650
extra_headers: Headers | None = None,
@@ -665,6 +678,7 @@ async def create_or_update(
665678
"instructions": instructions,
666679
"metadata": metadata,
667680
"model": model,
681+
"project": project,
668682
},
669683
agent_create_or_update_params.AgentCreateOrUpdateParams,
670684
),
@@ -719,6 +733,7 @@ async def reset(
719733
instructions: Union[str, List[str]] | NotGiven = NOT_GIVEN,
720734
metadata: Optional[object] | NotGiven = NOT_GIVEN,
721735
model: str | NotGiven = NOT_GIVEN,
736+
project: Optional[str] | NotGiven = NOT_GIVEN,
722737
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
723738
# The extra values given here take precedence over values defined on the client or passed to this method.
724739
extra_headers: Headers | None = None,
@@ -752,6 +767,7 @@ async def reset(
752767
"instructions": instructions,
753768
"metadata": metadata,
754769
"model": model,
770+
"project": project,
755771
},
756772
agent_reset_params.AgentResetParams,
757773
),

src/julep/resources/files.py

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def create(
5151
name: str,
5252
description: str | NotGiven = NOT_GIVEN,
5353
mime_type: Optional[str] | NotGiven = NOT_GIVEN,
54+
project: Optional[str] | NotGiven = NOT_GIVEN,
5455
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5556
# The extra values given here take precedence over values defined on the client or passed to this method.
5657
extra_headers: Headers | None = None,
@@ -78,6 +79,7 @@ def create(
7879
"name": name,
7980
"description": description,
8081
"mime_type": mime_type,
82+
"project": project,
8183
},
8284
file_create_params.FileCreateParams,
8385
),
@@ -181,6 +183,7 @@ async def create(
181183
name: str,
182184
description: str | NotGiven = NOT_GIVEN,
183185
mime_type: Optional[str] | NotGiven = NOT_GIVEN,
186+
project: Optional[str] | NotGiven = NOT_GIVEN,
184187
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
185188
# The extra values given here take precedence over values defined on the client or passed to this method.
186189
extra_headers: Headers | None = None,
@@ -208,6 +211,7 @@ async def create(
208211
"name": name,
209212
"description": description,
210213
"mime_type": mime_type,
214+
"project": project,
211215
},
212216
file_create_params.FileCreateParams,
213217
),

src/julep/resources/users/users.py

+16
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def create(
7070
about: str | NotGiven = NOT_GIVEN,
7171
metadata: Optional[object] | NotGiven = NOT_GIVEN,
7272
name: str | NotGiven = NOT_GIVEN,
73+
project: Optional[str] | NotGiven = NOT_GIVEN,
7374
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7475
# The extra values given here take precedence over values defined on the client or passed to this method.
7576
extra_headers: Headers | None = None,
@@ -96,6 +97,7 @@ def create(
9697
"about": about,
9798
"metadata": metadata,
9899
"name": name,
100+
"project": project,
99101
},
100102
user_create_params.UserCreateParams,
101103
),
@@ -112,6 +114,7 @@ def update(
112114
about: str | NotGiven = NOT_GIVEN,
113115
metadata: Optional[object] | NotGiven = NOT_GIVEN,
114116
name: str | NotGiven = NOT_GIVEN,
117+
project: Optional[str] | NotGiven = NOT_GIVEN,
115118
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
116119
# The extra values given here take precedence over values defined on the client or passed to this method.
117120
extra_headers: Headers | None = None,
@@ -140,6 +143,7 @@ def update(
140143
"about": about,
141144
"metadata": metadata,
142145
"name": name,
146+
"project": project,
143147
},
144148
user_update_params.UserUpdateParams,
145149
),
@@ -238,6 +242,7 @@ def create_or_update(
238242
about: str | NotGiven = NOT_GIVEN,
239243
metadata: Optional[object] | NotGiven = NOT_GIVEN,
240244
name: str | NotGiven = NOT_GIVEN,
245+
project: Optional[str] | NotGiven = NOT_GIVEN,
241246
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
242247
# The extra values given here take precedence over values defined on the client or passed to this method.
243248
extra_headers: Headers | None = None,
@@ -266,6 +271,7 @@ def create_or_update(
266271
"about": about,
267272
"metadata": metadata,
268273
"name": name,
274+
"project": project,
269275
},
270276
user_create_or_update_params.UserCreateOrUpdateParams,
271277
),
@@ -315,6 +321,7 @@ def reset(
315321
about: str | NotGiven = NOT_GIVEN,
316322
metadata: Optional[object] | NotGiven = NOT_GIVEN,
317323
name: str | NotGiven = NOT_GIVEN,
324+
project: Optional[str] | NotGiven = NOT_GIVEN,
318325
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
319326
# The extra values given here take precedence over values defined on the client or passed to this method.
320327
extra_headers: Headers | None = None,
@@ -343,6 +350,7 @@ def reset(
343350
"about": about,
344351
"metadata": metadata,
345352
"name": name,
353+
"project": project,
346354
},
347355
user_reset_params.UserResetParams,
348356
),
@@ -383,6 +391,7 @@ async def create(
383391
about: str | NotGiven = NOT_GIVEN,
384392
metadata: Optional[object] | NotGiven = NOT_GIVEN,
385393
name: str | NotGiven = NOT_GIVEN,
394+
project: Optional[str] | NotGiven = NOT_GIVEN,
386395
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
387396
# The extra values given here take precedence over values defined on the client or passed to this method.
388397
extra_headers: Headers | None = None,
@@ -409,6 +418,7 @@ async def create(
409418
"about": about,
410419
"metadata": metadata,
411420
"name": name,
421+
"project": project,
412422
},
413423
user_create_params.UserCreateParams,
414424
),
@@ -425,6 +435,7 @@ async def update(
425435
about: str | NotGiven = NOT_GIVEN,
426436
metadata: Optional[object] | NotGiven = NOT_GIVEN,
427437
name: str | NotGiven = NOT_GIVEN,
438+
project: Optional[str] | NotGiven = NOT_GIVEN,
428439
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
429440
# The extra values given here take precedence over values defined on the client or passed to this method.
430441
extra_headers: Headers | None = None,
@@ -453,6 +464,7 @@ async def update(
453464
"about": about,
454465
"metadata": metadata,
455466
"name": name,
467+
"project": project,
456468
},
457469
user_update_params.UserUpdateParams,
458470
),
@@ -551,6 +563,7 @@ async def create_or_update(
551563
about: str | NotGiven = NOT_GIVEN,
552564
metadata: Optional[object] | NotGiven = NOT_GIVEN,
553565
name: str | NotGiven = NOT_GIVEN,
566+
project: Optional[str] | NotGiven = NOT_GIVEN,
554567
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
555568
# The extra values given here take precedence over values defined on the client or passed to this method.
556569
extra_headers: Headers | None = None,
@@ -579,6 +592,7 @@ async def create_or_update(
579592
"about": about,
580593
"metadata": metadata,
581594
"name": name,
595+
"project": project,
582596
},
583597
user_create_or_update_params.UserCreateOrUpdateParams,
584598
),
@@ -628,6 +642,7 @@ async def reset(
628642
about: str | NotGiven = NOT_GIVEN,
629643
metadata: Optional[object] | NotGiven = NOT_GIVEN,
630644
name: str | NotGiven = NOT_GIVEN,
645+
project: Optional[str] | NotGiven = NOT_GIVEN,
631646
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
632647
# The extra values given here take precedence over values defined on the client or passed to this method.
633648
extra_headers: Headers | None = None,
@@ -656,6 +671,7 @@ async def reset(
656671
"about": about,
657672
"metadata": metadata,
658673
"name": name,
674+
"project": project,
659675
},
660676
user_reset_params.UserResetParams,
661677
),

src/julep/types/agent.py

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ class Agent(BaseModel):
3030
metadata: Optional[object] = None
3131

3232
model: Optional[str] = None
33+
34+
project: Optional[str] = None

src/julep/types/agent_create_or_update_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ class AgentCreateOrUpdateParams(TypedDict, total=False):
2424
metadata: Optional[object]
2525

2626
model: str
27+
28+
project: Optional[str]

src/julep/types/agent_create_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ class AgentCreateParams(TypedDict, total=False):
2424
metadata: Optional[object]
2525

2626
model: str
27+
28+
project: Optional[str]

src/julep/types/agent_reset_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ class AgentResetParams(TypedDict, total=False):
2424
metadata: Optional[object]
2525

2626
model: str
27+
28+
project: Optional[str]

src/julep/types/agent_update_params.py

+2
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ class AgentUpdateParams(TypedDict, total=False):
2424
model: str
2525

2626
name: Optional[str]
27+
28+
project: Optional[str]

src/julep/types/agents/tool_create_params.py

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
__all__ = [
1111
"ToolCreateParams",
1212
"APICall",
13+
"APICallSecrets",
1314
"Bash20241022",
1415
"Computer20241022",
1516
"Function",
@@ -117,6 +118,10 @@ class ToolCreateParams(TypedDict, total=False):
117118
text_editor_20241022: Optional[TextEditor20241022]
118119

119120

121+
class APICallSecrets(TypedDict, total=False):
122+
name: Required[str]
123+
124+
120125
class APICall(TypedDict, total=False):
121126
method: Required[Literal["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE"]]
122127

@@ -142,6 +147,8 @@ class APICall(TypedDict, total=False):
142147

143148
schema: Optional[object]
144149

150+
secrets: Optional[Dict[str, APICallSecrets]]
151+
145152
timeout: Optional[int]
146153

147154

src/julep/types/agents/tool_create_response.py

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
__all__ = [
1212
"ToolCreateResponse",
1313
"APICall",
14+
"APICallSecrets",
1415
"Bash20241022",
1516
"Computer20241022",
1617
"Function",
@@ -81,6 +82,10 @@
8182
]
8283

8384

85+
class APICallSecrets(BaseModel):
86+
name: str
87+
88+
8489
class APICall(BaseModel):
8590
method: Literal["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE"]
8691

@@ -106,6 +111,8 @@ class APICall(BaseModel):
106111

107112
schema_: Optional[object] = FieldInfo(alias="schema", default=None)
108113

114+
secrets: Optional[Dict[str, APICallSecrets]] = None
115+
109116
timeout: Optional[int] = None
110117

111118

0 commit comments

Comments
 (0)