Skip to content

Commit 3f8ad1a

Browse files
feat(api): api update
1 parent 6c2f2ce commit 3f8ad1a

18 files changed

+964
-2
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-729789b605cf1ef37b2ce934e129906d9937d55a55d0ccb5bec38a170416aadd.yml
3-
openapi_spec_hash: 2b83e64527b4c3d7258abbe938948056
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/julep-ai-inc-dash%2Fjulep-0492a98f2c352b73f89b71f1ca656a6ffb44d9e1d1bc3410e996874960f0bf19.yml
3+
openapi_spec_hash: 319d513d3d0d9d0eca326a381a2775f9
44
config_hash: 5cb77b8389154096b85883a93680f511

src/julep/types/agents/tool_create_params.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
"APICallParamsSchema",
4545
"APICallParamsSchemaProperties",
4646
"Integration",
47+
"IntegrationMcpIntegrationDef",
48+
"IntegrationMcpIntegrationDefArguments",
49+
"IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments",
50+
"IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments",
51+
"IntegrationMcpIntegrationDefSetup",
4752
"IntegrationGoogleSheetsIntegrationDefInput",
4853
"IntegrationGoogleSheetsIntegrationDefInputArguments",
4954
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsReadArguments",
@@ -147,6 +152,52 @@ class APICall(TypedDict, total=False):
147152
timeout: Optional[int]
148153

149154

155+
class IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments(TypedDict, total=False):
156+
tool_name: Required[str]
157+
158+
arguments: object
159+
160+
timeout_seconds: int
161+
162+
163+
class IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments(TypedDict, total=False):
164+
dummy: str
165+
166+
167+
IntegrationMcpIntegrationDefArguments: TypeAlias = Union[
168+
IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments,
169+
IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments,
170+
]
171+
172+
173+
class IntegrationMcpIntegrationDefSetup(TypedDict, total=False):
174+
transport: Required[Literal["sse", "http"]]
175+
176+
args: SequenceNotStr[str]
177+
178+
command: Optional[str]
179+
180+
cwd: Optional[str]
181+
182+
env: Dict[str, str]
183+
184+
http_headers: Dict[str, str]
185+
186+
http_url: Optional[str]
187+
188+
189+
class IntegrationMcpIntegrationDef(TypedDict, total=False):
190+
arguments: Optional[IntegrationMcpIntegrationDefArguments]
191+
"""Arguments to call a named tool on the MCP server"""
192+
193+
method: Optional[str]
194+
195+
provider: Literal["mcp"]
196+
197+
setup: Optional[IntegrationMcpIntegrationDefSetup]
198+
"""Setup parameters for MCP integration"""
199+
200+
150201
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsReadArguments(TypedDict, total=False):
151202
range: Required[str]
152203

@@ -278,5 +329,6 @@ class IntegrationGoogleSheetsIntegrationDefInput(TypedDict, total=False):
278329
ArxivIntegrationDef,
279330
UnstructuredIntegrationDef,
280331
AlgoliaIntegrationDef,
332+
IntegrationMcpIntegrationDef,
281333
IntegrationGoogleSheetsIntegrationDefInput,
282334
]

src/julep/types/agents/tool_create_response.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
"APICallParamsSchema",
4343
"APICallParamsSchemaProperties",
4444
"Integration",
45+
"IntegrationMcpIntegrationDef",
46+
"IntegrationMcpIntegrationDefArguments",
47+
"IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments",
48+
"IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments",
49+
"IntegrationMcpIntegrationDefSetup",
4550
"IntegrationGoogleSheetsIntegrationDefOutput",
4651
"IntegrationGoogleSheetsIntegrationDefOutputArguments",
4752
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments",
@@ -108,6 +113,53 @@ class APICall(BaseModel):
108113
timeout: Optional[int] = None
109114

110115

