Skip to content

Commit 529f3af

Browse files
feat(api): api update
1 parent 8760ad3 commit 529f3af

18 files changed

+2284
-10
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-21c8182519ef811d16673113f293a4b667ccd0176bdf867e8a1701b520d0bce7.yml
3-
openapi_spec_hash: 3a08e0e8f22356dd768b19bd7e0950eb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-729789b605cf1ef37b2ce934e129906d9937d55a55d0ccb5bec38a170416aadd.yml
3+
openapi_spec_hash: 2b83e64527b4c3d7258abbe938948056
44
config_hash: 5cb77b8389154096b85883a93680f511

src/julep/types/agents/tool_create_params.py

Lines changed: 127 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Union, Optional
5+
from typing import Dict, Union, Iterable, Optional
66
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
77

88
from ..._types import SequenceNotStr
@@ -38,7 +38,23 @@
3838
BrowserbaseGetSessionLiveURLsIntegrationDef,
3939
)
4040

41-
__all__ = ["ToolCreateParams", "APICall", "APICallParamsSchema", "APICallParamsSchemaProperties", "Integration"]
41+
__all__ = [
42+
"ToolCreateParams",
43+
"APICall",
44+
"APICallParamsSchema",
45+
"APICallParamsSchemaProperties",
46+
"Integration",
47+
"IntegrationGoogleSheetsIntegrationDefInput",
48+
"IntegrationGoogleSheetsIntegrationDefInputArguments",
49+
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsReadArguments",
50+
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsWriteArguments",
51+
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsAppendArguments",
52+
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsClearArguments",
53+
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchReadArguments",
54+
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchWriteArguments",
55+
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchWriteArgumentsData",
56+
"IntegrationGoogleSheetsIntegrationDefInputSetup",
57+
]
4258

4359

4460
class ToolCreateParams(TypedDict, total=False):
@@ -131,6 +147,114 @@ class APICall(TypedDict, total=False):
131147
timeout: Optional[int]
132148

133149

