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,106 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="AgentRecommendation")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class AgentRecommendation:
|
|
14
|
+
"""Single agent recommendation.
|
|
15
|
+
|
|
16
|
+
Attributes:
|
|
17
|
+
agent_type (str): Agent type identifier
|
|
18
|
+
agent_name (str): Agent display name
|
|
19
|
+
confidence (float): Confidence score (0-1)
|
|
20
|
+
capabilities (list[str]): Agent capabilities
|
|
21
|
+
reason (Union[None, Unset, str]): Reason for recommendation
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
agent_type: str
|
|
25
|
+
agent_name: str
|
|
26
|
+
confidence: float
|
|
27
|
+
capabilities: list[str]
|
|
28
|
+
reason: Union[None, Unset, str] = UNSET
|
|
29
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
|
+
agent_type = self.agent_type
|
|
33
|
+
|
|
34
|
+
agent_name = self.agent_name
|
|
35
|
+
|
|
36
|
+
confidence = self.confidence
|
|
37
|
+
|
|
38
|
+
capabilities = self.capabilities
|
|
39
|
+
|
|
40
|
+
reason: Union[None, Unset, str]
|
|
41
|
+
if isinstance(self.reason, Unset):
|
|
42
|
+
reason = UNSET
|
|
43
|
+
else:
|
|
44
|
+
reason = self.reason
|
|
45
|
+
|
|
46
|
+
field_dict: dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"agent_type": agent_type,
|
|
51
|
+
"agent_name": agent_name,
|
|
52
|
+
"confidence": confidence,
|
|
53
|
+
"capabilities": capabilities,
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
if reason is not UNSET:
|
|
57
|
+
field_dict["reason"] = reason
|
|
58
|
+
|
|
59
|
+
return field_dict
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
63
|
+
d = dict(src_dict)
|
|
64
|
+
agent_type = d.pop("agent_type")
|
|
65
|
+
|
|
66
|
+
agent_name = d.pop("agent_name")
|
|
67
|
+
|
|
68
|
+
confidence = d.pop("confidence")
|
|
69
|
+
|
|
70
|
+
capabilities = cast(list[str], d.pop("capabilities"))
|
|
71
|
+
|
|
72
|
+
def _parse_reason(data: object) -> Union[None, Unset, str]:
|
|
73
|
+
if data is None:
|
|
74
|
+
return data
|
|
75
|
+
if isinstance(data, Unset):
|
|
76
|
+
return data
|
|
77
|
+
return cast(Union[None, Unset, str], data)
|
|
78
|
+
|
|
79
|
+
reason = _parse_reason(d.pop("reason", UNSET))
|
|
80
|
+
|
|
81
|
+
agent_recommendation = cls(
|
|
82
|
+
agent_type=agent_type,
|
|
83
|
+
agent_name=agent_name,
|
|
84
|
+
confidence=confidence,
|
|
85
|
+
capabilities=capabilities,
|
|
86
|
+
reason=reason,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
agent_recommendation.additional_properties = d
|
|
90
|
+
return agent_recommendation
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def additional_keys(self) -> list[str]:
|
|
94
|
+
return list(self.additional_properties.keys())
|
|
95
|
+
|
|
96
|
+
def __getitem__(self, key: str) -> Any:
|
|
97
|
+
return self.additional_properties[key]
|
|
98
|
+
|
|
99
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
100
|
+
self.additional_properties[key] = value
|
|
101
|
+
|
|
102
|
+
def __delitem__(self, key: str) -> None:
|
|
103
|
+
del self.additional_properties[key]
|
|
104
|
+
|
|
105
|
+
def __contains__(self, key: str) -> bool:
|
|
106
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.agent_recommendation_request_context_type_0 import (
|
|
11
|
+
AgentRecommendationRequestContextType0,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="AgentRecommendationRequest")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class AgentRecommendationRequest:
|
|
20
|
+
"""Request for agent recommendations.
|
|
21
|
+
|
|
22
|
+
Attributes:
|
|
23
|
+
query (str): Query to analyze
|
|
24
|
+
context (Union['AgentRecommendationRequestContextType0', None, Unset]): Additional context
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
query: str
|
|
28
|
+
context: Union["AgentRecommendationRequestContextType0", None, Unset] = UNSET
|
|
29
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
|
+
|
|
31
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
|
+
from ..models.agent_recommendation_request_context_type_0 import (
|
|
33
|
+
AgentRecommendationRequestContextType0,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
query = self.query
|
|
37
|
+
|
|
38
|
+
context: Union[None, Unset, dict[str, Any]]
|
|
39
|
+
if isinstance(self.context, Unset):
|
|
40
|
+
context = UNSET
|
|
41
|
+
elif isinstance(self.context, AgentRecommendationRequestContextType0):
|
|
42
|
+
context = self.context.to_dict()
|
|
43
|
+
else:
|
|
44
|
+
context = self.context
|
|
45
|
+
|
|
46
|
+
field_dict: dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"query": query,
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
if context is not UNSET:
|
|
54
|
+
field_dict["context"] = context
|
|
55
|
+
|
|
56
|
+
return field_dict
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
60
|
+
from ..models.agent_recommendation_request_context_type_0 import (
|
|
61
|
+
AgentRecommendationRequestContextType0,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
d = dict(src_dict)
|
|
65
|
+
query = d.pop("query")
|
|
66
|
+
|
|
67
|
+
def _parse_context(
|
|
68
|
+
data: object,
|
|
69
|
+
) -> Union["AgentRecommendationRequestContextType0", None, Unset]:
|
|
70
|
+
if data is None:
|
|
71
|
+
return data
|
|
72
|
+
if isinstance(data, Unset):
|
|
73
|
+
return data
|
|
74
|
+
try:
|
|
75
|
+
if not isinstance(data, dict):
|
|
76
|
+
raise TypeError()
|
|
77
|
+
context_type_0 = AgentRecommendationRequestContextType0.from_dict(data)
|
|
78
|
+
|
|
79
|
+
return context_type_0
|
|
80
|
+
except: # noqa: E722
|
|
81
|
+
pass
|
|
82
|
+
return cast(Union["AgentRecommendationRequestContextType0", None, Unset], data)
|
|
83
|
+
|
|
84
|
+
context = _parse_context(d.pop("context", UNSET))
|
|
85
|
+
|
|
86
|
+
agent_recommendation_request = cls(
|
|
87
|
+
query=query,
|
|
88
|
+
context=context,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
agent_recommendation_request.additional_properties = d
|
|
92
|
+
return agent_recommendation_request
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def additional_keys(self) -> list[str]:
|
|
96
|
+
return list(self.additional_properties.keys())
|
|
97
|
+
|
|
98
|
+
def __getitem__(self, key: str) -> Any:
|
|
99
|
+
return self.additional_properties[key]
|
|
100
|
+
|
|
101
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
102
|
+
self.additional_properties[key] = value
|
|
103
|
+
|
|
104
|
+
def __delitem__(self, key: str) -> None:
|
|
105
|
+
del self.additional_properties[key]
|
|
106
|
+
|
|
107
|
+
def __contains__(self, key: str) -> bool:
|
|
108
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="AgentRecommendationRequestContextType0")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class AgentRecommendationRequestContextType0:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
agent_recommendation_request_context_type_0 = cls()
|
|
26
|
+
|
|
27
|
+
agent_recommendation_request_context_type_0.additional_properties = d
|
|
28
|
+
return agent_recommendation_request_context_type_0
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.agent_recommendation import AgentRecommendation
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="AgentRecommendationResponse")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class AgentRecommendationResponse:
|
|
16
|
+
"""Response for agent recommendations.
|
|
17
|
+
|
|
18
|
+
Attributes:
|
|
19
|
+
recommendations (list['AgentRecommendation']): List of agent recommendations sorted by confidence
|
|
20
|
+
query (str): The analyzed query
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
recommendations: list["AgentRecommendation"]
|
|
24
|
+
query: str
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
recommendations = []
|
|
29
|
+
for recommendations_item_data in self.recommendations:
|
|
30
|
+
recommendations_item = recommendations_item_data.to_dict()
|
|
31
|
+
recommendations.append(recommendations_item)
|
|
32
|
+
|
|
33
|
+
query = self.query
|
|
34
|
+
|
|
35
|
+
field_dict: dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"recommendations": recommendations,
|
|
40
|
+
"query": query,
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
return field_dict
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
48
|
+
from ..models.agent_recommendation import AgentRecommendation
|
|
49
|
+
|
|
50
|
+
d = dict(src_dict)
|
|
51
|
+
recommendations = []
|
|
52
|
+
_recommendations = d.pop("recommendations")
|
|
53
|
+
for recommendations_item_data in _recommendations:
|
|
54
|
+
recommendations_item = AgentRecommendation.from_dict(recommendations_item_data)
|
|
55
|
+
|
|
56
|
+
recommendations.append(recommendations_item)
|
|
57
|
+
|
|
58
|
+
query = d.pop("query")
|
|
59
|
+
|
|
60
|
+
agent_recommendation_response = cls(
|
|
61
|
+
recommendations=recommendations,
|
|
62
|
+
query=query,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
agent_recommendation_response.additional_properties = d
|
|
66
|
+
return agent_recommendation_response
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> list[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -4,11 +4,13 @@ from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
+
from ..models.agent_mode import AgentMode
|
|
7
8
|
from ..types import UNSET, Unset
|
|
8
9
|
|
|
9
10
|
if TYPE_CHECKING:
|
|
10
11
|
from ..models.agent_message import AgentMessage
|
|
11
12
|
from ..models.agent_request_context_type_0 import AgentRequestContextType0
|
|
13
|
+
from ..models.selection_criteria import SelectionCriteria
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
T = TypeVar("T", bound="AgentRequest")
|
|
@@ -16,25 +18,36 @@ T = TypeVar("T", bound="AgentRequest")
|
|
|
16
18
|
|
|
17
19
|
@_attrs_define
|
|
18
20
|
class AgentRequest:
|
|
19
|
-
"""Request model for
|
|
21
|
+
"""Request model for agent interactions.
|
|
20
22
|
|
|
21
23
|
Attributes:
|
|
22
|
-
message (str):
|
|
24
|
+
message (str): The query or message to process
|
|
23
25
|
history (Union[Unset, list['AgentMessage']]): Conversation history
|
|
24
|
-
context (Union['AgentRequestContextType0', None, Unset]): Additional context for analysis (e.g.,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
context (Union['AgentRequestContextType0', None, Unset]): Additional context for analysis (e.g., enable_rag,
|
|
27
|
+
include_schema)
|
|
28
|
+
mode (Union[AgentMode, None, Unset]): Execution mode Default: AgentMode.STANDARD.
|
|
29
|
+
agent_type (Union[None, Unset, str]): Specific agent type to use (optional)
|
|
30
|
+
selection_criteria (Union['SelectionCriteria', None, Unset]): Criteria for agent selection
|
|
31
|
+
force_extended_analysis (Union[Unset, bool]): Force extended analysis mode with comprehensive research Default:
|
|
32
|
+
False.
|
|
33
|
+
enable_rag (Union[Unset, bool]): Enable RAG context enrichment Default: True.
|
|
34
|
+
stream (Union[Unset, bool]): Enable streaming response Default: False.
|
|
28
35
|
"""
|
|
29
36
|
|
|
30
37
|
message: str
|
|
31
38
|
history: Union[Unset, list["AgentMessage"]] = UNSET
|
|
32
39
|
context: Union["AgentRequestContextType0", None, Unset] = UNSET
|
|
40
|
+
mode: Union[AgentMode, None, Unset] = AgentMode.STANDARD
|
|
41
|
+
agent_type: Union[None, Unset, str] = UNSET
|
|
42
|
+
selection_criteria: Union["SelectionCriteria", None, Unset] = UNSET
|
|
33
43
|
force_extended_analysis: Union[Unset, bool] = False
|
|
44
|
+
enable_rag: Union[Unset, bool] = True
|
|
45
|
+
stream: Union[Unset, bool] = False
|
|
34
46
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
47
|
|
|
36
48
|
def to_dict(self) -> dict[str, Any]:
|
|
37
49
|
from ..models.agent_request_context_type_0 import AgentRequestContextType0
|
|
50
|
+
from ..models.selection_criteria import SelectionCriteria
|
|
38
51
|
|
|
39
52
|
message = self.message
|
|
40
53
|
|
|
@@ -53,8 +66,34 @@ class AgentRequest:
|
|
|
53
66
|
else:
|
|
54
67
|
context = self.context
|
|
55
68
|
|
|
69
|
+
mode: Union[None, Unset, str]
|
|
70
|
+
if isinstance(self.mode, Unset):
|
|
71
|
+
mode = UNSET
|
|
72
|
+
elif isinstance(self.mode, AgentMode):
|
|
73
|
+
mode = self.mode.value
|
|
74
|
+
else:
|
|
75
|
+
mode = self.mode
|
|
76
|
+
|
|
77
|
+
agent_type: Union[None, Unset, str]
|
|
78
|
+
if isinstance(self.agent_type, Unset):
|
|
79
|
+
agent_type = UNSET
|
|
80
|
+
else:
|
|
81
|
+
agent_type = self.agent_type
|
|
82
|
+
|
|
83
|
+
selection_criteria: Union[None, Unset, dict[str, Any]]
|
|
84
|
+
if isinstance(self.selection_criteria, Unset):
|
|
85
|
+
selection_criteria = UNSET
|
|
86
|
+
elif isinstance(self.selection_criteria, SelectionCriteria):
|
|
87
|
+
selection_criteria = self.selection_criteria.to_dict()
|
|
88
|
+
else:
|
|
89
|
+
selection_criteria = self.selection_criteria
|
|
90
|
+
|
|
56
91
|
force_extended_analysis = self.force_extended_analysis
|
|
57
92
|
|
|
93
|
+
enable_rag = self.enable_rag
|
|
94
|
+
|
|
95
|
+
stream = self.stream
|
|
96
|
+
|
|
58
97
|
field_dict: dict[str, Any] = {}
|
|
59
98
|
field_dict.update(self.additional_properties)
|
|
60
99
|
field_dict.update(
|
|
@@ -66,8 +105,18 @@ class AgentRequest:
|
|
|
66
105
|
field_dict["history"] = history
|
|
67
106
|
if context is not UNSET:
|
|
68
107
|
field_dict["context"] = context
|
|
108
|
+
if mode is not UNSET:
|
|
109
|
+
field_dict["mode"] = mode
|
|
110
|
+
if agent_type is not UNSET:
|
|
111
|
+
field_dict["agent_type"] = agent_type
|
|
112
|
+
if selection_criteria is not UNSET:
|
|
113
|
+
field_dict["selection_criteria"] = selection_criteria
|
|
69
114
|
if force_extended_analysis is not UNSET:
|
|
70
115
|
field_dict["force_extended_analysis"] = force_extended_analysis
|
|
116
|
+
if enable_rag is not UNSET:
|
|
117
|
+
field_dict["enable_rag"] = enable_rag
|
|
118
|
+
if stream is not UNSET:
|
|
119
|
+
field_dict["stream"] = stream
|
|
71
120
|
|
|
72
121
|
return field_dict
|
|
73
122
|
|
|
@@ -75,6 +124,7 @@ class AgentRequest:
|
|
|
75
124
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
76
125
|
from ..models.agent_message import AgentMessage
|
|
77
126
|
from ..models.agent_request_context_type_0 import AgentRequestContextType0
|
|
127
|
+
from ..models.selection_criteria import SelectionCriteria
|
|
78
128
|
|
|
79
129
|
d = dict(src_dict)
|
|
80
130
|
message = d.pop("message")
|
|
@@ -103,13 +153,67 @@ class AgentRequest:
|
|
|
103
153
|
|
|
104
154
|
context = _parse_context(d.pop("context", UNSET))
|
|
105
155
|
|
|
156
|
+
def _parse_mode(data: object) -> Union[AgentMode, None, Unset]:
|
|
157
|
+
if data is None:
|
|
158
|
+
return data
|
|
159
|
+
if isinstance(data, Unset):
|
|
160
|
+
return data
|
|
161
|
+
try:
|
|
162
|
+
if not isinstance(data, str):
|
|
163
|
+
raise TypeError()
|
|
164
|
+
mode_type_0 = AgentMode(data)
|
|
165
|
+
|
|
166
|
+
return mode_type_0
|
|
167
|
+
except: # noqa: E722
|
|
168
|
+
pass
|
|
169
|
+
return cast(Union[AgentMode, None, Unset], data)
|
|
170
|
+
|
|
171
|
+
mode = _parse_mode(d.pop("mode", UNSET))
|
|
172
|
+
|
|
173
|
+
def _parse_agent_type(data: object) -> Union[None, Unset, str]:
|
|
174
|
+
if data is None:
|
|
175
|
+
return data
|
|
176
|
+
if isinstance(data, Unset):
|
|
177
|
+
return data
|
|
178
|
+
return cast(Union[None, Unset, str], data)
|
|
179
|
+
|
|
180
|
+
agent_type = _parse_agent_type(d.pop("agent_type", UNSET))
|
|
181
|
+
|
|
182
|
+
def _parse_selection_criteria(
|
|
183
|
+
data: object,
|
|
184
|
+
) -> Union["SelectionCriteria", None, Unset]:
|
|
185
|
+
if data is None:
|
|
186
|
+
return data
|
|
187
|
+
if isinstance(data, Unset):
|
|
188
|
+
return data
|
|
189
|
+
try:
|
|
190
|
+
if not isinstance(data, dict):
|
|
191
|
+
raise TypeError()
|
|
192
|
+
selection_criteria_type_0 = SelectionCriteria.from_dict(data)
|
|
193
|
+
|
|
194
|
+
return selection_criteria_type_0
|
|
195
|
+
except: # noqa: E722
|
|
196
|
+
pass
|
|
197
|
+
return cast(Union["SelectionCriteria", None, Unset], data)
|
|
198
|
+
|
|
199
|
+
selection_criteria = _parse_selection_criteria(d.pop("selection_criteria", UNSET))
|
|
200
|
+
|
|
106
201
|
force_extended_analysis = d.pop("force_extended_analysis", UNSET)
|
|
107
202
|
|
|
203
|
+
enable_rag = d.pop("enable_rag", UNSET)
|
|
204
|
+
|
|
205
|
+
stream = d.pop("stream", UNSET)
|
|
206
|
+
|
|
108
207
|
agent_request = cls(
|
|
109
208
|
message=message,
|
|
110
209
|
history=history,
|
|
111
210
|
context=context,
|
|
211
|
+
mode=mode,
|
|
212
|
+
agent_type=agent_type,
|
|
213
|
+
selection_criteria=selection_criteria,
|
|
112
214
|
force_extended_analysis=force_extended_analysis,
|
|
215
|
+
enable_rag=enable_rag,
|
|
216
|
+
stream=stream,
|
|
113
217
|
)
|
|
114
218
|
|
|
115
219
|
agent_request.additional_properties = d
|