robosystems-client 0.1.15__py3-none-any.whl → 0.1.17__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.

Files changed (130) hide show
  1. robosystems_client/api/agent/auto_select_agent.py +246 -0
  2. robosystems_client/api/agent/batch_process_queries.py +261 -0
  3. robosystems_client/api/agent/execute_specific_agent.py +258 -0
  4. robosystems_client/api/agent/get_agent_metadata.py +238 -0
  5. robosystems_client/api/agent/list_agents.py +246 -0
  6. robosystems_client/api/agent/recommend_agent.py +255 -0
  7. robosystems_client/api/auth/forgot_password.py +191 -0
  8. robosystems_client/api/auth/generate_sso_token.py +18 -0
  9. robosystems_client/api/auth/get_current_auth_user.py +4 -22
  10. robosystems_client/api/auth/logout_user.py +17 -17
  11. robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
  12. robosystems_client/api/auth/resend_verification_email.py +222 -0
  13. robosystems_client/api/auth/reset_password.py +177 -0
  14. robosystems_client/api/auth/validate_reset_token.py +171 -0
  15. robosystems_client/api/auth/verify_email.py +177 -0
  16. robosystems_client/api/backup/create_backup.py +0 -18
  17. robosystems_client/api/backup/export_backup.py +0 -18
  18. robosystems_client/api/backup/get_backup_download_url.py +0 -18
  19. robosystems_client/api/backup/get_backup_stats.py +0 -18
  20. robosystems_client/api/backup/list_backups.py +0 -18
  21. robosystems_client/api/backup/restore_backup.py +0 -18
  22. robosystems_client/api/connections/create_connection.py +0 -18
  23. robosystems_client/api/connections/create_link_token.py +0 -18
  24. robosystems_client/api/connections/delete_connection.py +0 -18
  25. robosystems_client/api/connections/exchange_link_token.py +0 -18
  26. robosystems_client/api/connections/get_connection.py +0 -18
  27. robosystems_client/api/connections/get_connection_options.py +0 -18
  28. robosystems_client/api/connections/init_o_auth.py +0 -18
  29. robosystems_client/api/connections/list_connections.py +0 -18
  30. robosystems_client/api/connections/oauth_callback.py +4 -22
  31. robosystems_client/api/connections/sync_connection.py +0 -18
  32. robosystems_client/api/copy/copy_data_to_graph.py +0 -18
  33. robosystems_client/api/create/create_graph.py +0 -18
  34. robosystems_client/api/graph_analytics/get_graph_metrics.py +0 -18
  35. robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -18
  36. robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -18
  37. robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -18
  38. robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -18
  39. robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -18
  40. robosystems_client/api/graph_credits/check_credit_balance.py +14 -28
  41. robosystems_client/api/graph_credits/check_storage_limits.py +0 -18
  42. robosystems_client/api/graph_credits/get_credit_summary.py +0 -18
  43. robosystems_client/api/graph_credits/get_storage_usage.py +0 -18
  44. robosystems_client/api/graph_credits/list_credit_transactions.py +0 -18
  45. robosystems_client/api/graph_health/get_database_health.py +0 -18
  46. robosystems_client/api/graph_info/get_database_info.py +0 -18
  47. robosystems_client/api/graph_limits/get_graph_limits.py +0 -18
  48. robosystems_client/api/mcp/call_mcp_tool.py +0 -18
  49. robosystems_client/api/mcp/list_mcp_tools.py +0 -18
  50. robosystems_client/api/operations/cancel_operation.py +0 -18
  51. robosystems_client/api/operations/get_operation_status.py +0 -18
  52. robosystems_client/api/operations/stream_operation_events.py +0 -18
  53. robosystems_client/api/query/execute_cypher_query.py +0 -18
  54. robosystems_client/api/schema/export_graph_schema.py +0 -18
  55. robosystems_client/api/schema/get_graph_schema_info.py +0 -18
  56. robosystems_client/api/schema/list_schema_extensions.py +0 -18
  57. robosystems_client/api/schema/validate_schema.py +0 -18
  58. robosystems_client/api/subgraphs/create_subgraph.py +0 -18
  59. robosystems_client/api/subgraphs/delete_subgraph.py +0 -18
  60. robosystems_client/api/subgraphs/get_subgraph_info.py +0 -18
  61. robosystems_client/api/subgraphs/get_subgraph_quota.py +0 -18
  62. robosystems_client/api/subgraphs/list_subgraphs.py +0 -18
  63. robosystems_client/api/user/create_user_api_key.py +0 -18
  64. robosystems_client/api/user/get_all_credit_summaries.py +0 -18
  65. robosystems_client/api/user/get_current_user.py +0 -18
  66. robosystems_client/api/user/get_user_graphs.py +0 -18
  67. robosystems_client/api/user/list_user_api_keys.py +0 -18
  68. robosystems_client/api/user/revoke_user_api_key.py +0 -18
  69. robosystems_client/api/user/select_user_graph.py +0 -18
  70. robosystems_client/api/user/update_user.py +0 -18
  71. robosystems_client/api/user/update_user_api_key.py +0 -18
  72. robosystems_client/api/user/update_user_password.py +0 -18
  73. robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -18
  74. robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -18
  75. robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -18
  76. robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -18
  77. robosystems_client/api/user_limits/get_user_limits.py +0 -18
  78. robosystems_client/api/user_limits/get_user_usage.py +0 -18
  79. robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +0 -18
  80. robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -18
  81. robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -18
  82. robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -18
  83. robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -18
  84. robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +0 -18
  85. robosystems_client/models/__init__.py +51 -3
  86. robosystems_client/models/agent_list_response.py +74 -0
  87. robosystems_client/models/agent_list_response_agents.py +67 -0
  88. robosystems_client/models/{credits_summary_response_credits_by_addon_item.py → agent_list_response_agents_additional_property.py} +5 -5
  89. robosystems_client/models/agent_message.py +35 -1
  90. robosystems_client/models/agent_metadata_response.py +133 -0
  91. robosystems_client/models/agent_mode.py +11 -0
  92. robosystems_client/models/agent_recommendation.py +106 -0
  93. robosystems_client/models/agent_recommendation_request.py +108 -0
  94. robosystems_client/models/agent_recommendation_request_context_type_0.py +44 -0
  95. robosystems_client/models/agent_recommendation_response.py +82 -0
  96. robosystems_client/models/agent_request.py +110 -6
  97. robosystems_client/models/agent_response.py +161 -11
  98. robosystems_client/models/agent_response_error_details_type_0.py +44 -0
  99. robosystems_client/models/agent_response_tokens_used_type_0.py +44 -0
  100. robosystems_client/models/auth_response.py +20 -6
  101. robosystems_client/models/batch_agent_request.py +85 -0
  102. robosystems_client/models/batch_agent_response.py +90 -0
  103. robosystems_client/models/credit_summary.py +35 -9
  104. robosystems_client/models/credits_summary_response.py +47 -21
  105. robosystems_client/models/credits_summary_response_credits_by_addon_type_0_item.py +44 -0
  106. robosystems_client/models/custom_schema_definition.py +7 -14
  107. robosystems_client/models/custom_schema_definition_metadata.py +1 -6
  108. robosystems_client/models/database_health_response.py +11 -11
  109. robosystems_client/models/database_info_response.py +13 -14
  110. robosystems_client/models/email_verification_request.py +60 -0
  111. robosystems_client/models/error_response.py +4 -8
  112. robosystems_client/models/forgot_password_request.py +60 -0
  113. robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
  114. robosystems_client/models/graph_metadata.py +4 -5
  115. robosystems_client/models/health_status.py +2 -2
  116. robosystems_client/models/repository_credits_response.py +43 -16
  117. robosystems_client/models/resend_verification_email_response_resendverificationemail.py +44 -0
  118. robosystems_client/models/reset_password_request.py +68 -0
  119. robosystems_client/models/reset_password_validate_response.py +82 -0
  120. robosystems_client/models/schema_export_response.py +5 -8
  121. robosystems_client/models/schema_validation_request.py +3 -5
  122. robosystems_client/models/schema_validation_response.py +5 -5
  123. robosystems_client/models/selection_criteria.py +122 -0
  124. robosystems_client/models/success_response.py +1 -1
  125. robosystems_client-0.1.17.dist-info/METADATA +89 -0
  126. {robosystems_client-0.1.15.dist-info → robosystems_client-0.1.17.dist-info}/RECORD +128 -97
  127. robosystems_client-0.1.17.dist-info/licenses/LICENSE +21 -0
  128. robosystems_client/api/agent/query_financial_agent.py +0 -423
  129. robosystems_client-0.1.15.dist-info/METADATA +0 -302
  130. {robosystems_client-0.1.15.dist-info → robosystems_client-0.1.17.dist-info}/WHEEL +0 -0