116+
class IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments(BaseModel):
117+
tool_name: str
118+
119+
arguments: Optional[object] = None
120+
121+
timeout_seconds: Optional[int] = None
122+
123+
124+
class IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments(BaseModel):
125+
dummy: Optional[str] = None
126+
127+
128+
IntegrationMcpIntegrationDefArguments: TypeAlias = Union[
129+
IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments,
130+
IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments,
131+
None,
132+
]
133+
134+
135+
class IntegrationMcpIntegrationDefSetup(BaseModel):
136+
transport: Literal["sse", "http"]
137+
138+
args: Optional[List[str]] = None
139+
140+
command: Optional[str] = None
141+
142+
cwd: Optional[str] = None
143+
144+
env: Optional[Dict[str, str]] = None
145+
146+
http_headers: Optional[Dict[str, str]] = None
147+
148+
http_url: Optional[str] = None
149+
150+
151+
class IntegrationMcpIntegrationDef(BaseModel):
152+
arguments: Optional[IntegrationMcpIntegrationDefArguments] = None
153+
"""Arguments to call a named tool on the MCP server"""
154+
155+
method: Optional[str] = None
156+
157+
provider: Optional[Literal["mcp"]] = None
158+
159+
setup: Optional[IntegrationMcpIntegrationDefSetup] = None
160+
"""Setup parameters for MCP integration"""
161+
162+
111163
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments(BaseModel):
112164
range: str
113165

@@ -240,6 +292,7 @@ class IntegrationGoogleSheetsIntegrationDefOutput(BaseModel):
240292
ArxivIntegrationDef,
241293
UnstructuredIntegrationDef,
242294
AlgoliaIntegrationDef,
295+
IntegrationMcpIntegrationDef,
243296
IntegrationGoogleSheetsIntegrationDefOutput,
244297
None,
245298
]

src/julep/types/agents/tool_list_response.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
"APICallParamsSchema",
4343
"APICallParamsSchemaProperties",
4444
"Integration",
45+
"IntegrationMcpIntegrationDef",
46+
"IntegrationMcpIntegrationDefArguments",
47+
"IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments",
48+
"IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments",
49+
"IntegrationMcpIntegrationDefSetup",
4550
"IntegrationGoogleSheetsIntegrationDefOutput",
4651
"IntegrationGoogleSheetsIntegrationDefOutputArguments",
4752
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments",
@@ -108,6 +113,53 @@ class APICall(BaseModel):
108113
timeout: Optional[int] = None
109114

110115

116+
class IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments(BaseModel):
117+
tool_name: str
118+
119+
arguments: Optional[object] = None
120+
121+
timeout_seconds: Optional[int] = None
122+
123+
124+
class IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments(BaseModel):
125+
dummy: Optional[str] = None
126+
127+
128+
IntegrationMcpIntegrationDefArguments: TypeAlias = Union[
129+
IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments,
130+
IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments,
131+
None,
132+
]
133+
134+
135+
class IntegrationMcpIntegrationDefSetup(BaseModel):
136+
transport: Literal["sse", "http"]
137+
138+
args: Optional[List[str]] = None
139+
140+
command: Optional[str] = None
141+
142+
cwd: Optional[str] = None
143+
144+
env: Optional[Dict[str, str]] = None
145+
146+
http_headers: Optional[Dict[str, str]] = None
147+
148+
http_url: Optional[str] = None
149+
150+
151+
class IntegrationMcpIntegrationDef(BaseModel):
152+
arguments: Optional[IntegrationMcpIntegrationDefArguments] = None
153+
"""Arguments to call a named tool on the MCP server"""
154+
155+
method: Optional[str] = None
156+
157+
provider: Optional[Literal["mcp"]] = None
158+
159+
setup: Optional[IntegrationMcpIntegrationDefSetup] = None
160+
"""Setup parameters for MCP integration"""
161+
162+
111163
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments(BaseModel):
112164
range: str
113165

@@ -240,6 +292,7 @@ class IntegrationGoogleSheetsIntegrationDefOutput(BaseModel):
240292
ArxivIntegrationDef,
241293
UnstructuredIntegrationDef,
242294
AlgoliaIntegrationDef,
295+
IntegrationMcpIntegrationDef,
243296
IntegrationGoogleSheetsIntegrationDefOutput,
244297
None,
245298
]

src/julep/types/agents/tool_reset_params.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
"APICallParamsSchema",
4545
"APICallParamsSchemaProperties",
4646
"Integration",
47+
"IntegrationMcpIntegrationDef",
48+
"IntegrationMcpIntegrationDefArguments",
49+
"IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments",
50+
"IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments",
51+
"IntegrationMcpIntegrationDefSetup",
4752
"IntegrationGoogleSheetsIntegrationDefInput",
4853
"IntegrationGoogleSheetsIntegrationDefInputArguments",
4954
"IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsReadArguments",
@@ -149,6 +154,52 @@ class APICall(TypedDict, total=False):
149154
timeout: Optional[int]
150155

151156

