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.
- robosystems_client/api/agent/auto_select_agent.py +246 -0
- robosystems_client/api/agent/batch_process_queries.py +261 -0
- robosystems_client/api/agent/execute_specific_agent.py +258 -0
- robosystems_client/api/agent/get_agent_metadata.py +238 -0
- robosystems_client/api/agent/list_agents.py +246 -0
- robosystems_client/api/agent/recommend_agent.py +255 -0
- robosystems_client/api/auth/forgot_password.py +191 -0
- robosystems_client/api/auth/generate_sso_token.py +18 -0
- robosystems_client/api/auth/get_current_auth_user.py +4 -22
- robosystems_client/api/auth/logout_user.py +17 -17
- robosystems_client/api/auth/{refresh_session.py → refresh_auth_session.py} +21 -21
- robosystems_client/api/auth/resend_verification_email.py +222 -0
- robosystems_client/api/auth/reset_password.py +177 -0
- robosystems_client/api/auth/validate_reset_token.py +171 -0
- robosystems_client/api/auth/verify_email.py +177 -0
- robosystems_client/api/backup/create_backup.py +0 -18
- robosystems_client/api/backup/export_backup.py +0 -18
- robosystems_client/api/backup/get_backup_download_url.py +0 -18
- robosystems_client/api/backup/get_backup_stats.py +0 -18
- robosystems_client/api/backup/list_backups.py +0 -18
- robosystems_client/api/backup/restore_backup.py +0 -18
- robosystems_client/api/connections/create_connection.py +0 -18
- robosystems_client/api/connections/create_link_token.py +0 -18
- robosystems_client/api/connections/delete_connection.py +0 -18
- robosystems_client/api/connections/exchange_link_token.py +0 -18
- robosystems_client/api/connections/get_connection.py +0 -18
- robosystems_client/api/connections/get_connection_options.py +0 -18
- robosystems_client/api/connections/init_o_auth.py +0 -18
- robosystems_client/api/connections/list_connections.py +0 -18
- robosystems_client/api/connections/oauth_callback.py +4 -22
- robosystems_client/api/connections/sync_connection.py +0 -18
- robosystems_client/api/copy/copy_data_to_graph.py +0 -18
- robosystems_client/api/create/create_graph.py +0 -18
- robosystems_client/api/graph_analytics/get_graph_metrics.py +0 -18
- robosystems_client/api/graph_analytics/get_graph_usage_stats.py +0 -18
- robosystems_client/api/graph_billing/get_current_graph_bill.py +0 -18
- robosystems_client/api/graph_billing/get_graph_billing_history.py +0 -18
- robosystems_client/api/graph_billing/get_graph_monthly_bill.py +0 -18
- robosystems_client/api/graph_billing/get_graph_usage_details.py +0 -18
- robosystems_client/api/graph_credits/check_credit_balance.py +14 -28
- robosystems_client/api/graph_credits/check_storage_limits.py +0 -18
- robosystems_client/api/graph_credits/get_credit_summary.py +0 -18
- robosystems_client/api/graph_credits/get_storage_usage.py +0 -18
- robosystems_client/api/graph_credits/list_credit_transactions.py +0 -18
- robosystems_client/api/graph_health/get_database_health.py +0 -18
- robosystems_client/api/graph_info/get_database_info.py +0 -18
- robosystems_client/api/graph_limits/get_graph_limits.py +0 -18
- robosystems_client/api/mcp/call_mcp_tool.py +0 -18
- robosystems_client/api/mcp/list_mcp_tools.py +0 -18
- robosystems_client/api/operations/cancel_operation.py +0 -18
- robosystems_client/api/operations/get_operation_status.py +0 -18
- robosystems_client/api/operations/stream_operation_events.py +0 -18
- robosystems_client/api/query/execute_cypher_query.py +0 -18
- robosystems_client/api/schema/export_graph_schema.py +0 -18
- robosystems_client/api/schema/get_graph_schema_info.py +0 -18
- robosystems_client/api/schema/list_schema_extensions.py +0 -18
- robosystems_client/api/schema/validate_schema.py +0 -18
- robosystems_client/api/subgraphs/create_subgraph.py +0 -18
- robosystems_client/api/subgraphs/delete_subgraph.py +0 -18
- robosystems_client/api/subgraphs/get_subgraph_info.py +0 -18
- robosystems_client/api/subgraphs/get_subgraph_quota.py +0 -18
- robosystems_client/api/subgraphs/list_subgraphs.py +0 -18
- robosystems_client/api/user/create_user_api_key.py +0 -18
- robosystems_client/api/user/get_all_credit_summaries.py +0 -18
- robosystems_client/api/user/get_current_user.py +0 -18
- robosystems_client/api/user/get_user_graphs.py +0 -18
- robosystems_client/api/user/list_user_api_keys.py +0 -18
- robosystems_client/api/user/revoke_user_api_key.py +0 -18
- robosystems_client/api/user/select_user_graph.py +0 -18
- robosystems_client/api/user/update_user.py +0 -18
- robosystems_client/api/user/update_user_api_key.py +0 -18
- robosystems_client/api/user/update_user_password.py +0 -18
- robosystems_client/api/user_analytics/get_detailed_user_analytics.py +0 -18
- robosystems_client/api/user_analytics/get_user_usage_overview.py +0 -18
- robosystems_client/api/user_limits/get_all_shared_repository_limits.py +0 -18
- robosystems_client/api/user_limits/get_shared_repository_limits.py +0 -18
- robosystems_client/api/user_limits/get_user_limits.py +0 -18
- robosystems_client/api/user_limits/get_user_usage.py +0 -18
- robosystems_client/api/user_subscriptions/cancel_shared_repository_subscription.py +0 -18
- robosystems_client/api/user_subscriptions/get_repository_credits.py +0 -18
- robosystems_client/api/user_subscriptions/get_shared_repository_credits.py +0 -18
- robosystems_client/api/user_subscriptions/get_user_shared_subscriptions.py +0 -18
- robosystems_client/api/user_subscriptions/subscribe_to_shared_repository.py +0 -18
- robosystems_client/api/user_subscriptions/upgrade_shared_repository_subscription.py +0 -18
- robosystems_client/models/__init__.py +51 -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/email_verification_request.py +60 -0
- robosystems_client/models/error_response.py +4 -8
- robosystems_client/models/forgot_password_request.py +60 -0
- robosystems_client/models/forgot_password_response_forgotpassword.py +44 -0
- 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/resend_verification_email_response_resendverificationemail.py +44 -0
- robosystems_client/models/reset_password_request.py +68 -0
- robosystems_client/models/reset_password_validate_response.py +82 -0
- 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.17.dist-info/METADATA +89 -0
- {robosystems_client-0.1.15.dist-info → robosystems_client-0.1.17.dist-info}/RECORD +128 -97
- robosystems_client-0.1.17.dist-info/licenses/LICENSE +21 -0
- robosystems_client/api/agent/query_financial_agent.py +0 -423
- robosystems_client-0.1.15.dist-info/METADATA +0 -302
- {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_list_response import AgentListResponse
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
graph_id: str,
|
|
15
|
+
*,
|
|
16
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
17
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
headers: dict[str, Any] = {}
|
|
20
|
+
if not isinstance(authorization, Unset):
|
|
21
|
+
headers["authorization"] = authorization
|
|
22
|
+
|
|
23
|
+
params: dict[str, Any] = {}
|
|
24
|
+
|
|
25
|
+
json_capability: Union[None, Unset, str]
|
|
26
|
+
if isinstance(capability, Unset):
|
|
27
|
+
json_capability = UNSET
|
|
28
|
+
else:
|
|
29
|
+
json_capability = capability
|
|
30
|
+
params["capability"] = json_capability
|
|
31
|
+
|
|
32
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
33
|
+
|
|
34
|
+
_kwargs: dict[str, Any] = {
|
|
35
|
+
"method": "get",
|
|
36
|
+
"url": f"/v1/{graph_id}/agent/list",
|
|
37
|
+
"params": params,
|
|
38
|
+
}
|
|
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[AgentListResponse, Any, HTTPValidationError]]:
|
|
47
|
+
if response.status_code == 200:
|
|
48
|
+
response_200 = AgentListResponse.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_200
|
|
51
|
+
if response.status_code == 401:
|
|
52
|
+
response_401 = cast(Any, None)
|
|
53
|
+
return response_401
|
|
54
|
+
if response.status_code == 422:
|
|
55
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
56
|
+
|
|
57
|
+
return response_422
|
|
58
|
+
if client.raise_on_unexpected_status:
|
|
59
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
60
|
+
else:
|
|
61
|
+
return None
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def _build_response(
|
|
65
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
66
|
+
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
67
|
+
return Response(
|
|
68
|
+
status_code=HTTPStatus(response.status_code),
|
|
69
|
+
content=response.content,
|
|
70
|
+
headers=response.headers,
|
|
71
|
+
parsed=_parse_response(client=client, response=response),
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def sync_detailed(
|
|
76
|
+
graph_id: str,
|
|
77
|
+
*,
|
|
78
|
+
client: AuthenticatedClient,
|
|
79
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
80
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
81
|
+
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
82
|
+
"""List available agents
|
|
83
|
+
|
|
84
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
85
|
+
|
|
86
|
+
**Returns:**
|
|
87
|
+
- Agent types and names
|
|
88
|
+
- Capabilities and supported modes
|
|
89
|
+
- Version information
|
|
90
|
+
- Credit requirements
|
|
91
|
+
|
|
92
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
graph_id (str): Graph database identifier
|
|
96
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
97
|
+
'rag_search')
|
|
98
|
+
authorization (Union[None, Unset, str]):
|
|
99
|
+
|
|
100
|
+
Raises:
|
|
101
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
102
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
103
|
+
|
|
104
|
+
Returns:
|
|
105
|
+
Response[Union[AgentListResponse, Any, HTTPValidationError]]
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
kwargs = _get_kwargs(
|
|
109
|
+
graph_id=graph_id,
|
|
110
|
+
capability=capability,
|
|
111
|
+
authorization=authorization,
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
response = client.get_httpx_client().request(
|
|
115
|
+
**kwargs,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
return _build_response(client=client, response=response)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def sync(
|
|
122
|
+
graph_id: str,
|
|
123
|
+
*,
|
|
124
|
+
client: AuthenticatedClient,
|
|
125
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
126
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
127
|
+
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
128
|
+
"""List available agents
|
|
129
|
+
|
|
130
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
131
|
+
|
|
132
|
+
**Returns:**
|
|
133
|
+
- Agent types and names
|
|
134
|
+
- Capabilities and supported modes
|
|
135
|
+
- Version information
|
|
136
|
+
- Credit requirements
|
|
137
|
+
|
|
138
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
139
|
+
|
|
140
|
+
Args:
|
|
141
|
+
graph_id (str): Graph database identifier
|
|
142
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
143
|
+
'rag_search')
|
|
144
|
+
authorization (Union[None, Unset, str]):
|
|
145
|
+
|
|
146
|
+
Raises:
|
|
147
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
Union[AgentListResponse, Any, HTTPValidationError]
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
return sync_detailed(
|
|
155
|
+
graph_id=graph_id,
|
|
156
|
+
client=client,
|
|
157
|
+
capability=capability,
|
|
158
|
+
authorization=authorization,
|
|
159
|
+
).parsed
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
async def asyncio_detailed(
|
|
163
|
+
graph_id: str,
|
|
164
|
+
*,
|
|
165
|
+
client: AuthenticatedClient,
|
|
166
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
167
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
168
|
+
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
169
|
+
"""List available agents
|
|
170
|
+
|
|
171
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
172
|
+
|
|
173
|
+
**Returns:**
|
|
174
|
+
- Agent types and names
|
|
175
|
+
- Capabilities and supported modes
|
|
176
|
+
- Version information
|
|
177
|
+
- Credit requirements
|
|
178
|
+
|
|
179
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
180
|
+
|
|
181
|
+
Args:
|
|
182
|
+
graph_id (str): Graph database identifier
|
|
183
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
184
|
+
'rag_search')
|
|
185
|
+
authorization (Union[None, Unset, str]):
|
|
186
|
+
|
|
187
|
+
Raises:
|
|
188
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
189
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
190
|
+
|
|
191
|
+
Returns:
|
|
192
|
+
Response[Union[AgentListResponse, Any, HTTPValidationError]]
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
kwargs = _get_kwargs(
|
|
196
|
+
graph_id=graph_id,
|
|
197
|
+
capability=capability,
|
|
198
|
+
authorization=authorization,
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
202
|
+
|
|
203
|
+
return _build_response(client=client, response=response)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
async def asyncio(
|
|
207
|
+
graph_id: str,
|
|
208
|
+
*,
|
|
209
|
+
client: AuthenticatedClient,
|
|
210
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
211
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
212
|
+
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
213
|
+
"""List available agents
|
|
214
|
+
|
|
215
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
216
|
+
|
|
217
|
+
**Returns:**
|
|
218
|
+
- Agent types and names
|
|
219
|
+
- Capabilities and supported modes
|
|
220
|
+
- Version information
|
|
221
|
+
- Credit requirements
|
|
222
|
+
|
|
223
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
224
|
+
|
|
225
|
+
Args:
|
|
226
|
+
graph_id (str): Graph database identifier
|
|
227
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
228
|
+
'rag_search')
|
|
229
|
+
authorization (Union[None, Unset, str]):
|
|
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[AgentListResponse, Any, HTTPValidationError]
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
return (
|
|
240
|
+
await asyncio_detailed(
|
|
241
|
+
graph_id=graph_id,
|
|
242
|
+
client=client,
|
|
243
|
+
capability=capability,
|
|
244
|
+
authorization=authorization,
|
|
245
|
+
)
|
|
246
|
+
).parsed
|
|
@@ -0,0 +1,255 @@
|
|
|
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_recommendation_request import AgentRecommendationRequest
|
|
9
|
+
from ...models.agent_recommendation_response import AgentRecommendationResponse
|
|
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: AgentRecommendationRequest,
|
|
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/recommend",
|
|
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[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
40
|
+
if response.status_code == 200:
|
|
41
|
+
response_200 = AgentRecommendationResponse.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 == 422:
|
|
48
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
49
|
+
|
|
50
|
+
return response_422
|
|
51
|
+
if client.raise_on_unexpected_status:
|
|
52
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
53
|
+
else:
|
|
54
|
+
return None
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _build_response(
|
|
58
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
59
|
+
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
60
|
+
return Response(
|
|
61
|
+
status_code=HTTPStatus(response.status_code),
|
|
62
|
+
content=response.content,
|
|
63
|
+
headers=response.headers,
|
|
64
|
+
parsed=_parse_response(client=client, response=response),
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def sync_detailed(
|
|
69
|
+
graph_id: str,
|
|
70
|
+
*,
|
|
71
|
+
client: AuthenticatedClient,
|
|
72
|
+
body: AgentRecommendationRequest,
|
|
73
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
74
|
+
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
75
|
+
"""Get agent recommendations
|
|
76
|
+
|
|
77
|
+
Get intelligent agent recommendations for a specific query.
|
|
78
|
+
|
|
79
|
+
**How it works:**
|
|
80
|
+
1. Analyzes query content and structure
|
|
81
|
+
2. Evaluates agent capabilities
|
|
82
|
+
3. Calculates confidence scores
|
|
83
|
+
4. Returns ranked recommendations
|
|
84
|
+
|
|
85
|
+
**Use this when:**
|
|
86
|
+
- Unsure which agent to use
|
|
87
|
+
- Need to understand agent suitability
|
|
88
|
+
- Want confidence scores for decision making
|
|
89
|
+
|
|
90
|
+
Returns top agents ranked by confidence with explanations.
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
graph_id (str): Graph database identifier
|
|
94
|
+
authorization (Union[None, Unset, str]):
|
|
95
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
96
|
+
|
|
97
|
+
Raises:
|
|
98
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
99
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
100
|
+
|
|
101
|
+
Returns:
|
|
102
|
+
Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
kwargs = _get_kwargs(
|
|
106
|
+
graph_id=graph_id,
|
|
107
|
+
body=body,
|
|
108
|
+
authorization=authorization,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
response = client.get_httpx_client().request(
|
|
112
|
+
**kwargs,
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
return _build_response(client=client, response=response)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def sync(
|
|
119
|
+
graph_id: str,
|
|
120
|
+
*,
|
|
121
|
+
client: AuthenticatedClient,
|
|
122
|
+
body: AgentRecommendationRequest,
|
|
123
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
124
|
+
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
125
|
+
"""Get agent recommendations
|
|
126
|
+
|
|
127
|
+
Get intelligent agent recommendations for a specific query.
|
|
128
|
+
|
|
129
|
+
**How it works:**
|
|
130
|
+
1. Analyzes query content and structure
|
|
131
|
+
2. Evaluates agent capabilities
|
|
132
|
+
3. Calculates confidence scores
|
|
133
|
+
4. Returns ranked recommendations
|
|
134
|
+
|
|
135
|
+
**Use this when:**
|
|
136
|
+
- Unsure which agent to use
|
|
137
|
+
- Need to understand agent suitability
|
|
138
|
+
- Want confidence scores for decision making
|
|
139
|
+
|
|
140
|
+
Returns top agents ranked by confidence with explanations.
|
|
141
|
+
|
|
142
|
+
Args:
|
|
143
|
+
graph_id (str): Graph database identifier
|
|
144
|
+
authorization (Union[None, Unset, str]):
|
|
145
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
146
|
+
|
|
147
|
+
Raises:
|
|
148
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
149
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
150
|
+
|
|
151
|
+
Returns:
|
|
152
|
+
Union[AgentRecommendationResponse, Any, HTTPValidationError]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
return sync_detailed(
|
|
156
|
+
graph_id=graph_id,
|
|
157
|
+
client=client,
|
|
158
|
+
body=body,
|
|
159
|
+
authorization=authorization,
|
|
160
|
+
).parsed
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
async def asyncio_detailed(
|
|
164
|
+
graph_id: str,
|
|
165
|
+
*,
|
|
166
|
+
client: AuthenticatedClient,
|
|
167
|
+
body: AgentRecommendationRequest,
|
|
168
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
169
|
+
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
170
|
+
"""Get agent recommendations
|
|
171
|
+
|
|
172
|
+
Get intelligent agent recommendations for a specific query.
|
|
173
|
+
|
|
174
|
+
**How it works:**
|
|
175
|
+
1. Analyzes query content and structure
|
|
176
|
+
2. Evaluates agent capabilities
|
|
177
|
+
3. Calculates confidence scores
|
|
178
|
+
4. Returns ranked recommendations
|
|
179
|
+
|
|
180
|
+
**Use this when:**
|
|
181
|
+
- Unsure which agent to use
|
|
182
|
+
- Need to understand agent suitability
|
|
183
|
+
- Want confidence scores for decision making
|
|
184
|
+
|
|
185
|
+
Returns top agents ranked by confidence with explanations.
|
|
186
|
+
|
|
187
|
+
Args:
|
|
188
|
+
graph_id (str): Graph database identifier
|
|
189
|
+
authorization (Union[None, Unset, str]):
|
|
190
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
191
|
+
|
|
192
|
+
Raises:
|
|
193
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
194
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
195
|
+
|
|
196
|
+
Returns:
|
|
197
|
+
Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
kwargs = _get_kwargs(
|
|
201
|
+
graph_id=graph_id,
|
|
202
|
+
body=body,
|
|
203
|
+
authorization=authorization,
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
207
|
+
|
|
208
|
+
return _build_response(client=client, response=response)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
async def asyncio(
|
|
212
|
+
graph_id: str,
|
|
213
|
+
*,
|
|
214
|
+
client: AuthenticatedClient,
|
|
215
|
+
body: AgentRecommendationRequest,
|
|
216
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
217
|
+
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
218
|
+
"""Get agent recommendations
|
|
219
|
+
|
|
220
|
+
Get intelligent agent recommendations for a specific query.
|
|
221
|
+
|
|
222
|
+
**How it works:**
|
|
223
|
+
1. Analyzes query content and structure
|
|
224
|
+
2. Evaluates agent capabilities
|
|
225
|
+
3. Calculates confidence scores
|
|
226
|
+
4. Returns ranked recommendations
|
|
227
|
+
|
|
228
|
+
**Use this when:**
|
|
229
|
+
- Unsure which agent to use
|
|
230
|
+
- Need to understand agent suitability
|
|
231
|
+
- Want confidence scores for decision making
|
|
232
|
+
|
|
233
|
+
Returns top agents ranked by confidence with explanations.
|
|
234
|
+
|
|
235
|
+
Args:
|
|
236
|
+
graph_id (str): Graph database identifier
|
|
237
|
+
authorization (Union[None, Unset, str]):
|
|
238
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
239
|
+
|
|
240
|
+
Raises:
|
|
241
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
242
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
243
|
+
|
|
244
|
+
Returns:
|
|
245
|
+
Union[AgentRecommendationResponse, Any, HTTPValidationError]
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
return (
|
|
249
|
+
await asyncio_detailed(
|
|
250
|
+
graph_id=graph_id,
|
|
251
|
+
client=client,
|
|
252
|
+
body=body,
|
|
253
|
+
authorization=authorization,
|
|
254
|
+
)
|
|
255
|
+
).parsed
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.error_response import ErrorResponse
|
|
9
|
+
from ...models.forgot_password_request import ForgotPasswordRequest
|
|
10
|
+
from ...models.forgot_password_response_forgotpassword import (
|
|
11
|
+
ForgotPasswordResponseForgotpassword,
|
|
12
|
+
)
|
|
13
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
14
|
+
from ...types import Response
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _get_kwargs(
|
|
18
|
+
*,
|
|
19
|
+
body: ForgotPasswordRequest,
|
|
20
|
+
) -> dict[str, Any]:
|
|
21
|
+
headers: dict[str, Any] = {}
|
|
22
|
+
|
|
23
|
+
_kwargs: dict[str, Any] = {
|
|
24
|
+
"method": "post",
|
|
25
|
+
"url": "/v1/auth/password/forgot",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
_kwargs["json"] = body.to_dict()
|
|
29
|
+
|
|
30
|
+
headers["Content-Type"] = "application/json"
|
|
31
|
+
|
|
32
|
+
_kwargs["headers"] = headers
|
|
33
|
+
return _kwargs
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _parse_response(
|
|
37
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
38
|
+
) -> Optional[
|
|
39
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
40
|
+
]:
|
|
41
|
+
if response.status_code == 200:
|
|
42
|
+
response_200 = ForgotPasswordResponseForgotpassword.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_200
|
|
45
|
+
if response.status_code == 429:
|
|
46
|
+
response_429 = ErrorResponse.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_429
|
|
49
|
+
if response.status_code == 422:
|
|
50
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
51
|
+
|
|
52
|
+
return response_422
|
|
53
|
+
if client.raise_on_unexpected_status:
|
|
54
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
55
|
+
else:
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _build_response(
|
|
60
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
61
|
+
) -> Response[
|
|
62
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
63
|
+
]:
|
|
64
|
+
return Response(
|
|
65
|
+
status_code=HTTPStatus(response.status_code),
|
|
66
|
+
content=response.content,
|
|
67
|
+
headers=response.headers,
|
|
68
|
+
parsed=_parse_response(client=client, response=response),
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def sync_detailed(
|
|
73
|
+
*,
|
|
74
|
+
client: Union[AuthenticatedClient, Client],
|
|
75
|
+
body: ForgotPasswordRequest,
|
|
76
|
+
) -> Response[
|
|
77
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
78
|
+
]:
|
|
79
|
+
"""Forgot Password
|
|
80
|
+
|
|
81
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
82
|
+
|
|
83
|
+
Args:
|
|
84
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
85
|
+
|
|
86
|
+
Raises:
|
|
87
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
88
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
89
|
+
|
|
90
|
+
Returns:
|
|
91
|
+
Response[Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]]
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
kwargs = _get_kwargs(
|
|
95
|
+
body=body,
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
response = client.get_httpx_client().request(
|
|
99
|
+
**kwargs,
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
return _build_response(client=client, response=response)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def sync(
|
|
106
|
+
*,
|
|
107
|
+
client: Union[AuthenticatedClient, Client],
|
|
108
|
+
body: ForgotPasswordRequest,
|
|
109
|
+
) -> Optional[
|
|
110
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
111
|
+
]:
|
|
112
|
+
"""Forgot Password
|
|
113
|
+
|
|
114
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
return sync_detailed(
|
|
128
|
+
client=client,
|
|
129
|
+
body=body,
|
|
130
|
+
).parsed
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
async def asyncio_detailed(
|
|
134
|
+
*,
|
|
135
|
+
client: Union[AuthenticatedClient, Client],
|
|
136
|
+
body: ForgotPasswordRequest,
|
|
137
|
+
) -> Response[
|
|
138
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
139
|
+
]:
|
|
140
|
+
"""Forgot Password
|
|
141
|
+
|
|
142
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
143
|
+
|
|
144
|
+
Args:
|
|
145
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
146
|
+
|
|
147
|
+
Raises:
|
|
148
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
149
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
150
|
+
|
|
151
|
+
Returns:
|
|
152
|
+
Response[Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
kwargs = _get_kwargs(
|
|
156
|
+
body=body,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
160
|
+
|
|
161
|
+
return _build_response(client=client, response=response)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
async def asyncio(
|
|
165
|
+
*,
|
|
166
|
+
client: Union[AuthenticatedClient, Client],
|
|
167
|
+
body: ForgotPasswordRequest,
|
|
168
|
+
) -> Optional[
|
|
169
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
170
|
+
]:
|
|
171
|
+
"""Forgot Password
|
|
172
|
+
|
|
173
|
+
Request password reset email. Always returns success to prevent email enumeration.
|
|
174
|
+
|
|
175
|
+
Args:
|
|
176
|
+
body (ForgotPasswordRequest): Forgot password request model.
|
|
177
|
+
|
|
178
|
+
Raises:
|
|
179
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
180
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
181
|
+
|
|
182
|
+
Returns:
|
|
183
|
+
Union[ErrorResponse, ForgotPasswordResponseForgotpassword, HTTPValidationError]
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
return (
|
|
187
|
+
await asyncio_detailed(
|
|
188
|
+
client=client,
|
|
189
|
+
body=body,
|
|
190
|
+
)
|
|
191
|
+
).parsed
|