@@ -0,0 +1,246 @@
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
+ ) -> dict[str, Any]:
21
+ headers: dict[str, Any] = {}
22
+ if not isinstance(authorization, Unset):
23
+ headers["authorization"] = authorization
24
+
25
+ _kwargs: dict[str, Any] = {
26
+ "method": "post",
27
+ "url": f"/v1/{graph_id}/agent",
28
+ }
29
+
30
+ _kwargs["json"] = body.to_dict()
31
+
32
+ headers["Content-Type"] = "application/json"
33
+
34
+ _kwargs["headers"] = headers
35
+ return _kwargs
36
+
37
+
38
+ def _parse_response(
39
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
40
+ ) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
41
+ if response.status_code == 200:
42
+ response_200 = AgentResponse.from_dict(response.json())
43
+
44
+ return response_200
45
+ if response.status_code == 400:
46
+ response_400 = cast(Any, None)
47
+ return response_400
48
+ if response.status_code == 402:
49
+ response_402 = cast(Any, None)
50
+ return response_402
51
+ if response.status_code == 429:
52
+ response_429 = cast(Any, None)
53
+ return response_429
54
+ if response.status_code == 500:
55
+ response_500 = ErrorResponse.from_dict(response.json())
56
+
57
+ return response_500
58
+ if response.status_code == 422:
59
+ response_422 = HTTPValidationError.from_dict(response.json())
60
+
61
+ return response_422
62
+ if client.raise_on_unexpected_status:
63
+ raise errors.UnexpectedStatus(response.status_code, response.content)
64
+ else:
65
+ return None
66
+
67
+
68
+ def _build_response(
69
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
70
+ ) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
71
+ return Response(
72
+ status_code=HTTPStatus(response.status_code),
73
+ content=response.content,
74
+ headers=response.headers,
75
+ parsed=_parse_response(client=client, response=response),
76
+ )
77
+
78
+
79
+ def sync_detailed(
80
+ graph_id: str,
81
+ *,
82
+ client: AuthenticatedClient,
83
+ body: AgentRequest,
84
+ authorization: Union[None, Unset, str] = UNSET,
85
+ ) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
86
+ """Auto-select agent for query
87
+
88
+ Automatically select the best agent for your query.
89
+
90
+ The orchestrator will:
91
+ 1. Enrich context with RAG if enabled
92
+ 2. Evaluate all available agents
93
+ 3. Select the best match based on confidence scores
94
+ 4. Execute the query with the selected agent
95
+
96
+ Use this endpoint when you want the system to intelligently route your query.
97
+
98
+ Args:
99
+ graph_id (str):
100
+ authorization (Union[None, Unset, str]):
101
+ body (AgentRequest): Request model for agent interactions.
102
+
103
+ Raises:
104
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
106
+
107
+ Returns:
108
+ Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]
109
+ """
110
+
111
+ kwargs = _get_kwargs(
112
+ graph_id=graph_id,
113
+ body=body,
114
+ authorization=authorization,
115
+ )
116
+
117
+ response = client.get_httpx_client().request(
118
+ **kwargs,
119
+ )
120
+
121
+ return _build_response(client=client, response=response)
122
+
123
+
124
+ def sync(
125
+ graph_id: str,
126
+ *,
127
+ client: AuthenticatedClient,
128
+ body: AgentRequest,
129
+ authorization: Union[None, Unset, str] = UNSET,
130
+ ) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
131
+ """Auto-select agent for query
132
+
133
+ Automatically select the best agent for your query.
134
+
135
+ The orchestrator will:
136
+ 1. Enrich context with RAG if enabled
137
+ 2. Evaluate all available agents
138
+ 3. Select the best match based on confidence scores
139
+ 4. Execute the query with the selected agent
140
+
141
+ Use this endpoint when you want the system to intelligently route your query.
142
+
143
+ Args:
144
+ graph_id (str):
145
+ authorization (Union[None, Unset, str]):
146
+ body (AgentRequest): Request model for agent interactions.
147
+
148
+ Raises:
149
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
150
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
151
+
152
+ Returns:
153
+ Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]
154
+ """
155
+
156
+ return sync_detailed(
157
+ graph_id=graph_id,
158
+ client=client,
159
+ body=body,
160
+ authorization=authorization,
161
+ ).parsed
162
+
163
+
164
+ async def asyncio_detailed(
165
+ graph_id: str,
166
+ *,
167
+ client: AuthenticatedClient,
168
+ body: AgentRequest,
169
+ authorization: Union[None, Unset, str] = UNSET,
170
+ ) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
171
+ """Auto-select agent for query
172
+
173
+ Automatically select the best agent for your query.
174
+
175
+ The orchestrator will:
176
+ 1. Enrich context with RAG if enabled
177
+ 2. Evaluate all available agents
178
+ 3. Select the best match based on confidence scores
179
+ 4. Execute the query with the selected agent
180
+
181
+ Use this endpoint when you want the system to intelligently route your query.
182
+
183
+ Args:
184
+ graph_id (str):
185
+ authorization (Union[None, Unset, str]):
186
+ body (AgentRequest): Request model for agent interactions.
187
+
188
+ Raises:
189
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
190
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
191
+
192
+ Returns:
193
+ Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]
194
+ """
195
+
196
+ kwargs = _get_kwargs(
197
+ graph_id=graph_id,
198
+ body=body,
199
+ authorization=authorization,
200
+ )
201
+
202
+ response = await client.get_async_httpx_client().request(**kwargs)
203
+
204
+ return _build_response(client=client, response=response)
205
+
206
+
207
+ async def asyncio(
208
+ graph_id: str,
209
+ *,
210
+ client: AuthenticatedClient,
211
+ body: AgentRequest,
212
+ authorization: Union[None, Unset, str] = UNSET,
213
+ ) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
214
+ """Auto-select agent for query
215
+
216
+ Automatically select the best agent for your query.
217
+
218
+ The orchestrator will:
219
+ 1. Enrich context with RAG if enabled
220
+ 2. Evaluate all available agents
221
+ 3. Select the best match based on confidence scores
222
+ 4. Execute the query with the selected agent
223
+
224
+ Use this endpoint when you want the system to intelligently route your query.
225
+
226
+ Args:
227
+ graph_id (str):
228
+ authorization (Union[None, Unset, str]):
229
+ body (AgentRequest): Request model for agent interactions.
230
+
231
+ Raises:
232
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
233
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
234
+
235
+ Returns:
236
+ Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]
237
+ """
238
+
239
+ return (
240
+ await asyncio_detailed(
241
+ graph_id=graph_id,
242
+ client=client,
243
+ body=body,
244
+ authorization=authorization,
245
+ )
246
+ ).parsed
@@ -0,0 +1,261 @@
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
+ ) -> dict[str, Any]:
20
+ headers: dict[str, Any] = {}
21
+ if not isinstance(authorization, Unset):
22
+ headers["authorization"] = authorization
23
+
24
+ _kwargs: dict[str, Any] = {
25
+ "method": "post",
26
+ "url": f"/v1/{graph_id}/agent/batch",
27
+ }
28
+
29
+ _kwargs["json"] = body.to_dict()
30
+
31
+ headers["Content-Type"] = "application/json"
32
+
33
+ _kwargs["headers"] = headers
34
+ return _kwargs
35
+
36
+
37
+ def _parse_response(
38
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
39
+ ) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
40
+ if response.status_code == 200:
41
+ response_200 = BatchAgentResponse.from_dict(response.json())
42
+
43
+ return response_200
44
+ if response.status_code == 400:
45
+ response_400 = cast(Any, None)
46
+ return response_400
47
+ if response.status_code == 402:
48
+ response_402 = cast(Any, None)
49
+ return response_402
50
+ if response.status_code == 500:
51
+ response_500 = cast(Any, None)
52
+ return response_500
53
+ if response.status_code == 422:
54
+ response_422 = HTTPValidationError.from_dict(response.json())
55
+
56
+ return response_422
57
+ if client.raise_on_unexpected_status:
58
+ raise errors.UnexpectedStatus(response.status_code, response.content)
59
+ else:
60
+ return None
61
+
62
+
63
+ def _build_response(
64
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
65
+ ) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
66
+ return Response(
67
+ status_code=HTTPStatus(response.status_code),
68
+ content=response.content,
69
+ headers=response.headers,
70
+ parsed=_parse_response(client=client, response=response),
71
+ )
72
+
73
+
74
+ def sync_detailed(
75
+ graph_id: str,
76
+ *,
77
+ client: AuthenticatedClient,
78
+ body: BatchAgentRequest,
79
+ authorization: Union[None, Unset, str] = UNSET,
80
+ ) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
81
+ """Batch process multiple queries
82
+
83
+ Process multiple queries either sequentially or in parallel.
84
+
85
+ **Features:**
86
+ - Process up to 10 queries in a single request
87
+ - Sequential or parallel execution modes
88
+ - Automatic error handling per query
89
+ - Credit checking before execution
90
+
91
+ **Use Cases:**
92
+ - Bulk analysis of multiple entities
93
+ - Comparative analysis across queries
94
+ - Automated report generation
95
+
96
+ Returns individual results for each query with execution metrics.
97
+
98
+ Args:
99
+ graph_id (str):
100
+ authorization (Union[None, Unset, str]):
101
+ body (BatchAgentRequest): Request for batch processing multiple queries.
102
+
103
+ Raises:
104
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
105
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
106
+
107
+ Returns:
108
+ Response[Union[Any, BatchAgentResponse, HTTPValidationError]]
109
+ """
110
+
111
+ kwargs = _get_kwargs(
112
+ graph_id=graph_id,
113
+ body=body,
114
+ authorization=authorization,
115
+ )
116
+
117
+ response = client.get_httpx_client().request(
118
+ **kwargs,
119
+ )
120
+
121
+ return _build_response(client=client, response=response)
122
+
123
+
124
+ def sync(
125
+ graph_id: str,
126
+ *,
127
+ client: AuthenticatedClient,
128
+ body: BatchAgentRequest,
129
+ authorization: Union[None, Unset, str] = UNSET,
130
+ ) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
131
+ """Batch process multiple queries
132
+
133
+ Process multiple queries either sequentially or in parallel.
134
+
135
+ **Features:**
136
+ - Process up to 10 queries in a single request
137
+ - Sequential or parallel execution modes
138
+ - Automatic error handling per query
139
+ - Credit checking before execution
140
+
141
+ **Use Cases:**
142
+ - Bulk analysis of multiple entities
143
+ - Comparative analysis across queries
144
+ - Automated report generation
145
+
146
+ Returns individual results for each query with execution metrics.
147
+
148
+ Args:
149
+ graph_id (str):
150
+ authorization (Union[None, Unset, str]):
151
+ body (BatchAgentRequest): Request for batch processing multiple queries.
152
+
153
+ Raises:
154
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
155
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
156
+
157
+ Returns:
158
+ Union[Any, BatchAgentResponse, HTTPValidationError]
159
+ """
160
+
161
+ return sync_detailed(
162
+ graph_id=graph_id,
163
+ client=client,
164
+ body=body,
165
+ authorization=authorization,
166
+ ).parsed
167
+
168
+
169
+ async def asyncio_detailed(
170
+ graph_id: str,
171
+ *,
172
+ client: AuthenticatedClient,
173
+ body: BatchAgentRequest,
174
+ authorization: Union[None, Unset, str] = UNSET,
175
+ ) -> Response[Union[Any, BatchAgentResponse, HTTPValidationError]]:
176
+ """Batch process multiple queries
177
+
178
+ Process multiple queries either sequentially or in parallel.
179
+
180
+ **Features:**
181
+ - Process up to 10 queries in a single request
182
+ - Sequential or parallel execution modes
183
+ - Automatic error handling per query
184
+ - Credit checking before execution
185
+
186
+ **Use Cases:**
187
+ - Bulk analysis of multiple entities
188
+ - Comparative analysis across queries
189
+ - Automated report generation
190
+
191
+ Returns individual results for each query with execution metrics.
192
+
193
+ Args:
194
+ graph_id (str):
195
+ authorization (Union[None, Unset, str]):
196
+ body (BatchAgentRequest): Request for batch processing multiple queries.
197
+
198
+ Raises:
199
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
200
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
201
+
202
+ Returns:
203
+ Response[Union[Any, BatchAgentResponse, HTTPValidationError]]
204
+ """
205
+
206
+ kwargs = _get_kwargs(
207
+ graph_id=graph_id,
208
+ body=body,
209
+ authorization=authorization,
210
+ )
211
+
212
+ response = await client.get_async_httpx_client().request(**kwargs)
213
+
214
+ return _build_response(client=client, response=response)
215
+
216
+
217
+ async def asyncio(
218
+ graph_id: str,
219
+ *,
220
+ client: AuthenticatedClient,
221
+ body: BatchAgentRequest,
222
+ authorization: Union[None, Unset, str] = UNSET,
223
+ ) -> Optional[Union[Any, BatchAgentResponse, HTTPValidationError]]:
224
+ """Batch process multiple queries
225
+
226
+ Process multiple queries either sequentially or in parallel.
227
+
228
+ **Features:**
229
+ - Process up to 10 queries in a single request
230
+ - Sequential or parallel execution modes
231
+ - Automatic error handling per query
232
+ - Credit checking before execution
233
+
234
+ **Use Cases:**
235
+ - Bulk analysis of multiple entities
236
+ - Comparative analysis across queries
237
+ - Automated report generation
238
+
239
+ Returns individual results for each query with execution metrics.
240
+
241
+ Args:
242
+ graph_id (str):
243
+ authorization (Union[None, Unset, str]):
244
+ body (BatchAgentRequest): Request for batch processing multiple queries.
245
+
246
+ Raises:
247
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
248
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
249
+
250
+ Returns:
251
+ Union[Any, BatchAgentResponse, HTTPValidationError]
252
+ """
253
+
254
+ return (
255
+ await asyncio_detailed(
256
+ graph_id=graph_id,
257
+ client=client,
258
+ body=body,
259
+ authorization=authorization,
260
+ )
261
+ ).parsed