robosystems-client 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of robosystems-client might be problematic. Click here for more details.
- robosystems_client/api/agent/auto_select_agent.py +1 -41
- robosystems_client/api/agent/batch_process_queries.py +1 -41
- robosystems_client/api/agent/execute_specific_agent.py +1 -41
- robosystems_client/api/agent/get_agent_metadata.py +5 -49
- robosystems_client/api/agent/list_agents.py +4 -42
- robosystems_client/api/agent/recommend_agent.py +5 -45
- robosystems_client/api/auth/generate_sso_token.py +0 -18
- robosystems_client/api/auth/get_current_auth_user.py +14 -74
- robosystems_client/api/auth/logout_user.py +14 -50
- robosystems_client/api/auth/refresh_auth_session.py +14 -50
- robosystems_client/api/auth/resend_verification_email.py +14 -74
- robosystems_client/api/backup/create_backup.py +5 -45
- robosystems_client/api/backup/get_backup_download_url.py +4 -42
- robosystems_client/api/backup/get_backup_stats.py +5 -49
- robosystems_client/api/backup/list_backups.py +4 -42
- robosystems_client/api/backup/restore_backup.py +5 -45
- robosystems_client/api/connections/create_connection.py +5 -45
- robosystems_client/api/connections/create_link_token.py +5 -45
- robosystems_client/api/connections/delete_connection.py +5 -49
- robosystems_client/api/connections/exchange_link_token.py +5 -45
- robosystems_client/api/connections/get_connection.py +5 -49
- robosystems_client/api/connections/get_connection_options.py +5 -49
- robosystems_client/api/connections/init_o_auth.py +5 -45
- robosystems_client/api/connections/list_connections.py +4 -42
- robosystems_client/api/connections/oauth_callback.py +5 -45
- robosystems_client/api/connections/sync_connection.py +5 -45
- robosystems_client/api/graph_analytics/get_graph_metrics.py +5 -49
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +4 -42
- robosystems_client/api/graph_billing/get_current_graph_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_billing_history.py +4 -42
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +5 -49
- robosystems_client/api/graph_billing/get_graph_usage_details.py +4 -42
- robosystems_client/api/graph_credits/check_credit_balance.py +0 -38
- robosystems_client/api/graph_credits/check_storage_limits.py +1 -45
- robosystems_client/api/graph_credits/get_credit_summary.py +1 -45
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -38
- robosystems_client/api/graph_credits/list_credit_transactions.py +4 -42
- robosystems_client/api/graph_health/get_database_health.py +5 -49
- robosystems_client/api/graph_info/get_database_info.py +5 -49
- robosystems_client/api/graph_limits/get_graph_limits.py +5 -49
- robosystems_client/api/graphs/create_graph.py +21 -57
- robosystems_client/api/graphs/get_available_extensions.py +131 -15
- robosystems_client/api/graphs/get_graphs.py +154 -79
- robosystems_client/api/graphs/select_graph.py +117 -49
- robosystems_client/api/mcp/call_mcp_tool.py +24 -47
- robosystems_client/api/mcp/list_mcp_tools.py +13 -61
- robosystems_client/api/operations/cancel_operation.py +1 -45
- robosystems_client/api/operations/get_operation_status.py +1 -45
- robosystems_client/api/query/execute_cypher_query.py +68 -57
- robosystems_client/api/schema/export_graph_schema.py +223 -65
- robosystems_client/api/schema/get_graph_schema.py +137 -79
- robosystems_client/api/schema/validate_schema.py +5 -45
- robosystems_client/api/subgraphs/create_subgraph.py +5 -45
- robosystems_client/api/subgraphs/delete_subgraph.py +5 -45
- robosystems_client/api/subgraphs/get_subgraph_info.py +5 -49
- robosystems_client/api/subgraphs/get_subgraph_quota.py +5 -49
- robosystems_client/api/subgraphs/list_subgraphs.py +5 -49
- robosystems_client/api/tables/delete_file.py +317 -0
- robosystems_client/api/tables/get_file_info.py +249 -0
- robosystems_client/api/tables/get_upload_url.py +352 -0
- robosystems_client/api/tables/ingest_tables.py +428 -0
- robosystems_client/api/tables/list_table_files.py +329 -0
- robosystems_client/api/tables/list_tables.py +316 -0
- robosystems_client/api/tables/query_tables.py +431 -0
- robosystems_client/api/tables/update_file_status.py +395 -0
- robosystems_client/api/user/create_user_api_key.py +1 -41
- robosystems_client/api/user/get_all_credit_summaries.py +14 -111
- robosystems_client/api/user/get_current_user.py +14 -75
- robosystems_client/api/user/list_user_api_keys.py +14 -75
- robosystems_client/api/user/revoke_user_api_key.py +1 -45
- robosystems_client/api/user/update_user.py +1 -41
- robosystems_client/api/user/update_user_api_key.py +1 -41
- robosystems_client/api/user/update_user_password.py +1 -41
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -38
- robosystems_client/api/user_analytics/get_user_usage_overview.py +14 -75
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +14 -105
- robosystems_client/api/user_limits/get_shared_repository_limits.py +1 -45
- robosystems_client/api/user_limits/get_user_limits.py +14 -75
- robosystems_client/api/user_limits/get_user_usage.py +14 -75
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +1 -45
- robosystems_client/api/user_subscriptions/get_repository_credits.py +1 -45
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +14 -75
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -38
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +1 -41
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +1 -41
- robosystems_client/extensions/__init__.py +8 -1
- robosystems_client/extensions/auth_integration.py +1 -2
- robosystems_client/extensions/graph_client.py +5 -0
- robosystems_client/extensions/query_client.py +3 -2
- robosystems_client/extensions/sse_client.py +1 -1
- robosystems_client/extensions/table_ingest_client.py +36 -40
- robosystems_client/extensions/utils.py +2 -2
- robosystems_client/models/__init__.py +17 -21
- robosystems_client/models/create_graph_request.py +15 -3
- robosystems_client/models/cypher_query_request.py +5 -22
- robosystems_client/models/{delete_file_v1_graphs_graph_id_tables_files_file_id_delete_response_delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py → delete_file_response.py} +45 -9
- robosystems_client/models/file_info.py +169 -0
- robosystems_client/models/file_status_update.py +41 -0
- robosystems_client/models/get_file_info_response.py +205 -0
- robosystems_client/models/list_table_files_response.py +105 -0
- robosystems_client/models/schema_export_response.py +4 -2
- robosystems_client/models/schema_info_response.py +77 -0
- robosystems_client/models/{get_graph_schema_response_getgraphschema.py → schema_info_response_schema.py} +6 -6
- robosystems_client/models/schema_validation_response.py +7 -6
- robosystems_client/models/table_query_request.py +37 -2
- robosystems_client/models/{get_file_info_v1_graphs_graph_id_tables_files_file_id_get_response_get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py → update_file_status_response_updatefilestatus.py} +5 -8
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/METADATA +2 -4
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/RECORD +110 -108
- robosystems_client/api/tables/delete_file_v1_graphs_graph_id_tables_files_file_id_delete.py +0 -287
- robosystems_client/api/tables/get_file_info_v1_graphs_graph_id_tables_files_file_id_get.py +0 -283
- robosystems_client/api/tables/get_upload_url_v1_graphs_graph_id_tables_table_name_files_post.py +0 -260
- robosystems_client/api/tables/ingest_tables_v1_graphs_graph_id_tables_ingest_post.py +0 -251
- robosystems_client/api/tables/list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -283
- robosystems_client/api/tables/list_tables_v1_graphs_graph_id_tables_get.py +0 -224
- robosystems_client/api/tables/query_tables_v1_graphs_graph_id_tables_query_post.py +0 -247
- robosystems_client/api/tables/update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -306
- robosystems_client/models/file_update_request.py +0 -62
- robosystems_client/models/list_table_files_v1_graphs_graph_id_tables_table_name_files_get_response_list_table_files_v1_graphs_graph_id_tables_table_name_files_get.py +0 -47
- robosystems_client/models/update_file_v1_graphs_graph_id_tables_files_file_id_patch_response_update_file_v1_graphs_graph_id_tables_files_file_id_patch.py +0 -47
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.2.dist-info → robosystems_client-0.2.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,35 +9,19 @@ from ...models.agent_request import AgentRequest
|
|
|
9
9
|
from ...models.agent_response import AgentResponse
|
|
10
10
|
from ...models.error_response import ErrorResponse
|
|
11
11
|
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
-
from ...types import
|
|
12
|
+
from ...types import Response
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def _get_kwargs(
|
|
16
16
|
graph_id: str,
|
|
17
17
|
*,
|
|
18
18
|
body: AgentRequest,
|
|
19
|
-
token: Union[None, Unset, str] = UNSET,
|
|
20
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
21
19
|
) -> dict[str, Any]:
|
|
22
20
|
headers: dict[str, Any] = {}
|
|
23
|
-
if not isinstance(authorization, Unset):
|
|
24
|
-
headers["authorization"] = authorization
|
|
25
|
-
|
|
26
|
-
params: dict[str, Any] = {}
|
|
27
|
-
|
|
28
|
-
json_token: Union[None, Unset, str]
|
|
29
|
-
if isinstance(token, Unset):
|
|
30
|
-
json_token = UNSET
|
|
31
|
-
else:
|
|
32
|
-
json_token = token
|
|
33
|
-
params["token"] = json_token
|
|
34
|
-
|
|
35
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
36
21
|
|
|
37
22
|
_kwargs: dict[str, Any] = {
|
|
38
23
|
"method": "post",
|
|
39
24
|
"url": f"/v1/graphs/{graph_id}/agent",
|
|
40
|
-
"params": params,
|
|
41
25
|
}
|
|
42
26
|
|
|
43
27
|
_kwargs["json"] = body.to_dict()
|
|
@@ -100,8 +84,6 @@ def sync_detailed(
|
|
|
100
84
|
*,
|
|
101
85
|
client: AuthenticatedClient,
|
|
102
86
|
body: AgentRequest,
|
|
103
|
-
token: Union[None, Unset, str] = UNSET,
|
|
104
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
105
87
|
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
106
88
|
"""Auto-select agent for query
|
|
107
89
|
|
|
@@ -117,8 +99,6 @@ def sync_detailed(
|
|
|
117
99
|
|
|
118
100
|
Args:
|
|
119
101
|
graph_id (str):
|
|
120
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
121
|
-
authorization (Union[None, Unset, str]):
|
|
122
102
|
body (AgentRequest): Request model for agent interactions.
|
|
123
103
|
|
|
124
104
|
Raises:
|
|
@@ -132,8 +112,6 @@ def sync_detailed(
|
|
|
132
112
|
kwargs = _get_kwargs(
|
|
133
113
|
graph_id=graph_id,
|
|
134
114
|
body=body,
|
|
135
|
-
token=token,
|
|
136
|
-
authorization=authorization,
|
|
137
115
|
)
|
|
138
116
|
|
|
139
117
|
response = client.get_httpx_client().request(
|
|
@@ -148,8 +126,6 @@ def sync(
|
|
|
148
126
|
*,
|
|
149
127
|
client: AuthenticatedClient,
|
|
150
128
|
body: AgentRequest,
|
|
151
|
-
token: Union[None, Unset, str] = UNSET,
|
|
152
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
153
129
|
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
154
130
|
"""Auto-select agent for query
|
|
155
131
|
|
|
@@ -165,8 +141,6 @@ def sync(
|
|
|
165
141
|
|
|
166
142
|
Args:
|
|
167
143
|
graph_id (str):
|
|
168
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
169
|
-
authorization (Union[None, Unset, str]):
|
|
170
144
|
body (AgentRequest): Request model for agent interactions.
|
|
171
145
|
|
|
172
146
|
Raises:
|
|
@@ -181,8 +155,6 @@ def sync(
|
|
|
181
155
|
graph_id=graph_id,
|
|
182
156
|
client=client,
|
|
183
157
|
body=body,
|
|
184
|
-
token=token,
|
|
185
|
-
authorization=authorization,
|
|
186
158
|
).parsed
|
|
187
159
|
|
|
188
160
|
|
|
@@ -191,8 +163,6 @@ async def asyncio_detailed(
|
|
|
191
163
|
*,
|
|
192
164
|
client: AuthenticatedClient,
|
|
193
165
|
body: AgentRequest,
|
|
194
|
-
token: Union[None, Unset, str] = UNSET,
|
|
195
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
196
166
|
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
197
167
|
"""Auto-select agent for query
|
|
198
168
|
|
|
@@ -208,8 +178,6 @@ async def asyncio_detailed(
|
|
|
208
178
|
|
|
209
179
|
Args:
|
|
210
180
|
graph_id (str):
|
|
211
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
212
|
-
authorization (Union[None, Unset, str]):
|
|
213
181
|
body (AgentRequest): Request model for agent interactions.
|
|
214
182
|
|
|
215
183
|
Raises:
|
|
@@ -223,8 +191,6 @@ async def asyncio_detailed(
|
|
|
223
191
|
kwargs = _get_kwargs(
|
|
224
192
|
graph_id=graph_id,
|
|
225
193
|
body=body,
|
|
226
|
-
token=token,
|
|
227
|
-
authorization=authorization,
|
|
228
194
|
)
|
|
229
195
|
|
|
230
196
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -237,8 +203,6 @@ async def asyncio(
|
|
|
237
203
|
*,
|
|
238
204
|
client: AuthenticatedClient,
|
|
239
205
|
body: AgentRequest,
|
|
240
|
-
token: Union[None, Unset, str] = UNSET,
|
|
241
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
242
206
|
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
243
207
|
"""Auto-select agent for query
|
|
244
208
|
|
|
@@ -254,8 +218,6 @@ async def asyncio(
|
|
|
254
218
|
|
|
255
219
|
Args:
|
|
256
220
|
graph_id (str):
|
|
257
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
258
|
-
authorization (Union[None, Unset, str]):
|
|
259
221
|
body (AgentRequest): Request model for agent interactions.
|
|
260
222
|
|
|
261
223
|
Raises:
|
|
@@ -271,7 +233,5 @@ async def asyncio(
|
|
|
271
233
|
graph_id=graph_id,
|
|
272
234
|
client=client,
|
|
273
235
|
body=body,
|
|
274
|
-
token=token,
|
|
275
|
-
authorization=authorization,
|
|
276
236
|
)
|
|
277
237
|
).parsed
|
|
@@ -8,35 +8,19 @@ from ...client import AuthenticatedClient, Client
|
|
|
8
8
|
from ...models.batch_agent_request import BatchAgentRequest
|
|
9
9
|
from ...models.batch_agent_response import BatchAgentResponse
|
|
10
10
|
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
-
from ...types import
|
|
11
|
+
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
graph_id: str,
|
|
16
16
|
*,
|
|
17
17
|
body: BatchAgentRequest,
|
|
18
|
-
token: Union[None, Unset, str] = UNSET,
|
|
19
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
20
18
|
) -> dict[str, Any]:
|
|
21
19
|
headers: dict[str, Any] = {}
|
|
22
|
-
if not isinstance(authorization, Unset):
|
|
23
|
-
headers["authorization"] = authorization
|
|
24
|
-
|
|
25
|
-
params: dict[str, Any] = {}
|
|
26
|
-
|
|
27
|
-
json_token: Union[None, Unset, str]
|
|
28
|
-
if isinstance(token, Unset):
|
|
29
|
-
json_token = UNSET
|
|
30
|
-
else:
|
|
31
|
-
json_token = token
|
|
32
|
-
params["token"] = json_token
|
|
33
|
-
|
|
34
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
35
20
|
|
|
36
21
|
_kwargs: dict[str, Any] = {
|
|
37
22
|
"method": "post",
|
|
38
23
|
"url": f"/v1/graphs/{graph_id}/agent/batch",
|
|
39
|
-
"params": params,
|
|
40
24
|
}
|
|
41
25
|
|
|
42
26
|
_kwargs["json"] = body.to_dict()
|
|
@@ -94,8 +78,6 @@ def sync_detailed(
|
|
|
94
78
|
*,
|
|
95
79
|
client: AuthenticatedClient,
|
|
96
80
|
body: BatchAgentRequest,
|
|
97
|
-
token: Union[None, Unset, str] = UNSET,
|
|
98
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
99
81
|
) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
100
82
|
"""Batch process multiple queries
|
|
101
83
|
|
|
@@ -116,8 +98,6 @@ def sync_detailed(
|
|
|
116
98
|
|
|
117
99
|
Args:
|
|
118
100
|
graph_id (str):
|
|
119
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
120
|
-
authorization (Union[None, Unset, str]):
|
|
121
101
|
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
122
102
|
|
|
123
103
|
Raises:
|
|
@@ -131,8 +111,6 @@ def sync_detailed(
|
|
|
131
111
|
kwargs = _get_kwargs(
|
|
132
112
|
graph_id=graph_id,
|
|
133
113
|
body=body,
|
|
134
|
-
token=token,
|
|
135
|
-
authorization=authorization,
|
|
136
114
|
)
|
|
137
115
|
|
|
138
116
|
response = client.get_httpx_client().request(
|
|
@@ -147,8 +125,6 @@ def sync(
|
|
|
147
125
|
*,
|
|
148
126
|
client: AuthenticatedClient,
|
|
149
127
|
body: BatchAgentRequest,
|
|
150
|
-
token: Union[None, Unset, str] = UNSET,
|
|
151
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
152
128
|
) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
153
129
|
"""Batch process multiple queries
|
|
154
130
|
|
|
@@ -169,8 +145,6 @@ def sync(
|
|
|
169
145
|
|
|
170
146
|
Args:
|
|
171
147
|
graph_id (str):
|
|
172
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
173
|
-
authorization (Union[None, Unset, str]):
|
|
174
148
|
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
175
149
|
|
|
176
150
|
Raises:
|
|
@@ -185,8 +159,6 @@ def sync(
|
|
|
185
159
|
graph_id=graph_id,
|
|
186
160
|
client=client,
|
|
187
161
|
body=body,
|
|
188
|
-
token=token,
|
|
189
|
-
authorization=authorization,
|
|
190
162
|
).parsed
|
|
191
163
|
|
|
192
164
|
|
|
@@ -195,8 +167,6 @@ async def asyncio_detailed(
|
|
|
195
167
|
*,
|
|
196
168
|
client: AuthenticatedClient,
|
|
197
169
|
body: BatchAgentRequest,
|
|
198
|
-
token: Union[None, Unset, str] = UNSET,
|
|
199
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
200
170
|
) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
201
171
|
"""Batch process multiple queries
|
|
202
172
|
|
|
@@ -217,8 +187,6 @@ async def asyncio_detailed(
|
|
|
217
187
|
|
|
218
188
|
Args:
|
|
219
189
|
graph_id (str):
|
|
220
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
221
|
-
authorization (Union[None, Unset, str]):
|
|
222
190
|
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
223
191
|
|
|
224
192
|
Raises:
|
|
@@ -232,8 +200,6 @@ async def asyncio_detailed(
|
|
|
232
200
|
kwargs = _get_kwargs(
|
|
233
201
|
graph_id=graph_id,
|
|
234
202
|
body=body,
|
|
235
|
-
token=token,
|
|
236
|
-
authorization=authorization,
|
|
237
203
|
)
|
|
238
204
|
|
|
239
205
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -246,8 +212,6 @@ async def asyncio(
|
|
|
246
212
|
*,
|
|
247
213
|
client: AuthenticatedClient,
|
|
248
214
|
body: BatchAgentRequest,
|
|
249
|
-
token: Union[None, Unset, str] = UNSET,
|
|
250
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
251
215
|
) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
252
216
|
"""Batch process multiple queries
|
|
253
217
|
|
|
@@ -268,8 +232,6 @@ async def asyncio(
|
|
|
268
232
|
|
|
269
233
|
Args:
|
|
270
234
|
graph_id (str):
|
|
271
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
272
|
-
authorization (Union[None, Unset, str]):
|
|
273
235
|
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
274
236
|
|
|
275
237
|
Raises:
|
|
@@ -285,7 +247,5 @@ async def asyncio(
|
|
|
285
247
|
graph_id=graph_id,
|
|
286
248
|
client=client,
|
|
287
249
|
body=body,
|
|
288
|
-
token=token,
|
|
289
|
-
authorization=authorization,
|
|
290
250
|
)
|
|
291
251
|
).parsed
|
|
@@ -9,7 +9,7 @@ from ...models.agent_request import AgentRequest
|
|
|
9
9
|
from ...models.agent_response import AgentResponse
|
|
10
10
|
from ...models.error_response import ErrorResponse
|
|
11
11
|
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
-
from ...types import
|
|
12
|
+
from ...types import Response
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def _get_kwargs(
|
|
@@ -17,28 +17,12 @@ def _get_kwargs(
|
|
|
17
17
|
agent_type: str,
|
|
18
18
|
*,
|
|
19
19
|
body: AgentRequest,
|
|
20
|
-
token: Union[None, Unset, str] = UNSET,
|
|
21
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
22
20
|
) -> dict[str, Any]:
|
|
23
21
|
headers: dict[str, Any] = {}
|
|
24
|
-
if not isinstance(authorization, Unset):
|
|
25
|
-
headers["authorization"] = authorization
|
|
26
|
-
|
|
27
|
-
params: dict[str, Any] = {}
|
|
28
|
-
|
|
29
|
-
json_token: Union[None, Unset, str]
|
|
30
|
-
if isinstance(token, Unset):
|
|
31
|
-
json_token = UNSET
|
|
32
|
-
else:
|
|
33
|
-
json_token = token
|
|
34
|
-
params["token"] = json_token
|
|
35
|
-
|
|
36
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
37
22
|
|
|
38
23
|
_kwargs: dict[str, Any] = {
|
|
39
24
|
"method": "post",
|
|
40
25
|
"url": f"/v1/graphs/{graph_id}/agent/{agent_type}",
|
|
41
|
-
"params": params,
|
|
42
26
|
}
|
|
43
27
|
|
|
44
28
|
_kwargs["json"] = body.to_dict()
|
|
@@ -106,8 +90,6 @@ def sync_detailed(
|
|
|
106
90
|
*,
|
|
107
91
|
client: AuthenticatedClient,
|
|
108
92
|
body: AgentRequest,
|
|
109
|
-
token: Union[None, Unset, str] = UNSET,
|
|
110
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
111
93
|
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
112
94
|
"""Execute specific agent
|
|
113
95
|
|
|
@@ -123,8 +105,6 @@ def sync_detailed(
|
|
|
123
105
|
Args:
|
|
124
106
|
graph_id (str):
|
|
125
107
|
agent_type (str):
|
|
126
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
127
|
-
authorization (Union[None, Unset, str]):
|
|
128
108
|
body (AgentRequest): Request model for agent interactions.
|
|
129
109
|
|
|
130
110
|
Raises:
|
|
@@ -139,8 +119,6 @@ def sync_detailed(
|
|
|
139
119
|
graph_id=graph_id,
|
|
140
120
|
agent_type=agent_type,
|
|
141
121
|
body=body,
|
|
142
|
-
token=token,
|
|
143
|
-
authorization=authorization,
|
|
144
122
|
)
|
|
145
123
|
|
|
146
124
|
response = client.get_httpx_client().request(
|
|
@@ -156,8 +134,6 @@ def sync(
|
|
|
156
134
|
*,
|
|
157
135
|
client: AuthenticatedClient,
|
|
158
136
|
body: AgentRequest,
|
|
159
|
-
token: Union[None, Unset, str] = UNSET,
|
|
160
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
161
137
|
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
162
138
|
"""Execute specific agent
|
|
163
139
|
|
|
@@ -173,8 +149,6 @@ def sync(
|
|
|
173
149
|
Args:
|
|
174
150
|
graph_id (str):
|
|
175
151
|
agent_type (str):
|
|
176
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
177
|
-
authorization (Union[None, Unset, str]):
|
|
178
152
|
body (AgentRequest): Request model for agent interactions.
|
|
179
153
|
|
|
180
154
|
Raises:
|
|
@@ -190,8 +164,6 @@ def sync(
|
|
|
190
164
|
agent_type=agent_type,
|
|
191
165
|
client=client,
|
|
192
166
|
body=body,
|
|
193
|
-
token=token,
|
|
194
|
-
authorization=authorization,
|
|
195
167
|
).parsed
|
|
196
168
|
|
|
197
169
|
|
|
@@ -201,8 +173,6 @@ async def asyncio_detailed(
|
|
|
201
173
|
*,
|
|
202
174
|
client: AuthenticatedClient,
|
|
203
175
|
body: AgentRequest,
|
|
204
|
-
token: Union[None, Unset, str] = UNSET,
|
|
205
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
206
176
|
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
207
177
|
"""Execute specific agent
|
|
208
178
|
|
|
@@ -218,8 +188,6 @@ async def asyncio_detailed(
|
|
|
218
188
|
Args:
|
|
219
189
|
graph_id (str):
|
|
220
190
|
agent_type (str):
|
|
221
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
222
|
-
authorization (Union[None, Unset, str]):
|
|
223
191
|
body (AgentRequest): Request model for agent interactions.
|
|
224
192
|
|
|
225
193
|
Raises:
|
|
@@ -234,8 +202,6 @@ async def asyncio_detailed(
|
|
|
234
202
|
graph_id=graph_id,
|
|
235
203
|
agent_type=agent_type,
|
|
236
204
|
body=body,
|
|
237
|
-
token=token,
|
|
238
|
-
authorization=authorization,
|
|
239
205
|
)
|
|
240
206
|
|
|
241
207
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -249,8 +215,6 @@ async def asyncio(
|
|
|
249
215
|
*,
|
|
250
216
|
client: AuthenticatedClient,
|
|
251
217
|
body: AgentRequest,
|
|
252
|
-
token: Union[None, Unset, str] = UNSET,
|
|
253
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
254
218
|
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
255
219
|
"""Execute specific agent
|
|
256
220
|
|
|
@@ -266,8 +230,6 @@ async def asyncio(
|
|
|
266
230
|
Args:
|
|
267
231
|
graph_id (str):
|
|
268
232
|
agent_type (str):
|
|
269
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
270
|
-
authorization (Union[None, Unset, str]):
|
|
271
233
|
body (AgentRequest): Request model for agent interactions.
|
|
272
234
|
|
|
273
235
|
Raises:
|
|
@@ -284,7 +246,5 @@ async def asyncio(
|
|
|
284
246
|
agent_type=agent_type,
|
|
285
247
|
client=client,
|
|
286
248
|
body=body,
|
|
287
|
-
token=token,
|
|
288
|
-
authorization=authorization,
|
|
289
249
|
)
|
|
290
250
|
).parsed
|
|
@@ -7,38 +7,18 @@ from ... import errors
|
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.agent_metadata_response import AgentMetadataResponse
|
|
9
9
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
-
from ...types import
|
|
10
|
+
from ...types import Response
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _get_kwargs(
|
|
14
14
|
graph_id: str,
|
|
15
15
|
agent_type: str,
|
|
16
|
-
*,
|
|
17
|
-
token: Union[None, Unset, str] = UNSET,
|
|
18
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
19
16
|
) -> dict[str, Any]:
|
|
20
|
-
headers: dict[str, Any] = {}
|
|
21
|
-
if not isinstance(authorization, Unset):
|
|
22
|
-
headers["authorization"] = authorization
|
|
23
|
-
|
|
24
|
-
params: dict[str, Any] = {}
|
|
25
|
-
|
|
26
|
-
json_token: Union[None, Unset, str]
|
|
27
|
-
if isinstance(token, Unset):
|
|
28
|
-
json_token = UNSET
|
|
29
|
-
else:
|
|
30
|
-
json_token = token
|
|
31
|
-
params["token"] = json_token
|
|
32
|
-
|
|
33
|
-
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
34
|
-
|
|
35
17
|
_kwargs: dict[str, Any] = {
|
|
36
18
|
"method": "get",
|
|
37
19
|
"url": f"/v1/graphs/{graph_id}/agent/{agent_type}/metadata",
|
|
38
|
-
"params": params,
|
|
39
20
|
}
|
|
40
21
|
|
|
41
|
-
_kwargs["headers"] = headers
|
|
42
22
|
return _kwargs
|
|
43
23
|
|
|
44
24
|
|
|
@@ -81,8 +61,6 @@ def sync_detailed(
|
|
|
81
61
|
agent_type: str,
|
|
82
62
|
*,
|
|
83
63
|
client: AuthenticatedClient,
|
|
84
|
-
token: Union[None, Unset, str] = UNSET,
|
|
85
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
86
64
|
) -> Response[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
87
65
|
"""Get agent metadata
|
|
88
66
|
|
|
@@ -99,10 +77,8 @@ def sync_detailed(
|
|
|
99
77
|
Use this to understand agent capabilities before execution.
|
|
100
78
|
|
|
101
79
|
Args:
|
|
102
|
-
graph_id (str):
|
|
80
|
+
graph_id (str):
|
|
103
81
|
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
104
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
105
|
-
authorization (Union[None, Unset, str]):
|
|
106
82
|
|
|
107
83
|
Raises:
|
|
108
84
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -115,8 +91,6 @@ def sync_detailed(
|
|
|
115
91
|
kwargs = _get_kwargs(
|
|
116
92
|
graph_id=graph_id,
|
|
117
93
|
agent_type=agent_type,
|
|
118
|
-
token=token,
|
|
119
|
-
authorization=authorization,
|
|
120
94
|
)
|
|
121
95
|
|
|
122
96
|
response = client.get_httpx_client().request(
|
|
@@ -131,8 +105,6 @@ def sync(
|
|
|
131
105
|
agent_type: str,
|
|
132
106
|
*,
|
|
133
107
|
client: AuthenticatedClient,
|
|
134
|
-
token: Union[None, Unset, str] = UNSET,
|
|
135
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
136
108
|
) -> Optional[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
137
109
|
"""Get agent metadata
|
|
138
110
|
|
|
@@ -149,10 +121,8 @@ def sync(
|
|
|
149
121
|
Use this to understand agent capabilities before execution.
|
|
150
122
|
|
|
151
123
|
Args:
|
|
152
|
-
graph_id (str):
|
|
124
|
+
graph_id (str):
|
|
153
125
|
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
154
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
155
|
-
authorization (Union[None, Unset, str]):
|
|
156
126
|
|
|
157
127
|
Raises:
|
|
158
128
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -166,8 +136,6 @@ def sync(
|
|
|
166
136
|
graph_id=graph_id,
|
|
167
137
|
agent_type=agent_type,
|
|
168
138
|
client=client,
|
|
169
|
-
token=token,
|
|
170
|
-
authorization=authorization,
|
|
171
139
|
).parsed
|
|
172
140
|
|
|
173
141
|
|
|
@@ -176,8 +144,6 @@ async def asyncio_detailed(
|
|
|
176
144
|
agent_type: str,
|
|
177
145
|
*,
|
|
178
146
|
client: AuthenticatedClient,
|
|
179
|
-
token: Union[None, Unset, str] = UNSET,
|
|
180
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
181
147
|
) -> Response[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
182
148
|
"""Get agent metadata
|
|
183
149
|
|
|
@@ -194,10 +160,8 @@ async def asyncio_detailed(
|
|
|
194
160
|
Use this to understand agent capabilities before execution.
|
|
195
161
|
|
|
196
162
|
Args:
|
|
197
|
-
graph_id (str):
|
|
163
|
+
graph_id (str):
|
|
198
164
|
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
199
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
200
|
-
authorization (Union[None, Unset, str]):
|
|
201
165
|
|
|
202
166
|
Raises:
|
|
203
167
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -210,8 +174,6 @@ async def asyncio_detailed(
|
|
|
210
174
|
kwargs = _get_kwargs(
|
|
211
175
|
graph_id=graph_id,
|
|
212
176
|
agent_type=agent_type,
|
|
213
|
-
token=token,
|
|
214
|
-
authorization=authorization,
|
|
215
177
|
)
|
|
216
178
|
|
|
217
179
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -224,8 +186,6 @@ async def asyncio(
|
|
|
224
186
|
agent_type: str,
|
|
225
187
|
*,
|
|
226
188
|
client: AuthenticatedClient,
|
|
227
|
-
token: Union[None, Unset, str] = UNSET,
|
|
228
|
-
authorization: Union[None, Unset, str] = UNSET,
|
|
229
189
|
) -> Optional[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
230
190
|
"""Get agent metadata
|
|
231
191
|
|
|
@@ -242,10 +202,8 @@ async def asyncio(
|
|
|
242
202
|
Use this to understand agent capabilities before execution.
|
|
243
203
|
|
|
244
204
|
Args:
|
|
245
|
-
graph_id (str):
|
|
205
|
+
graph_id (str):
|
|
246
206
|
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
247
|
-
token (Union[None, Unset, str]): JWT token for SSE authentication
|
|
248
|
-
authorization (Union[None, Unset, str]):
|
|
249
207
|
|
|
250
208
|
Raises:
|
|
251
209
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -260,7 +218,5 @@ async def asyncio(
|
|
|
260
218
|
graph_id=graph_id,
|
|
261
219
|
agent_type=agent_type,
|
|
262
220
|
client=client,
|
|
263
|
-
token=token,
|
|
264
|
-
authorization=authorization,
|
|
265
221
|
)
|
|
266
222
|
).parsed
|