robosystems-client 0.1.14__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.14.dist-info → robosystems_client-0.1.16.dist-info}/METADATA +1 -1
- {robosystems_client-0.1.14.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.14.dist-info → robosystems_client-0.1.16.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,276 @@
|
|
|
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
|
+
agent_type: str,
|
|
18
|
+
*,
|
|
19
|
+
body: AgentRequest,
|
|
20
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
21
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
22
|
+
) -> dict[str, Any]:
|
|
23
|
+
headers: dict[str, Any] = {}
|
|
24
|
+
if not isinstance(authorization, Unset):
|
|
25
|
+
headers["authorization"] = authorization
|
|
26
|
+
|
|
27
|
+
cookies = {}
|
|
28
|
+
if auth_token is not UNSET:
|
|
29
|
+
cookies["auth-token"] = auth_token
|
|
30
|
+
|
|
31
|
+
_kwargs: dict[str, Any] = {
|
|
32
|
+
"method": "post",
|
|
33
|
+
"url": f"/v1/{graph_id}/agent/{agent_type}",
|
|
34
|
+
"cookies": cookies,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_kwargs["json"] = body.to_dict()
|
|
38
|
+
|
|
39
|
+
headers["Content-Type"] = "application/json"
|
|
40
|
+
|
|
41
|
+
_kwargs["headers"] = headers
|
|
42
|
+
return _kwargs
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _parse_response(
|
|
46
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
47
|
+
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
48
|
+
if response.status_code == 200:
|
|
49
|
+
response_200 = AgentResponse.from_dict(response.json())
|
|
50
|
+
|
|
51
|
+
return response_200
|
|
52
|
+
if response.status_code == 400:
|
|
53
|
+
response_400 = cast(Any, None)
|
|
54
|
+
return response_400
|
|
55
|
+
if response.status_code == 402:
|
|
56
|
+
response_402 = cast(Any, None)
|
|
57
|
+
return response_402
|
|
58
|
+
if response.status_code == 404:
|
|
59
|
+
response_404 = cast(Any, None)
|
|
60
|
+
return response_404
|
|
61
|
+
if response.status_code == 429:
|
|
62
|
+
response_429 = cast(Any, None)
|
|
63
|
+
return response_429
|
|
64
|
+
if response.status_code == 500:
|
|
65
|
+
response_500 = ErrorResponse.from_dict(response.json())
|
|
66
|
+
|
|
67
|
+
return response_500
|
|
68
|
+
if response.status_code == 422:
|
|
69
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
70
|
+
|
|
71
|
+
return response_422
|
|
72
|
+
if client.raise_on_unexpected_status:
|
|
73
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
74
|
+
else:
|
|
75
|
+
return None
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def _build_response(
|
|
79
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
80
|
+
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
81
|
+
return Response(
|
|
82
|
+
status_code=HTTPStatus(response.status_code),
|
|
83
|
+
content=response.content,
|
|
84
|
+
headers=response.headers,
|
|
85
|
+
parsed=_parse_response(client=client, response=response),
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def sync_detailed(
|
|
90
|
+
graph_id: str,
|
|
91
|
+
agent_type: str,
|
|
92
|
+
*,
|
|
93
|
+
client: AuthenticatedClient,
|
|
94
|
+
body: AgentRequest,
|
|
95
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
96
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
97
|
+
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
98
|
+
"""Execute specific agent
|
|
99
|
+
|
|
100
|
+
Execute a specific agent type directly.
|
|
101
|
+
|
|
102
|
+
Available agents:
|
|
103
|
+
- **financial**: Financial analysis, SEC filings, accounting data
|
|
104
|
+
- **research**: Deep research and comprehensive analysis
|
|
105
|
+
- **rag**: Fast retrieval without AI (no credits required)
|
|
106
|
+
|
|
107
|
+
Use this endpoint when you know which agent you want to use.
|
|
108
|
+
|
|
109
|
+
Args:
|
|
110
|
+
graph_id (str):
|
|
111
|
+
agent_type (str):
|
|
112
|
+
authorization (Union[None, Unset, str]):
|
|
113
|
+
auth_token (Union[None, Unset, str]):
|
|
114
|
+
body (AgentRequest): Request model for agent interactions.
|
|
115
|
+
|
|
116
|
+
Raises:
|
|
117
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
118
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
119
|
+
|
|
120
|
+
Returns:
|
|
121
|
+
Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
kwargs = _get_kwargs(
|
|
125
|
+
graph_id=graph_id,
|
|
126
|
+
agent_type=agent_type,
|
|
127
|
+
body=body,
|
|
128
|
+
authorization=authorization,
|
|
129
|
+
auth_token=auth_token,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
response = client.get_httpx_client().request(
|
|
133
|
+
**kwargs,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
return _build_response(client=client, response=response)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def sync(
|
|
140
|
+
graph_id: str,
|
|
141
|
+
agent_type: str,
|
|
142
|
+
*,
|
|
143
|
+
client: AuthenticatedClient,
|
|
144
|
+
body: AgentRequest,
|
|
145
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
146
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
147
|
+
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
148
|
+
"""Execute specific agent
|
|
149
|
+
|
|
150
|
+
Execute a specific agent type directly.
|
|
151
|
+
|
|
152
|
+
Available agents:
|
|
153
|
+
- **financial**: Financial analysis, SEC filings, accounting data
|
|
154
|
+
- **research**: Deep research and comprehensive analysis
|
|
155
|
+
- **rag**: Fast retrieval without AI (no credits required)
|
|
156
|
+
|
|
157
|
+
Use this endpoint when you know which agent you want to use.
|
|
158
|
+
|
|
159
|
+
Args:
|
|
160
|
+
graph_id (str):
|
|
161
|
+
agent_type (str):
|
|
162
|
+
authorization (Union[None, Unset, str]):
|
|
163
|
+
auth_token (Union[None, Unset, str]):
|
|
164
|
+
body (AgentRequest): Request model for agent interactions.
|
|
165
|
+
|
|
166
|
+
Raises:
|
|
167
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
168
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
169
|
+
|
|
170
|
+
Returns:
|
|
171
|
+
Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
return sync_detailed(
|
|
175
|
+
graph_id=graph_id,
|
|
176
|
+
agent_type=agent_type,
|
|
177
|
+
client=client,
|
|
178
|
+
body=body,
|
|
179
|
+
authorization=authorization,
|
|
180
|
+
auth_token=auth_token,
|
|
181
|
+
).parsed
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
async def asyncio_detailed(
|
|
185
|
+
graph_id: str,
|
|
186
|
+
agent_type: str,
|
|
187
|
+
*,
|
|
188
|
+
client: AuthenticatedClient,
|
|
189
|
+
body: AgentRequest,
|
|
190
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
191
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
192
|
+
) -> Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
193
|
+
"""Execute specific agent
|
|
194
|
+
|
|
195
|
+
Execute a specific agent type directly.
|
|
196
|
+
|
|
197
|
+
Available agents:
|
|
198
|
+
- **financial**: Financial analysis, SEC filings, accounting data
|
|
199
|
+
- **research**: Deep research and comprehensive analysis
|
|
200
|
+
- **rag**: Fast retrieval without AI (no credits required)
|
|
201
|
+
|
|
202
|
+
Use this endpoint when you know which agent you want to use.
|
|
203
|
+
|
|
204
|
+
Args:
|
|
205
|
+
graph_id (str):
|
|
206
|
+
agent_type (str):
|
|
207
|
+
authorization (Union[None, Unset, str]):
|
|
208
|
+
auth_token (Union[None, Unset, str]):
|
|
209
|
+
body (AgentRequest): Request model for agent interactions.
|
|
210
|
+
|
|
211
|
+
Raises:
|
|
212
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
213
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
214
|
+
|
|
215
|
+
Returns:
|
|
216
|
+
Response[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
kwargs = _get_kwargs(
|
|
220
|
+
graph_id=graph_id,
|
|
221
|
+
agent_type=agent_type,
|
|
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
|
+
agent_type: str,
|
|
235
|
+
*,
|
|
236
|
+
client: AuthenticatedClient,
|
|
237
|
+
body: AgentRequest,
|
|
238
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
239
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
240
|
+
) -> Optional[Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]]:
|
|
241
|
+
"""Execute specific agent
|
|
242
|
+
|
|
243
|
+
Execute a specific agent type directly.
|
|
244
|
+
|
|
245
|
+
Available agents:
|
|
246
|
+
- **financial**: Financial analysis, SEC filings, accounting data
|
|
247
|
+
- **research**: Deep research and comprehensive analysis
|
|
248
|
+
- **rag**: Fast retrieval without AI (no credits required)
|
|
249
|
+
|
|
250
|
+
Use this endpoint when you know which agent you want to use.
|
|
251
|
+
|
|
252
|
+
Args:
|
|
253
|
+
graph_id (str):
|
|
254
|
+
agent_type (str):
|
|
255
|
+
authorization (Union[None, Unset, str]):
|
|
256
|
+
auth_token (Union[None, Unset, str]):
|
|
257
|
+
body (AgentRequest): Request model for agent interactions.
|
|
258
|
+
|
|
259
|
+
Raises:
|
|
260
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
261
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
262
|
+
|
|
263
|
+
Returns:
|
|
264
|
+
Union[AgentResponse, Any, ErrorResponse, HTTPValidationError]
|
|
265
|
+
"""
|
|
266
|
+
|
|
267
|
+
return (
|
|
268
|
+
await asyncio_detailed(
|
|
269
|
+
graph_id=graph_id,
|
|
270
|
+
agent_type=agent_type,
|
|
271
|
+
client=client,
|
|
272
|
+
body=body,
|
|
273
|
+
authorization=authorization,
|
|
274
|
+
auth_token=auth_token,
|
|
275
|
+
)
|
|
276
|
+
).parsed
|
|
@@ -0,0 +1,256 @@
|
|
|
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_metadata_response import AgentMetadataResponse
|
|
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
|
+
agent_type: str,
|
|
16
|
+
*,
|
|
17
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
18
|
+
auth_token: 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
|
+
cookies = {}
|
|
25
|
+
if auth_token is not UNSET:
|
|
26
|
+
cookies["auth-token"] = auth_token
|
|
27
|
+
|
|
28
|
+
_kwargs: dict[str, Any] = {
|
|
29
|
+
"method": "get",
|
|
30
|
+
"url": f"/v1/{graph_id}/agent/{agent_type}/metadata",
|
|
31
|
+
"cookies": cookies,
|
|
32
|
+
}
|
|
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[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
41
|
+
if response.status_code == 200:
|
|
42
|
+
response_200 = AgentMetadataResponse.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_200
|
|
45
|
+
if response.status_code == 404:
|
|
46
|
+
response_404 = cast(Any, None)
|
|
47
|
+
return response_404
|
|
48
|
+
if response.status_code == 422:
|
|
49
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
50
|
+
|
|
51
|
+
return response_422
|
|
52
|
+
if client.raise_on_unexpected_status:
|
|
53
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
54
|
+
else:
|
|
55
|
+
return None
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def _build_response(
|
|
59
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
60
|
+
) -> Response[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
61
|
+
return Response(
|
|
62
|
+
status_code=HTTPStatus(response.status_code),
|
|
63
|
+
content=response.content,
|
|
64
|
+
headers=response.headers,
|
|
65
|
+
parsed=_parse_response(client=client, response=response),
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def sync_detailed(
|
|
70
|
+
graph_id: str,
|
|
71
|
+
agent_type: str,
|
|
72
|
+
*,
|
|
73
|
+
client: AuthenticatedClient,
|
|
74
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
75
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
76
|
+
) -> Response[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
77
|
+
"""Get agent metadata
|
|
78
|
+
|
|
79
|
+
Get comprehensive metadata for a specific agent type.
|
|
80
|
+
|
|
81
|
+
**Returns:**
|
|
82
|
+
- Agent name and description
|
|
83
|
+
- Version information
|
|
84
|
+
- Supported capabilities and modes
|
|
85
|
+
- Credit requirements
|
|
86
|
+
- Author and tags
|
|
87
|
+
- Configuration options
|
|
88
|
+
|
|
89
|
+
Use this to understand agent capabilities before execution.
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
graph_id (str): Graph database identifier
|
|
93
|
+
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
94
|
+
authorization (Union[None, Unset, str]):
|
|
95
|
+
auth_token (Union[None, Unset, str]):
|
|
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[AgentMetadataResponse, Any, HTTPValidationError]]
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
kwargs = _get_kwargs(
|
|
106
|
+
graph_id=graph_id,
|
|
107
|
+
agent_type=agent_type,
|
|
108
|
+
authorization=authorization,
|
|
109
|
+
auth_token=auth_token,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
response = client.get_httpx_client().request(
|
|
113
|
+
**kwargs,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
return _build_response(client=client, response=response)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def sync(
|
|
120
|
+
graph_id: str,
|
|
121
|
+
agent_type: str,
|
|
122
|
+
*,
|
|
123
|
+
client: AuthenticatedClient,
|
|
124
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
125
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
126
|
+
) -> Optional[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
127
|
+
"""Get agent metadata
|
|
128
|
+
|
|
129
|
+
Get comprehensive metadata for a specific agent type.
|
|
130
|
+
|
|
131
|
+
**Returns:**
|
|
132
|
+
- Agent name and description
|
|
133
|
+
- Version information
|
|
134
|
+
- Supported capabilities and modes
|
|
135
|
+
- Credit requirements
|
|
136
|
+
- Author and tags
|
|
137
|
+
- Configuration options
|
|
138
|
+
|
|
139
|
+
Use this to understand agent capabilities before execution.
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
graph_id (str): Graph database identifier
|
|
143
|
+
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
144
|
+
authorization (Union[None, Unset, str]):
|
|
145
|
+
auth_token (Union[None, Unset, str]):
|
|
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[AgentMetadataResponse, Any, HTTPValidationError]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
return sync_detailed(
|
|
156
|
+
graph_id=graph_id,
|
|
157
|
+
agent_type=agent_type,
|
|
158
|
+
client=client,
|
|
159
|
+
authorization=authorization,
|
|
160
|
+
auth_token=auth_token,
|
|
161
|
+
).parsed
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
async def asyncio_detailed(
|
|
165
|
+
graph_id: str,
|
|
166
|
+
agent_type: str,
|
|
167
|
+
*,
|
|
168
|
+
client: AuthenticatedClient,
|
|
169
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
170
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
171
|
+
) -> Response[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
172
|
+
"""Get agent metadata
|
|
173
|
+
|
|
174
|
+
Get comprehensive metadata for a specific agent type.
|
|
175
|
+
|
|
176
|
+
**Returns:**
|
|
177
|
+
- Agent name and description
|
|
178
|
+
- Version information
|
|
179
|
+
- Supported capabilities and modes
|
|
180
|
+
- Credit requirements
|
|
181
|
+
- Author and tags
|
|
182
|
+
- Configuration options
|
|
183
|
+
|
|
184
|
+
Use this to understand agent capabilities before execution.
|
|
185
|
+
|
|
186
|
+
Args:
|
|
187
|
+
graph_id (str): Graph database identifier
|
|
188
|
+
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
189
|
+
authorization (Union[None, Unset, str]):
|
|
190
|
+
auth_token (Union[None, Unset, str]):
|
|
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[AgentMetadataResponse, Any, HTTPValidationError]]
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
kwargs = _get_kwargs(
|
|
201
|
+
graph_id=graph_id,
|
|
202
|
+
agent_type=agent_type,
|
|
203
|
+
authorization=authorization,
|
|
204
|
+
auth_token=auth_token,
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
208
|
+
|
|
209
|
+
return _build_response(client=client, response=response)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
async def asyncio(
|
|
213
|
+
graph_id: str,
|
|
214
|
+
agent_type: str,
|
|
215
|
+
*,
|
|
216
|
+
client: AuthenticatedClient,
|
|
217
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
218
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
219
|
+
) -> Optional[Union[AgentMetadataResponse, Any, HTTPValidationError]]:
|
|
220
|
+
"""Get agent metadata
|
|
221
|
+
|
|
222
|
+
Get comprehensive metadata for a specific agent type.
|
|
223
|
+
|
|
224
|
+
**Returns:**
|
|
225
|
+
- Agent name and description
|
|
226
|
+
- Version information
|
|
227
|
+
- Supported capabilities and modes
|
|
228
|
+
- Credit requirements
|
|
229
|
+
- Author and tags
|
|
230
|
+
- Configuration options
|
|
231
|
+
|
|
232
|
+
Use this to understand agent capabilities before execution.
|
|
233
|
+
|
|
234
|
+
Args:
|
|
235
|
+
graph_id (str): Graph database identifier
|
|
236
|
+
agent_type (str): Agent type identifier (e.g., 'financial', 'research', 'rag')
|
|
237
|
+
authorization (Union[None, Unset, str]):
|
|
238
|
+
auth_token (Union[None, Unset, str]):
|
|
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[AgentMetadataResponse, Any, HTTPValidationError]
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
return (
|
|
249
|
+
await asyncio_detailed(
|
|
250
|
+
graph_id=graph_id,
|
|
251
|
+
agent_type=agent_type,
|
|
252
|
+
client=client,
|
|
253
|
+
authorization=authorization,
|
|
254
|
+
auth_token=auth_token,
|
|
255
|
+
)
|
|
256
|
+
).parsed
|