150+
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsReadArguments(TypedDict, total=False):
151+
range: Required[str]
152+
153+
spreadsheet_id: Required[str]
154+
155+
date_time_render_option: Literal["SERIAL_NUMBER", "FORMATTED_STRING"]
156+
157+
major_dimension: Literal["ROWS", "COLUMNS"]
158+
159+
value_render_option: Literal["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]
160+
161+
162+
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsWriteArguments(TypedDict, total=False):
163+
range: Required[str]
164+
165+
spreadsheet_id: Required[str]
166+
167+
values: Required[Iterable[Iterable[object]]]
168+
169+
include_values_in_response: bool
170+
171+
insert_data_option: Literal["OVERWRITE", "INSERT_ROWS"]
172+
173+
value_input_option: Literal["RAW", "USER_ENTERED"]
174+
175+
176+
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsAppendArguments(TypedDict, total=False):
177+
range: Required[str]
178+
179+
spreadsheet_id: Required[str]
180+
181+
values: Required[Iterable[Iterable[object]]]
182+
183+
include_values_in_response: bool
184+
185+
insert_data_option: Literal["OVERWRITE", "INSERT_ROWS"]
186+
187+
value_input_option: Literal["RAW", "USER_ENTERED"]
188+
189+
190+
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsClearArguments(TypedDict, total=False):
191+
range: Required[str]
192+
193+
spreadsheet_id: Required[str]
194+
195+
196+
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchReadArguments(TypedDict, total=False):
197+
ranges: Required[SequenceNotStr[str]]
198+
199+
spreadsheet_id: Required[str]
200+
201+
date_time_render_option: Literal["SERIAL_NUMBER", "FORMATTED_STRING"]
202+
203+
major_dimension: Literal["ROWS", "COLUMNS"]
204+
205+
value_render_option: Literal["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]
206+
207+
208+
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchWriteArgumentsData(TypedDict, total=False):
209+
range: Required[str]
210+
211+
values: Required[Iterable[Iterable[object]]]
212+
213+
major_dimension: Literal["ROWS", "COLUMNS"]
214+
215+
216+
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchWriteArguments(TypedDict, total=False):
217+
data: Required[Iterable[IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchWriteArgumentsData]]
218+
219+
spreadsheet_id: Required[str]
220+
221+
include_values_in_response: bool
222+
223+
value_input_option: Literal["RAW", "USER_ENTERED"]
224+
225+
226+
IntegrationGoogleSheetsIntegrationDefInputArguments: TypeAlias = Union[
227+
IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsReadArguments,
228+
IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsWriteArguments,
229+
IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsAppendArguments,
230+
IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsClearArguments,
231+
IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchReadArguments,
232+
IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsBatchWriteArguments,
233+
]
234+
235+
236+
class IntegrationGoogleSheetsIntegrationDefInputSetup(TypedDict, total=False):
237+
use_julep_service: Required[bool]
238+
239+
default_retry_count: int
240+
241+
service_account_json: Optional[str]
242+
243+
244+
class IntegrationGoogleSheetsIntegrationDefInput(TypedDict, total=False):
245+
arguments: Optional[IntegrationGoogleSheetsIntegrationDefInputArguments]
246+
"""Arguments for reading values from a spreadsheet"""
247+
248+
method: Optional[
249+
Literal["read_values", "write_values", "append_values", "clear_values", "batch_read", "batch_write"]
250+
]
251+
252+
provider: Literal["google_sheets"]
253+
254+
setup: Optional[IntegrationGoogleSheetsIntegrationDefInputSetup]
255+
"""Setup parameters for Google Sheets integration"""
256+
257+
134258
Integration: TypeAlias = Union[
135259
DummyIntegrationDef,
136260
BraveIntegrationDef,
@@ -154,4 +278,5 @@ class APICall(TypedDict, total=False):
154278
ArxivIntegrationDef,
155279
UnstructuredIntegrationDef,
156280
AlgoliaIntegrationDef,
281+
IntegrationGoogleSheetsIntegrationDefInput,
157282
]

src/julep/types/agents/tool_create_response.py

Lines changed: 127 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,23 @@
3636
from ..shared.browserbase_complete_session_integration_def import BrowserbaseCompleteSessionIntegrationDef
3737
from ..shared.browserbase_get_session_live_urls_integration_def import BrowserbaseGetSessionLiveURLsIntegrationDef
3838

39-
__all__ = ["ToolCreateResponse", "APICall", "APICallParamsSchema", "APICallParamsSchemaProperties", "Integration"]
39+
__all__ = [
40+
"ToolCreateResponse",
41+
"APICall",
42+
"APICallParamsSchema",
43+
"APICallParamsSchemaProperties",
44+
"Integration",
45+
"IntegrationGoogleSheetsIntegrationDefOutput",
46+
"IntegrationGoogleSheetsIntegrationDefOutputArguments",
47+
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments",
48+
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsWriteArguments",
49+
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsAppendArguments",
50+
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsClearArguments",
51+
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchReadArguments",
52+
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchWriteArguments",
53+
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchWriteArgumentsData",
54+
"IntegrationGoogleSheetsIntegrationDefOutputSetup",
55+
]
4056

4157

4258
class APICallParamsSchemaProperties(BaseModel):
@@ -92,6 +108,115 @@ class APICall(BaseModel):
92108
timeout: Optional[int] = None
93109

94110

111+
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments(BaseModel):
112+
range: str
113+
114+
spreadsheet_id: str
115+
116+
date_time_render_option: Optional[Literal["SERIAL_NUMBER", "FORMATTED_STRING"]] = None
117+
118+
major_dimension: Optional[Literal["ROWS", "COLUMNS"]] = None
119+
120+
value_render_option: Optional[Literal["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]] = None
121+
122+
123+
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsWriteArguments(BaseModel):
124+
range: str
125+
126+
spreadsheet_id: str
127+
128+
values: List[List[object]]
129+
130+
include_values_in_response: Optional[bool] = None
131+
132+
insert_data_option: Optional[Literal["OVERWRITE", "INSERT_ROWS"]] = None
133+
134+
value_input_option: Optional[Literal["RAW", "USER_ENTERED"]] = None
135+
136+
137+
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsAppendArguments(BaseModel):
138+
range: str
139+
140+
spreadsheet_id: str
141+
142+
values: List[List[object]]
143+
144+
include_values_in_response: Optional[bool] = None
145+
146+
insert_data_option: Optional[Literal["OVERWRITE", "INSERT_ROWS"]] = None
147+
148+
value_input_option: Optional[Literal["RAW", "USER_ENTERED"]] = None
149+
150+
151+
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsClearArguments(BaseModel):
152+
range: str
153+
154+
spreadsheet_id: str
155+
156+
157+
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchReadArguments(BaseModel):
158+
ranges: List[str]
159+
160+
spreadsheet_id: str
161+
162+
date_time_render_option: Optional[Literal["SERIAL_NUMBER", "FORMATTED_STRING"]] = None
163+
164+
major_dimension: Optional[Literal["ROWS", "COLUMNS"]] = None
165+
166+
value_render_option: Optional[Literal["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]] = None
167+
168+
169+
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchWriteArgumentsData(BaseModel):
170+
range: str
171+
172+
values: List[List[object]]
173+
174+
major_dimension: Optional[Literal["ROWS", "COLUMNS"]] = None
175+
176+
177+
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchWriteArguments(BaseModel):
178+
data: List[IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchWriteArgumentsData]
179+
180+
spreadsheet_id: str
181+
182+
include_values_in_response: Optional[bool] = None
183+
184+
value_input_option: Optional[Literal["RAW", "USER_ENTERED"]] = None
185+
186+
187+
IntegrationGoogleSheetsIntegrationDefOutputArguments: TypeAlias = Union[
188+
IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments,
189+
IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsWriteArguments,
190+
IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsAppendArguments,
191+
IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsClearArguments,
192+
IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchReadArguments,
193+
IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsBatchWriteArguments,
194+
None,
195+
]
196+
197+
198+
class IntegrationGoogleSheetsIntegrationDefOutputSetup(BaseModel):
199+
use_julep_service: bool
200+
201+
default_retry_count: Optional[int] = None
202+
203+
service_account_json: Optional[str] = None
204+
205+
206+
class IntegrationGoogleSheetsIntegrationDefOutput(BaseModel):
207+
arguments: Optional[IntegrationGoogleSheetsIntegrationDefOutputArguments] = None
208+
"""Arguments for reading values from a spreadsheet"""
209+
210+
method: Optional[
211+
Literal["read_values", "write_values", "append_values", "clear_values", "batch_read", "batch_write"]
212+
] = None
213+
214+
provider: Optional[Literal["google_sheets"]] = None
215+
216+
setup: Optional[IntegrationGoogleSheetsIntegrationDefOutputSetup] = None
217+
"""Setup parameters for Google Sheets integration"""
218+
219+
95220
Integration: TypeAlias = Union[
96221
DummyIntegrationDef,
97222
BraveIntegrationDef,
@@ -115,6 +240,7 @@ class APICall(BaseModel):
115240
ArxivIntegrationDef,
116241
UnstructuredIntegrationDef,
117242
AlgoliaIntegrationDef,
243+
IntegrationGoogleSheetsIntegrationDefOutput,
118244
None,
119245
]
120246

0 commit comments

Comments
 (0)