157+
class IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments(TypedDict, total=False):
158+
tool_name: Required[str]
159+
160+
arguments: object
161+
162+
timeout_seconds: int
163+
164+
165+
class IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments(TypedDict, total=False):
166+
dummy: str
167+
168+
169+
IntegrationMcpIntegrationDefArguments: TypeAlias = Union[
170+
IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments,
171+
IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments,
172+
]
173+
174+
175+
class IntegrationMcpIntegrationDefSetup(TypedDict, total=False):
176+
transport: Required[Literal["sse", "http"]]
177+
178+
args: SequenceNotStr[str]
179+
180+
command: Optional[str]
181+
182+
cwd: Optional[str]
183+
184+
env: Dict[str, str]
185+
186+
http_headers: Dict[str, str]
187+
188+
http_url: Optional[str]
189+
190+
191+
class IntegrationMcpIntegrationDef(TypedDict, total=False):
192+
arguments: Optional[IntegrationMcpIntegrationDefArguments]
193+
"""Arguments to call a named tool on the MCP server"""
194+
195+
method: Optional[str]
196+
197+
provider: Literal["mcp"]
198+
199+
setup: Optional[IntegrationMcpIntegrationDefSetup]
200+
"""Setup parameters for MCP integration"""
201+
202+
152203
class IntegrationGoogleSheetsIntegrationDefInputArgumentsGoogleSheetsReadArguments(TypedDict, total=False):
153204
range: Required[str]
154205

@@ -280,5 +331,6 @@ class IntegrationGoogleSheetsIntegrationDefInput(TypedDict, total=False):
280331
ArxivIntegrationDef,
281332
UnstructuredIntegrationDef,
282333
AlgoliaIntegrationDef,
334+
IntegrationMcpIntegrationDef,
283335
IntegrationGoogleSheetsIntegrationDefInput,
284336
]

src/julep/types/agents/tool_reset_response.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
"APICallParamsSchema",
4343
"APICallParamsSchemaProperties",
4444
"Integration",
45+
"IntegrationMcpIntegrationDef",
46+
"IntegrationMcpIntegrationDefArguments",
47+
"IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments",
48+
"IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments",
49+
"IntegrationMcpIntegrationDefSetup",
4550
"IntegrationGoogleSheetsIntegrationDefOutput",
4651
"IntegrationGoogleSheetsIntegrationDefOutputArguments",
4752
"IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments",
@@ -108,6 +113,53 @@ class APICall(BaseModel):
108113
timeout: Optional[int] = None
109114

110115

116+
class IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments(BaseModel):
117+
tool_name: str
118+
119+
arguments: Optional[object] = None
120+
121+
timeout_seconds: Optional[int] = None
122+
123+
124+
class IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments(BaseModel):
125+
dummy: Optional[str] = None
126+
127+
128+
IntegrationMcpIntegrationDefArguments: TypeAlias = Union[
129+
IntegrationMcpIntegrationDefArgumentsMcpCallToolArguments,
130+
IntegrationMcpIntegrationDefArgumentsMcpListToolsArguments,
131+
None,
132+
]
133+
134+
135+
class IntegrationMcpIntegrationDefSetup(BaseModel):
136+
transport: Literal["sse", "http"]
137+
138+
args: Optional[List[str]] = None
139+
140+
command: Optional[str] = None
141+
142+
cwd: Optional[str] = None
143+
144+
env: Optional[Dict[str, str]] = None
145+
146+
http_headers: Optional[Dict[str, str]] = None
147+
148+
http_url: Optional[str] = None
149+
150+
151+
class IntegrationMcpIntegrationDef(BaseModel):
152+
arguments: Optional[IntegrationMcpIntegrationDefArguments] = None
153+
"""Arguments to call a named tool on the MCP server"""
154+
155+
method: Optional[str] = None
156+
157+
provider: Optional[Literal["mcp"]] = None
158+
159+
setup: Optional[IntegrationMcpIntegrationDefSetup] = None
160+
"""Setup parameters for MCP integration"""
161+
162+
111163
class IntegrationGoogleSheetsIntegrationDefOutputArgumentsGoogleSheetsReadArguments(BaseModel):
112164
range: str
113165

@@ -240,6 +292,7 @@ class IntegrationGoogleSheetsIntegrationDefOutput(BaseModel):
240292
ArxivIntegrationDef,
241293
UnstructuredIntegrationDef,
242294
AlgoliaIntegrationDef,
295+
IntegrationMcpIntegrationDef,
243296
IntegrationGoogleSheetsIntegrationDefOutput,
244297
None,
245298
]

0 commit comments

Comments
 (0)