robosystems-client 0.1.15__py3-none-any.whl → 0.1.16__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 +264 -0
- robosystems_client/api/agent/batch_process_queries.py +279 -0
- robosystems_client/api/agent/execute_specific_agent.py +276 -0
- robosystems_client/api/agent/get_agent_metadata.py +256 -0
- robosystems_client/api/agent/list_agents.py +264 -0
- robosystems_client/api/agent/recommend_agent.py +273 -0
- robosystems_client/api/graph_credits/check_credit_balance.py +14 -10
- robosystems_client/models/__init__.py +35 -3
- robosystems_client/models/agent_list_response.py +74 -0
- robosystems_client/models/agent_list_response_agents.py +67 -0
- robosystems_client/models/{credits_summary_response_credits_by_addon_item.py → agent_list_response_agents_additional_property.py} +5 -5
- robosystems_client/models/agent_message.py +35 -1
- robosystems_client/models/agent_metadata_response.py +133 -0
- robosystems_client/models/agent_mode.py +11 -0
- robosystems_client/models/agent_recommendation.py +106 -0
- robosystems_client/models/agent_recommendation_request.py +108 -0
- robosystems_client/models/agent_recommendation_request_context_type_0.py +44 -0
- robosystems_client/models/agent_recommendation_response.py +82 -0
- robosystems_client/models/agent_request.py +110 -6
- robosystems_client/models/agent_response.py +161 -11
- robosystems_client/models/agent_response_error_details_type_0.py +44 -0
- robosystems_client/models/agent_response_tokens_used_type_0.py +44 -0
- robosystems_client/models/auth_response.py +20 -6
- robosystems_client/models/batch_agent_request.py +85 -0
- robosystems_client/models/batch_agent_response.py +90 -0
- robosystems_client/models/credit_summary.py +35 -9
- robosystems_client/models/credits_summary_response.py +47 -21
- robosystems_client/models/credits_summary_response_credits_by_addon_type_0_item.py +44 -0
- robosystems_client/models/custom_schema_definition.py +7 -14
- robosystems_client/models/custom_schema_definition_metadata.py +1 -6
- robosystems_client/models/database_health_response.py +11 -11
- robosystems_client/models/database_info_response.py +13 -14
- robosystems_client/models/error_response.py +4 -8
- robosystems_client/models/graph_metadata.py +4 -5
- robosystems_client/models/health_status.py +2 -2
- robosystems_client/models/repository_credits_response.py +43 -16
- robosystems_client/models/schema_export_response.py +5 -8
- robosystems_client/models/schema_validation_request.py +3 -5
- robosystems_client/models/schema_validation_response.py +5 -5
- robosystems_client/models/selection_criteria.py +122 -0
- robosystems_client/models/success_response.py +1 -1
- {robosystems_client-0.1.15.dist-info → robosystems_client-0.1.16.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.15.dist-info → robosystems_client-0.1.16.dist-info}/RECORD +44 -25
- robosystems_client/api/agent/query_financial_agent.py +0 -423
- {robosystems_client-0.1.15.dist-info → robosystems_client-0.1.16.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.agent_request import AgentRequest
|
|
9
|
+
from ...models.agent_response import AgentResponse
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
12
|
+
from ...types import UNSET, Response, Unset
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
graph_id: str,
|
|
17
|
+
*,
|
|
18
|
+
body: AgentRequest,
|
|
19
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
20
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
21
|
+
) -> dict[str, Any]:
|
|
22
|
+
headers: dict[str, Any] = {}
|
|
23
|
+
if not isinstance(authorization, Unset):
|
|
24
|
+
headers["authorization"] = authorization
|
|
25
|
+
|
|
26
|
+
cookies = {}
|
|
27
|
+
if auth_token is not UNSET:
|
|
28
|
+
cookies["auth-token"] = auth_token
|
|
29
|
+
|
|
30
|
+
_kwargs: dict[str, Any] = {
|
|
31
|
+
"method": "post",
|
|
32
|
+
"url": f"/v1/{graph_id}/agent",
|
|
33
|
+
"cookies": cookies,
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
_kwargs["json"] = body.to_dict()
|
|
37
|
+
|
|
38
|
+
headers["Content-Type"] = "application/json"
|
|
39
|
+
|
|
40
|
+
_kwargs["headers"] = headers
|
|
41
|
+
return _kwargs
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def _parse_response(
|
|
45
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
46
|
+
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
47
|
+
if response.status_code == 200:
|
|
48
|
+
response_200 = AgentResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_200
|
|
51
|
+
if response.status_code == 400:
|
|
52
|
+
response_400 = cast(Any, None)
|
|
53
|
+
return response_400
|
|
54
|
+
if response.status_code == 402:
|
|
55
|
+
response_402 = cast(Any, None)
|
|
56
|
+
return response_402
|
|
57
|
+
if response.status_code == 429:
|
|
58
|
+
response_429 = cast(Any, None)
|
|
59
|
+
return response_429
|
|
60
|
+
if response.status_code == 500:
|
|
61
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
62
|
+
|
|
63
|
+
return response_500
|
|
64
|
+
if response.status_code == 422:
|
|
65
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
66
|
+
|
|
67
|
+
return response_422
|
|
68
|
+
if client.raise_on_unexpected_status:
|
|
69
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
70
|
+
else:
|
|
71
|
+
return None
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def _build_response(
|
|
75
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
76
|
+
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
77
|
+
return Response(
|
|
78
|
+
status_code=HTTPStatus(response.status_code),
|
|
79
|
+
content=response.content,
|
|
80
|
+
headers=response.headers,
|
|
81
|
+
parsed=_parse_response(client=client, response=response),
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def sync_detailed(
|
|
86
|
+
graph_id: str,
|
|
87
|
+
*,
|
|
88
|
+
client: AuthenticatedClient,
|
|
89
|
+
body: AgentRequest,
|
|
90
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
91
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
92
|
+
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
93
|
+
"""Auto-select agent for query
|
|
94
|
+
|
|
95
|
+
Automatically select the best agent for your query.
|
|
96
|
+
|
|
97
|
+
The orchestrator will:
|
|
98
|
+
1. Enrich context with RAG if enabled
|
|
99
|
+
2. Evaluate all available agents
|
|
100
|
+
3. Select the best match based on confidence scores
|
|
101
|
+
4. Execute the query with the selected agent
|
|
102
|
+
|
|
103
|
+
Use this endpoint when you want the system to intelligently route your query.
|
|
104
|
+
|
|
105
|
+
Args:
|
|
106
|
+
graph_id (str):
|
|
107
|
+
authorization (Union[None, Unset, str]):
|
|
108
|
+
auth_token (Union[None, Unset, str]):
|
|
109
|
+
body (AgentRequest): Request model for agent interactions.
|
|
110
|
+
|
|
111
|
+
Raises:
|
|
112
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
113
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
114
|
+
|
|
115
|
+
Returns:
|
|
116
|
+
Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
kwargs = _get_kwargs(
|
|
120
|
+
graph_id=graph_id,
|
|
121
|
+
body=body,
|
|
122
|
+
authorization=authorization,
|
|
123
|
+
auth_token=auth_token,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
response = client.get_httpx_client().request(
|
|
127
|
+
**kwargs,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
return _build_response(client=client, response=response)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def sync(
|
|
134
|
+
graph_id: str,
|
|
135
|
+
*,
|
|
136
|
+
client: AuthenticatedClient,
|
|
137
|
+
body: AgentRequest,
|
|
138
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
139
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
140
|
+
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
141
|
+
"""Auto-select agent for query
|
|
142
|
+
|
|
143
|
+
Automatically select the best agent for your query.
|
|
144
|
+
|
|
145
|
+
The orchestrator will:
|
|
146
|
+
1. Enrich context with RAG if enabled
|
|
147
|
+
2. Evaluate all available agents
|
|
148
|
+
3. Select the best match based on confidence scores
|
|
149
|
+
4. Execute the query with the selected agent
|
|
150
|
+
|
|
151
|
+
Use this endpoint when you want the system to intelligently route your query.
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
graph_id (str):
|
|
155
|
+
authorization (Union[None, Unset, str]):
|
|
156
|
+
auth_token (Union[None, Unset, str]):
|
|
157
|
+
body (AgentRequest): Request model for agent interactions.
|
|
158
|
+
|
|
159
|
+
Raises:
|
|
160
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
161
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
162
|
+
|
|
163
|
+
Returns:
|
|
164
|
+
Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
return sync_detailed(
|
|
168
|
+
graph_id=graph_id,
|
|
169
|
+
client=client,
|
|
170
|
+
body=body,
|
|
171
|
+
authorization=authorization,
|
|
172
|
+
auth_token=auth_token,
|
|
173
|
+
).parsed
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
async def asyncio_detailed(
|
|
177
|
+
graph_id: str,
|
|
178
|
+
*,
|
|
179
|
+
client: AuthenticatedClient,
|
|
180
|
+
body: AgentRequest,
|
|
181
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
182
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
183
|
+
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
184
|
+
"""Auto-select agent for query
|
|
185
|
+
|
|
186
|
+
Automatically select the best agent for your query.
|
|
187
|
+
|
|
188
|
+
The orchestrator will:
|
|
189
|
+
1. Enrich context with RAG if enabled
|
|
190
|
+
2. Evaluate all available agents
|
|
191
|
+
3. Select the best match based on confidence scores
|
|
192
|
+
4. Execute the query with the selected agent
|
|
193
|
+
|
|
194
|
+
Use this endpoint when you want the system to intelligently route your query.
|
|
195
|
+
|
|
196
|
+
Args:
|
|
197
|
+
graph_id (str):
|
|
198
|
+
authorization (Union[None, Unset, str]):
|
|
199
|
+
auth_token (Union[None, Unset, str]):
|
|
200
|
+
body (AgentRequest): Request model for agent interactions.
|
|
201
|
+
|
|
202
|
+
Raises:
|
|
203
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
204
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
205
|
+
|
|
206
|
+
Returns:
|
|
207
|
+
Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]
|
|
208
|
+
"""
|
|
209
|
+
|
|
210
|
+
kwargs = _get_kwargs(
|
|
211
|
+
graph_id=graph_id,
|
|
212
|
+
body=body,
|
|
213
|
+
authorization=authorization,
|
|
214
|
+
auth_token=auth_token,
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
218
|
+
|
|
219
|
+
return _build_response(client=client, response=response)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
async def asyncio(
|
|
223
|
+
graph_id: str,
|
|
224
|
+
*,
|
|
225
|
+
client: AuthenticatedClient,
|
|
226
|
+
body: AgentRequest,
|
|
227
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
228
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
229
|
+
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
230
|
+
"""Auto-select agent for query
|
|
231
|
+
|
|
232
|
+
Automatically select the best agent for your query.
|
|
233
|
+
|
|
234
|
+
The orchestrator will:
|
|
235
|
+
1. Enrich context with RAG if enabled
|
|
236
|
+
2. Evaluate all available agents
|
|
237
|
+
3. Select the best match based on confidence scores
|
|
238
|
+
4. Execute the query with the selected agent
|
|
239
|
+
|
|
240
|
+
Use this endpoint when you want the system to intelligently route your query.
|
|
241
|
+
|
|
242
|
+
Args:
|
|
243
|
+
graph_id (str):
|
|
244
|
+
authorization (Union[None, Unset, str]):
|
|
245
|
+
auth_token (Union[None, Unset, str]):
|
|
246
|
+
body (AgentRequest): Request model for agent interactions.
|
|
247
|
+
|
|
248
|
+
Raises:
|
|
249
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
250
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
251
|
+
|
|
252
|
+
Returns:
|
|
253
|
+
Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
return (
|
|
257
|
+
await asyncio_detailed(
|
|
258
|
+
graph_id=graph_id,
|
|
259
|
+
client=client,
|
|
260
|
+
body=body,
|
|
261
|
+
authorization=authorization,
|
|
262
|
+
auth_token=auth_token,
|
|
263
|
+
)
|
|
264
|
+
).parsed
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.batch_agent_request import BatchAgentRequest
|
|
9
|
+
from ...models.batch_agent_response import BatchAgentResponse
|
|
10
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
graph_id: str,
|
|
16
|
+
*,
|
|
17
|
+
body: BatchAgentRequest,
|
|
18
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
19
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
if not isinstance(authorization, Unset):
|
|
23
|
+
headers["authorization"] = authorization
|
|
24
|
+
|
|
25
|
+
cookies = {}
|
|
26
|
+
if auth_token is not UNSET:
|
|
27
|
+
cookies["auth-token"] = auth_token
|
|
28
|
+
|
|
29
|
+
_kwargs: dict[str, Any] = {
|
|
30
|
+
"method": "post",
|
|
31
|
+
"url": f"/v1/{graph_id}/agent/batch",
|
|
32
|
+
"cookies": cookies,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_kwargs["json"] = body.to_dict()
|
|
36
|
+
|
|
37
|
+
headers["Content-Type"] = "application/json"
|
|
38
|
+
|
|
39
|
+
_kwargs["headers"] = headers
|
|
40
|
+
return _kwargs
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _parse_response(
|
|
44
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
45
|
+
) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
46
|
+
if response.status_code == 200:
|
|
47
|
+
response_200 = BatchAgentResponse.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_200
|
|
50
|
+
if response.status_code == 400:
|
|
51
|
+
response_400 = cast(Any, None)
|
|
52
|
+
return response_400
|
|
53
|
+
if response.status_code == 402:
|
|
54
|
+
response_402 = cast(Any, None)
|
|
55
|
+
return response_402
|
|
56
|
+
if response.status_code == 500:
|
|
57
|
+
response_500 = cast(Any, None)
|
|
58
|
+
return response_500
|
|
59
|
+
if response.status_code == 422:
|
|
60
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
61
|
+
|
|
62
|
+
return response_422
|
|
63
|
+
if client.raise_on_unexpected_status:
|
|
64
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
65
|
+
else:
|
|
66
|
+
return None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _build_response(
|
|
70
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
71
|
+
) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
72
|
+
return Response(
|
|
73
|
+
status_code=HTTPStatus(response.status_code),
|
|
74
|
+
content=response.content,
|
|
75
|
+
headers=response.headers,
|
|
76
|
+
parsed=_parse_response(client=client, response=response),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def sync_detailed(
|
|
81
|
+
graph_id: str,
|
|
82
|
+
*,
|
|
83
|
+
client: AuthenticatedClient,
|
|
84
|
+
body: BatchAgentRequest,
|
|
85
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
86
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
87
|
+
) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
88
|
+
"""Batch process multiple queries
|
|
89
|
+
|
|
90
|
+
Process multiple queries either sequentially or in parallel.
|
|
91
|
+
|
|
92
|
+
**Features:**
|
|
93
|
+
- Process up to 10 queries in a single request
|
|
94
|
+
- Sequential or parallel execution modes
|
|
95
|
+
- Automatic error handling per query
|
|
96
|
+
- Credit checking before execution
|
|
97
|
+
|
|
98
|
+
**Use Cases:**
|
|
99
|
+
- Bulk analysis of multiple entities
|
|
100
|
+
- Comparative analysis across queries
|
|
101
|
+
- Automated report generation
|
|
102
|
+
|
|
103
|
+
Returns individual results for each query with execution metrics.
|
|
104
|
+
|
|
105
|
+
Args:
|
|
106
|
+
graph_id (str):
|
|
107
|
+
authorization (Union[None, Unset, str]):
|
|
108
|
+
auth_token (Union[None, Unset, str]):
|
|
109
|
+
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
110
|
+
|
|
111
|
+
Raises:
|
|
112
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
113
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
114
|
+
|
|
115
|
+
Returns:
|
|
116
|
+
Response[Union[Any, BatchAgentResponse, HTTPValidationError]]
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
kwargs = _get_kwargs(
|
|
120
|
+
graph_id=graph_id,
|
|
121
|
+
body=body,
|
|
122
|
+
authorization=authorization,
|
|
123
|
+
auth_token=auth_token,
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
response = client.get_httpx_client().request(
|
|
127
|
+
**kwargs,
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
return _build_response(client=client, response=response)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def sync(
|
|
134
|
+
graph_id: str,
|
|
135
|
+
*,
|
|
136
|
+
client: AuthenticatedClient,
|
|
137
|
+
body: BatchAgentRequest,
|
|
138
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
139
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
140
|
+
) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
141
|
+
"""Batch process multiple queries
|
|
142
|
+
|
|
143
|
+
Process multiple queries either sequentially or in parallel.
|
|
144
|
+
|
|
145
|
+
**Features:**
|
|
146
|
+
- Process up to 10 queries in a single request
|
|
147
|
+
- Sequential or parallel execution modes
|
|
148
|
+
- Automatic error handling per query
|
|
149
|
+
- Credit checking before execution
|
|
150
|
+
|
|
151
|
+
**Use Cases:**
|
|
152
|
+
- Bulk analysis of multiple entities
|
|
153
|
+
- Comparative analysis across queries
|
|
154
|
+
- Automated report generation
|
|
155
|
+
|
|
156
|
+
Returns individual results for each query with execution metrics.
|
|
157
|
+
|
|
158
|
+
Args:
|
|
159
|
+
graph_id (str):
|
|
160
|
+
authorization (Union[None, Unset, str]):
|
|
161
|
+
auth_token (Union[None, Unset, str]):
|
|
162
|
+
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
163
|
+
|
|
164
|
+
Raises:
|
|
165
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
166
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
167
|
+
|
|
168
|
+
Returns:
|
|
169
|
+
Union[Any, BatchAgentResponse, HTTPValidationError]
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
return sync_detailed(
|
|
173
|
+
graph_id=graph_id,
|
|
174
|
+
client=client,
|
|
175
|
+
body=body,
|
|
176
|
+
authorization=authorization,
|
|
177
|
+
auth_token=auth_token,
|
|
178
|
+
).parsed
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
async def asyncio_detailed(
|
|
182
|
+
graph_id: str,
|
|
183
|
+
*,
|
|
184
|
+
client: AuthenticatedClient,
|
|
185
|
+
body: BatchAgentRequest,
|
|
186
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
187
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
188
|
+
) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
189
|
+
"""Batch process multiple queries
|
|
190
|
+
|
|
191
|
+
Process multiple queries either sequentially or in parallel.
|
|
192
|
+
|
|
193
|
+
**Features:**
|
|
194
|
+
- Process up to 10 queries in a single request
|
|
195
|
+
- Sequential or parallel execution modes
|
|
196
|
+
- Automatic error handling per query
|
|
197
|
+
- Credit checking before execution
|
|
198
|
+
|
|
199
|
+
**Use Cases:**
|
|
200
|
+
- Bulk analysis of multiple entities
|
|
201
|
+
- Comparative analysis across queries
|
|
202
|
+
- Automated report generation
|
|
203
|
+
|
|
204
|
+
Returns individual results for each query with execution metrics.
|
|
205
|
+
|
|
206
|
+
Args:
|
|
207
|
+
graph_id (str):
|
|
208
|
+
authorization (Union[None, Unset, str]):
|
|
209
|
+
auth_token (Union[None, Unset, str]):
|
|
210
|
+
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
211
|
+
|
|
212
|
+
Raises:
|
|
213
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
214
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
215
|
+
|
|
216
|
+
Returns:
|
|
217
|
+
Response[Union[Any, BatchAgentResponse, HTTPValidationError]]
|
|
218
|
+
"""
|
|
219
|
+
|
|
220
|
+
kwargs = _get_kwargs(
|
|
221
|
+
graph_id=graph_id,
|
|
222
|
+
body=body,
|
|
223
|
+
authorization=authorization,
|
|
224
|
+
auth_token=auth_token,
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
228
|
+
|
|
229
|
+
return _build_response(client=client, response=response)
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
async def asyncio(
|
|
233
|
+
graph_id: str,
|
|
234
|
+
*,
|
|
235
|
+
client: AuthenticatedClient,
|
|
236
|
+
body: BatchAgentRequest,
|
|
237
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
238
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
239
|
+
) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
|
|
240
|
+
"""Batch process multiple queries
|
|
241
|
+
|
|
242
|
+
Process multiple queries either sequentially or in parallel.
|
|
243
|
+
|
|
244
|
+
**Features:**
|
|
245
|
+
- Process up to 10 queries in a single request
|
|
246
|
+
- Sequential or parallel execution modes
|
|
247
|
+
- Automatic error handling per query
|
|
248
|
+
- Credit checking before execution
|
|
249
|
+
|
|
250
|
+
**Use Cases:**
|
|
251
|
+
- Bulk analysis of multiple entities
|
|
252
|
+
- Comparative analysis across queries
|
|
253
|
+
- Automated report generation
|
|
254
|
+
|
|
255
|
+
Returns individual results for each query with execution metrics.
|
|
256
|
+
|
|
257
|
+
Args:
|
|
258
|
+
graph_id (str):
|
|
259
|
+
authorization (Union[None, Unset, str]):
|
|
260
|
+
auth_token (Union[None, Unset, str]):
|
|
261
|
+
body (BatchAgentRequest): Request for batch processing multiple queries.
|
|
262
|
+
|
|
263
|
+
Raises:
|
|
264
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
265
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
266
|
+
|
|
267
|
+
Returns:
|
|
268
|
+
Union[Any, BatchAgentResponse, HTTPValidationError]
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
return (
|
|
272
|
+
await asyncio_detailed(
|
|
273
|
+
graph_id=graph_id,
|
|
274
|
+
client=client,
|
|
275
|
+
body=body,
|
|
276
|
+
authorization=authorization,
|
|
277
|
+
auth_token=auth_token,
|
|
278
|
+
)
|
|
279
|
+
).parsed
|