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_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
|
+
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
|
+
params: dict[str, Any] = {}
|
|
29
|
+
|
|
30
|
+
json_capability: Union[None, Unset, str]
|
|
31
|
+
if isinstance(capability, Unset):
|
|
32
|
+
json_capability = UNSET
|
|
33
|
+
else:
|
|
34
|
+
json_capability = capability
|
|
35
|
+
params["capability"] = json_capability
|
|
36
|
+
|
|
37
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
38
|
+
|
|
39
|
+
_kwargs: dict[str, Any] = {
|
|
40
|
+
"method": "get",
|
|
41
|
+
"url": f"/v1/{graph_id}/agent/list",
|
|
42
|
+
"params": params,
|
|
43
|
+
"cookies": cookies,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_kwargs["headers"] = headers
|
|
47
|
+
return _kwargs
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _parse_response(
|
|
51
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
52
|
+
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
53
|
+
if response.status_code == 200:
|
|
54
|
+
response_200 = AgentListResponse.from_dict(response.json())
|
|
55
|
+
|
|
56
|
+
return response_200
|
|
57
|
+
if response.status_code == 401:
|
|
58
|
+
response_401 = cast(Any, None)
|
|
59
|
+
return response_401
|
|
60
|
+
if response.status_code == 422:
|
|
61
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
62
|
+
|
|
63
|
+
return response_422
|
|
64
|
+
if client.raise_on_unexpected_status:
|
|
65
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
66
|
+
else:
|
|
67
|
+
return None
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _build_response(
|
|
71
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
72
|
+
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
73
|
+
return Response(
|
|
74
|
+
status_code=HTTPStatus(response.status_code),
|
|
75
|
+
content=response.content,
|
|
76
|
+
headers=response.headers,
|
|
77
|
+
parsed=_parse_response(client=client, response=response),
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def sync_detailed(
|
|
82
|
+
graph_id: str,
|
|
83
|
+
*,
|
|
84
|
+
client: AuthenticatedClient,
|
|
85
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
86
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
87
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
88
|
+
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
89
|
+
"""List available agents
|
|
90
|
+
|
|
91
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
92
|
+
|
|
93
|
+
**Returns:**
|
|
94
|
+
- Agent types and names
|
|
95
|
+
- Capabilities and supported modes
|
|
96
|
+
- Version information
|
|
97
|
+
- Credit requirements
|
|
98
|
+
|
|
99
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
100
|
+
|
|
101
|
+
Args:
|
|
102
|
+
graph_id (str): Graph database identifier
|
|
103
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
104
|
+
'rag_search')
|
|
105
|
+
authorization (Union[None, Unset, str]):
|
|
106
|
+
auth_token (Union[None, Unset, str]):
|
|
107
|
+
|
|
108
|
+
Raises:
|
|
109
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
110
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
111
|
+
|
|
112
|
+
Returns:
|
|
113
|
+
Response[Union[AgentListResponse, Any, HTTPValidationError]]
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
kwargs = _get_kwargs(
|
|
117
|
+
graph_id=graph_id,
|
|
118
|
+
capability=capability,
|
|
119
|
+
authorization=authorization,
|
|
120
|
+
auth_token=auth_token,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
response = client.get_httpx_client().request(
|
|
124
|
+
**kwargs,
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
return _build_response(client=client, response=response)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def sync(
|
|
131
|
+
graph_id: str,
|
|
132
|
+
*,
|
|
133
|
+
client: AuthenticatedClient,
|
|
134
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
135
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
136
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
137
|
+
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
138
|
+
"""List available agents
|
|
139
|
+
|
|
140
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
141
|
+
|
|
142
|
+
**Returns:**
|
|
143
|
+
- Agent types and names
|
|
144
|
+
- Capabilities and supported modes
|
|
145
|
+
- Version information
|
|
146
|
+
- Credit requirements
|
|
147
|
+
|
|
148
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
149
|
+
|
|
150
|
+
Args:
|
|
151
|
+
graph_id (str): Graph database identifier
|
|
152
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
153
|
+
'rag_search')
|
|
154
|
+
authorization (Union[None, Unset, str]):
|
|
155
|
+
auth_token (Union[None, Unset, str]):
|
|
156
|
+
|
|
157
|
+
Raises:
|
|
158
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
159
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
Union[AgentListResponse, Any, HTTPValidationError]
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
return sync_detailed(
|
|
166
|
+
graph_id=graph_id,
|
|
167
|
+
client=client,
|
|
168
|
+
capability=capability,
|
|
169
|
+
authorization=authorization,
|
|
170
|
+
auth_token=auth_token,
|
|
171
|
+
).parsed
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
async def asyncio_detailed(
|
|
175
|
+
graph_id: str,
|
|
176
|
+
*,
|
|
177
|
+
client: AuthenticatedClient,
|
|
178
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
179
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
180
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
181
|
+
) -> Response[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
182
|
+
"""List available agents
|
|
183
|
+
|
|
184
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
185
|
+
|
|
186
|
+
**Returns:**
|
|
187
|
+
- Agent types and names
|
|
188
|
+
- Capabilities and supported modes
|
|
189
|
+
- Version information
|
|
190
|
+
- Credit requirements
|
|
191
|
+
|
|
192
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
193
|
+
|
|
194
|
+
Args:
|
|
195
|
+
graph_id (str): Graph database identifier
|
|
196
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
197
|
+
'rag_search')
|
|
198
|
+
authorization (Union[None, Unset, str]):
|
|
199
|
+
auth_token (Union[None, Unset, str]):
|
|
200
|
+
|
|
201
|
+
Raises:
|
|
202
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
203
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
Response[Union[AgentListResponse, Any, HTTPValidationError]]
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
kwargs = _get_kwargs(
|
|
210
|
+
graph_id=graph_id,
|
|
211
|
+
capability=capability,
|
|
212
|
+
authorization=authorization,
|
|
213
|
+
auth_token=auth_token,
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
217
|
+
|
|
218
|
+
return _build_response(client=client, response=response)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
async def asyncio(
|
|
222
|
+
graph_id: str,
|
|
223
|
+
*,
|
|
224
|
+
client: AuthenticatedClient,
|
|
225
|
+
capability: Union[None, Unset, str] = UNSET,
|
|
226
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
227
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
228
|
+
) -> Optional[Union[AgentListResponse, Any, HTTPValidationError]]:
|
|
229
|
+
"""List available agents
|
|
230
|
+
|
|
231
|
+
Get a comprehensive list of all available agents with their metadata.
|
|
232
|
+
|
|
233
|
+
**Returns:**
|
|
234
|
+
- Agent types and names
|
|
235
|
+
- Capabilities and supported modes
|
|
236
|
+
- Version information
|
|
237
|
+
- Credit requirements
|
|
238
|
+
|
|
239
|
+
Use the optional `capability` filter to find agents with specific capabilities.
|
|
240
|
+
|
|
241
|
+
Args:
|
|
242
|
+
graph_id (str): Graph database identifier
|
|
243
|
+
capability (Union[None, Unset, str]): Filter by capability (e.g., 'financial_analysis',
|
|
244
|
+
'rag_search')
|
|
245
|
+
authorization (Union[None, Unset, str]):
|
|
246
|
+
auth_token (Union[None, Unset, str]):
|
|
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[AgentListResponse, Any, HTTPValidationError]
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
return (
|
|
257
|
+
await asyncio_detailed(
|
|
258
|
+
graph_id=graph_id,
|
|
259
|
+
client=client,
|
|
260
|
+
capability=capability,
|
|
261
|
+
authorization=authorization,
|
|
262
|
+
auth_token=auth_token,
|
|
263
|
+
)
|
|
264
|
+
).parsed
|
|
@@ -0,0 +1,273 @@
|
|
|
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
|
+
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/recommend",
|
|
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[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
46
|
+
if response.status_code == 200:
|
|
47
|
+
response_200 = AgentRecommendationResponse.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 == 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[AgentRecommendationResponse, Any, 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: AgentRecommendationRequest,
|
|
79
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
80
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
81
|
+
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
82
|
+
"""Get agent recommendations
|
|
83
|
+
|
|
84
|
+
Get intelligent agent recommendations for a specific query.
|
|
85
|
+
|
|
86
|
+
**How it works:**
|
|
87
|
+
1. Analyzes query content and structure
|
|
88
|
+
2. Evaluates agent capabilities
|
|
89
|
+
3. Calculates confidence scores
|
|
90
|
+
4. Returns ranked recommendations
|
|
91
|
+
|
|
92
|
+
**Use this when:**
|
|
93
|
+
- Unsure which agent to use
|
|
94
|
+
- Need to understand agent suitability
|
|
95
|
+
- Want confidence scores for decision making
|
|
96
|
+
|
|
97
|
+
Returns top agents ranked by confidence with explanations.
|
|
98
|
+
|
|
99
|
+
Args:
|
|
100
|
+
graph_id (str): Graph database identifier
|
|
101
|
+
authorization (Union[None, Unset, str]):
|
|
102
|
+
auth_token (Union[None, Unset, str]):
|
|
103
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
104
|
+
|
|
105
|
+
Raises:
|
|
106
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
107
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
|
+
|
|
109
|
+
Returns:
|
|
110
|
+
Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
kwargs = _get_kwargs(
|
|
114
|
+
graph_id=graph_id,
|
|
115
|
+
body=body,
|
|
116
|
+
authorization=authorization,
|
|
117
|
+
auth_token=auth_token,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
response = client.get_httpx_client().request(
|
|
121
|
+
**kwargs,
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
return _build_response(client=client, response=response)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def sync(
|
|
128
|
+
graph_id: str,
|
|
129
|
+
*,
|
|
130
|
+
client: AuthenticatedClient,
|
|
131
|
+
body: AgentRecommendationRequest,
|
|
132
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
133
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
134
|
+
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
135
|
+
"""Get agent recommendations
|
|
136
|
+
|
|
137
|
+
Get intelligent agent recommendations for a specific query.
|
|
138
|
+
|
|
139
|
+
**How it works:**
|
|
140
|
+
1. Analyzes query content and structure
|
|
141
|
+
2. Evaluates agent capabilities
|
|
142
|
+
3. Calculates confidence scores
|
|
143
|
+
4. Returns ranked recommendations
|
|
144
|
+
|
|
145
|
+
**Use this when:**
|
|
146
|
+
- Unsure which agent to use
|
|
147
|
+
- Need to understand agent suitability
|
|
148
|
+
- Want confidence scores for decision making
|
|
149
|
+
|
|
150
|
+
Returns top agents ranked by confidence with explanations.
|
|
151
|
+
|
|
152
|
+
Args:
|
|
153
|
+
graph_id (str): Graph database identifier
|
|
154
|
+
authorization (Union[None, Unset, str]):
|
|
155
|
+
auth_token (Union[None, Unset, str]):
|
|
156
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
157
|
+
|
|
158
|
+
Raises:
|
|
159
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
160
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
161
|
+
|
|
162
|
+
Returns:
|
|
163
|
+
Union[AgentRecommendationResponse, Any, HTTPValidationError]
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
return sync_detailed(
|
|
167
|
+
graph_id=graph_id,
|
|
168
|
+
client=client,
|
|
169
|
+
body=body,
|
|
170
|
+
authorization=authorization,
|
|
171
|
+
auth_token=auth_token,
|
|
172
|
+
).parsed
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
async def asyncio_detailed(
|
|
176
|
+
graph_id: str,
|
|
177
|
+
*,
|
|
178
|
+
client: AuthenticatedClient,
|
|
179
|
+
body: AgentRecommendationRequest,
|
|
180
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
181
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
182
|
+
) -> Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
183
|
+
"""Get agent recommendations
|
|
184
|
+
|
|
185
|
+
Get intelligent agent recommendations for a specific query.
|
|
186
|
+
|
|
187
|
+
**How it works:**
|
|
188
|
+
1. Analyzes query content and structure
|
|
189
|
+
2. Evaluates agent capabilities
|
|
190
|
+
3. Calculates confidence scores
|
|
191
|
+
4. Returns ranked recommendations
|
|
192
|
+
|
|
193
|
+
**Use this when:**
|
|
194
|
+
- Unsure which agent to use
|
|
195
|
+
- Need to understand agent suitability
|
|
196
|
+
- Want confidence scores for decision making
|
|
197
|
+
|
|
198
|
+
Returns top agents ranked by confidence with explanations.
|
|
199
|
+
|
|
200
|
+
Args:
|
|
201
|
+
graph_id (str): Graph database identifier
|
|
202
|
+
authorization (Union[None, Unset, str]):
|
|
203
|
+
auth_token (Union[None, Unset, str]):
|
|
204
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
205
|
+
|
|
206
|
+
Raises:
|
|
207
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
208
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
Response[Union[AgentRecommendationResponse, Any, HTTPValidationError]]
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
kwargs = _get_kwargs(
|
|
215
|
+
graph_id=graph_id,
|
|
216
|
+
body=body,
|
|
217
|
+
authorization=authorization,
|
|
218
|
+
auth_token=auth_token,
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
222
|
+
|
|
223
|
+
return _build_response(client=client, response=response)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
async def asyncio(
|
|
227
|
+
graph_id: str,
|
|
228
|
+
*,
|
|
229
|
+
client: AuthenticatedClient,
|
|
230
|
+
body: AgentRecommendationRequest,
|
|
231
|
+
authorization: Union[None, Unset, str] = UNSET,
|
|
232
|
+
auth_token: Union[None, Unset, str] = UNSET,
|
|
233
|
+
) -> Optional[Union[AgentRecommendationResponse, Any, HTTPValidationError]]:
|
|
234
|
+
"""Get agent recommendations
|
|
235
|
+
|
|
236
|
+
Get intelligent agent recommendations for a specific query.
|
|
237
|
+
|
|
238
|
+
**How it works:**
|
|
239
|
+
1. Analyzes query content and structure
|
|
240
|
+
2. Evaluates agent capabilities
|
|
241
|
+
3. Calculates confidence scores
|
|
242
|
+
4. Returns ranked recommendations
|
|
243
|
+
|
|
244
|
+
**Use this when:**
|
|
245
|
+
- Unsure which agent to use
|
|
246
|
+
- Need to understand agent suitability
|
|
247
|
+
- Want confidence scores for decision making
|
|
248
|
+
|
|
249
|
+
Returns top agents ranked by confidence with explanations.
|
|
250
|
+
|
|
251
|
+
Args:
|
|
252
|
+
graph_id (str): Graph database identifier
|
|
253
|
+
authorization (Union[None, Unset, str]):
|
|
254
|
+
auth_token (Union[None, Unset, str]):
|
|
255
|
+
body (AgentRecommendationRequest): Request for agent recommendations.
|
|
256
|
+
|
|
257
|
+
Raises:
|
|
258
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
259
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
260
|
+
|
|
261
|
+
Returns:
|
|
262
|
+
Union[AgentRecommendationResponse, Any, HTTPValidationError]
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
return (
|
|
266
|
+
await asyncio_detailed(
|
|
267
|
+
graph_id=graph_id,
|
|
268
|
+
client=client,
|
|
269
|
+
body=body,
|
|
270
|
+
authorization=authorization,
|
|
271
|
+
auth_token=auth_token,
|
|
272
|
+
)
|
|
273
|
+
).parsed
|
|
@@ -17,7 +17,7 @@ def _get_kwargs(
|
|
|
17
17
|
graph_id: str,
|
|
18
18
|
*,
|
|
19
19
|
operation_type: str,
|
|
20
|
-
base_cost: Union[None, Unset, float] = UNSET,
|
|
20
|
+
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
21
21
|
authorization: Union[None, Unset, str] = UNSET,
|
|
22
22
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
23
23
|
) -> dict[str, Any]:
|
|
@@ -33,7 +33,7 @@ def _get_kwargs(
|
|
|
33
33
|
|
|
34
34
|
params["operation_type"] = operation_type
|
|
35
35
|
|
|
36
|
-
json_base_cost: Union[None, Unset, float]
|
|
36
|
+
json_base_cost: Union[None, Unset, float, str]
|
|
37
37
|
if isinstance(base_cost, Unset):
|
|
38
38
|
json_base_cost = UNSET
|
|
39
39
|
else:
|
|
@@ -108,7 +108,7 @@ def sync_detailed(
|
|
|
108
108
|
*,
|
|
109
109
|
client: AuthenticatedClient,
|
|
110
110
|
operation_type: str,
|
|
111
|
-
base_cost: Union[None, Unset, float] = UNSET,
|
|
111
|
+
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
112
112
|
authorization: Union[None, Unset, str] = UNSET,
|
|
113
113
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
114
114
|
) -> Response[
|
|
@@ -133,7 +133,8 @@ def sync_detailed(
|
|
|
133
133
|
Args:
|
|
134
134
|
graph_id (str): Graph database identifier
|
|
135
135
|
operation_type (str): Type of operation to check
|
|
136
|
-
base_cost (Union[None, Unset, float]): Custom base cost (uses default if not
|
|
136
|
+
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
137
|
+
provided)
|
|
137
138
|
authorization (Union[None, Unset, str]):
|
|
138
139
|
auth_token (Union[None, Unset, str]):
|
|
139
140
|
|
|
@@ -165,7 +166,7 @@ def sync(
|
|
|
165
166
|
*,
|
|
166
167
|
client: AuthenticatedClient,
|
|
167
168
|
operation_type: str,
|
|
168
|
-
base_cost: Union[None, Unset, float] = UNSET,
|
|
169
|
+
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
169
170
|
authorization: Union[None, Unset, str] = UNSET,
|
|
170
171
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
171
172
|
) -> Optional[
|
|
@@ -190,7 +191,8 @@ def sync(
|
|
|
190
191
|
Args:
|
|
191
192
|
graph_id (str): Graph database identifier
|
|
192
193
|
operation_type (str): Type of operation to check
|
|
193
|
-
base_cost (Union[None, Unset, float]): Custom base cost (uses default if not
|
|
194
|
+
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
195
|
+
provided)
|
|
194
196
|
authorization (Union[None, Unset, str]):
|
|
195
197
|
auth_token (Union[None, Unset, str]):
|
|
196
198
|
|
|
@@ -217,7 +219,7 @@ async def asyncio_detailed(
|
|
|
217
219
|
*,
|
|
218
220
|
client: AuthenticatedClient,
|
|
219
221
|
operation_type: str,
|
|
220
|
-
base_cost: Union[None, Unset, float] = UNSET,
|
|
222
|
+
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
221
223
|
authorization: Union[None, Unset, str] = UNSET,
|
|
222
224
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
223
225
|
) -> Response[
|
|
@@ -242,7 +244,8 @@ async def asyncio_detailed(
|
|
|
242
244
|
Args:
|
|
243
245
|
graph_id (str): Graph database identifier
|
|
244
246
|
operation_type (str): Type of operation to check
|
|
245
|
-
base_cost (Union[None, Unset, float]): Custom base cost (uses default if not
|
|
247
|
+
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
248
|
+
provided)
|
|
246
249
|
authorization (Union[None, Unset, str]):
|
|
247
250
|
auth_token (Union[None, Unset, str]):
|
|
248
251
|
|
|
@@ -272,7 +275,7 @@ async def asyncio(
|
|
|
272
275
|
*,
|
|
273
276
|
client: AuthenticatedClient,
|
|
274
277
|
operation_type: str,
|
|
275
|
-
base_cost: Union[None, Unset, float] = UNSET,
|
|
278
|
+
base_cost: Union[None, Unset, float, str] = UNSET,
|
|
276
279
|
authorization: Union[None, Unset, str] = UNSET,
|
|
277
280
|
auth_token: Union[None, Unset, str] = UNSET,
|
|
278
281
|
) -> Optional[
|
|
@@ -297,7 +300,8 @@ async def asyncio(
|
|
|
297
300
|
Args:
|
|
298
301
|
graph_id (str): Graph database identifier
|
|
299
302
|
operation_type (str): Type of operation to check
|
|
300
|
-
base_cost (Union[None, Unset, float]): Custom base cost (uses default if not
|
|
303
|
+
base_cost (Union[None, Unset, float, str]): Custom base cost (uses default if not
|
|
304
|
+
provided)
|
|
301
305
|
authorization (Union[None, Unset, str]):
|
|
302
306
|
auth_token (Union[None, Unset, str]):
|
|
303
307
|
|