agentex-client 0.12.0__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.
- agentex/__init__.py +104 -0
- agentex/_base_client.py +2131 -0
- agentex/_client.py +823 -0
- agentex/_compat.py +226 -0
- agentex/_constants.py +14 -0
- agentex/_exceptions.py +108 -0
- agentex/_files.py +173 -0
- agentex/_models.py +952 -0
- agentex/_qs.py +149 -0
- agentex/_resource.py +43 -0
- agentex/_response.py +833 -0
- agentex/_streaming.py +338 -0
- agentex/_types.py +273 -0
- agentex/_utils/__init__.py +64 -0
- agentex/_utils/_compat.py +45 -0
- agentex/_utils/_datetime_parse.py +136 -0
- agentex/_utils/_json.py +35 -0
- agentex/_utils/_logs.py +25 -0
- agentex/_utils/_path.py +127 -0
- agentex/_utils/_proxy.py +65 -0
- agentex/_utils/_reflection.py +42 -0
- agentex/_utils/_resources_proxy.py +24 -0
- agentex/_utils/_streams.py +12 -0
- agentex/_utils/_sync.py +58 -0
- agentex/_utils/_transform.py +457 -0
- agentex/_utils/_typing.py +158 -0
- agentex/_utils/_utils.py +433 -0
- agentex/_version.py +4 -0
- agentex/protocol/__init__.py +16 -0
- agentex/protocol/acp.py +116 -0
- agentex/protocol/json_rpc.py +63 -0
- agentex/py.typed +0 -0
- agentex/resources/__init__.py +131 -0
- agentex/resources/agents/__init__.py +47 -0
- agentex/resources/agents/agents.py +1535 -0
- agentex/resources/agents/deployments.py +725 -0
- agentex/resources/agents/schedules.py +810 -0
- agentex/resources/checkpoints.py +589 -0
- agentex/resources/deployment_history.py +280 -0
- agentex/resources/events.py +294 -0
- agentex/resources/messages/__init__.py +33 -0
- agentex/resources/messages/batch.py +286 -0
- agentex/resources/messages/messages.py +2687 -0
- agentex/resources/spans.py +603 -0
- agentex/resources/states.py +576 -0
- agentex/resources/tasks.py +1411 -0
- agentex/resources/tracker.py +416 -0
- agentex/types/__init__.py +87 -0
- agentex/types/acp_type.py +7 -0
- agentex/types/agent.py +48 -0
- agentex/types/agent_list_params.py +25 -0
- agentex/types/agent_list_response.py +10 -0
- agentex/types/agent_register_build_params.py +25 -0
- agentex/types/agent_rpc_by_name_params.py +94 -0
- agentex/types/agent_rpc_params.py +94 -0
- agentex/types/agent_rpc_response.py +56 -0
- agentex/types/agent_rpc_result.py +98 -0
- agentex/types/agent_task_tracker.py +34 -0
- agentex/types/agents/__init__.py +21 -0
- agentex/types/agents/deployment_create_params.py +25 -0
- agentex/types/agents/deployment_create_response.py +47 -0
- agentex/types/agents/deployment_list_params.py +22 -0
- agentex/types/agents/deployment_list_response.py +50 -0
- agentex/types/agents/deployment_preview_rpc_params.py +96 -0
- agentex/types/agents/deployment_promote_response.py +47 -0
- agentex/types/agents/deployment_retrieve_response.py +47 -0
- agentex/types/agents/schedule_create_params.py +46 -0
- agentex/types/agents/schedule_create_response.py +78 -0
- agentex/types/agents/schedule_list_params.py +11 -0
- agentex/types/agents/schedule_list_response.py +41 -0
- agentex/types/agents/schedule_pause_params.py +15 -0
- agentex/types/agents/schedule_pause_response.py +78 -0
- agentex/types/agents/schedule_retrieve_response.py +78 -0
- agentex/types/agents/schedule_trigger_response.py +78 -0
- agentex/types/agents/schedule_unpause_params.py +15 -0
- agentex/types/agents/schedule_unpause_response.py +78 -0
- agentex/types/checkpoint_delete_thread_params.py +11 -0
- agentex/types/checkpoint_get_tuple_params.py +16 -0
- agentex/types/checkpoint_get_tuple_response.py +47 -0
- agentex/types/checkpoint_list_params.py +20 -0
- agentex/types/checkpoint_list_response.py +25 -0
- agentex/types/checkpoint_put_params.py +34 -0
- agentex/types/checkpoint_put_response.py +13 -0
- agentex/types/checkpoint_put_writes_params.py +34 -0
- agentex/types/data_content.py +30 -0
- agentex/types/data_content_param.py +31 -0
- agentex/types/data_delta.py +16 -0
- agentex/types/deployment_history.py +35 -0
- agentex/types/deployment_history_list_params.py +22 -0
- agentex/types/deployment_history_list_response.py +10 -0
- agentex/types/event.py +29 -0
- agentex/types/event_list_params.py +22 -0
- agentex/types/event_list_response.py +10 -0
- agentex/types/message_author.py +7 -0
- agentex/types/message_create_params.py +29 -0
- agentex/types/message_list_paginated_params.py +521 -0
- agentex/types/message_list_paginated_response.py +21 -0
- agentex/types/message_list_params.py +523 -0
- agentex/types/message_list_response.py +10 -0
- agentex/types/message_style.py +7 -0
- agentex/types/message_update_params.py +18 -0
- agentex/types/messages/__init__.py +8 -0
- agentex/types/messages/batch_create_params.py +26 -0
- agentex/types/messages/batch_create_response.py +10 -0
- agentex/types/messages/batch_update_params.py +16 -0
- agentex/types/messages/batch_update_response.py +10 -0
- agentex/types/reasoning_content.py +33 -0
- agentex/types/reasoning_content_delta.py +18 -0
- agentex/types/reasoning_content_param.py +35 -0
- agentex/types/reasoning_summary_delta.py +18 -0
- agentex/types/shared/__init__.py +3 -0
- agentex/types/shared/delete_response.py +11 -0
- agentex/types/span.py +39 -0
- agentex/types/span_create_params.py +43 -0
- agentex/types/span_list_params.py +22 -0
- agentex/types/span_list_response.py +10 -0
- agentex/types/span_update_params.py +40 -0
- agentex/types/state.py +35 -0
- agentex/types/state_create_params.py +16 -0
- agentex/types/state_list_params.py +28 -0
- agentex/types/state_list_response.py +10 -0
- agentex/types/state_update_params.py +16 -0
- agentex/types/task.py +29 -0
- agentex/types/task_cancel_params.py +12 -0
- agentex/types/task_complete_params.py +12 -0
- agentex/types/task_fail_params.py +12 -0
- agentex/types/task_list_params.py +33 -0
- agentex/types/task_list_response.py +37 -0
- agentex/types/task_message.py +39 -0
- agentex/types/task_message_content.py +18 -0
- agentex/types/task_message_content_param.py +18 -0
- agentex/types/task_message_delta.py +19 -0
- agentex/types/task_message_update.py +91 -0
- agentex/types/task_query_workflow_response.py +8 -0
- agentex/types/task_retrieve_by_name_params.py +12 -0
- agentex/types/task_retrieve_by_name_response.py +34 -0
- agentex/types/task_retrieve_params.py +12 -0
- agentex/types/task_retrieve_response.py +34 -0
- agentex/types/task_terminate_params.py +12 -0
- agentex/types/task_timeout_params.py +12 -0
- agentex/types/task_update_by_id_params.py +12 -0
- agentex/types/task_update_by_name_params.py +12 -0
- agentex/types/text_content.py +56 -0
- agentex/types/text_content_param.py +57 -0
- agentex/types/text_delta.py +16 -0
- agentex/types/text_format.py +7 -0
- agentex/types/tool_request_content.py +36 -0
- agentex/types/tool_request_content_param.py +37 -0
- agentex/types/tool_request_delta.py +20 -0
- agentex/types/tool_response_content.py +35 -0
- agentex/types/tool_response_content_param.py +36 -0
- agentex/types/tool_response_delta.py +20 -0
- agentex/types/tracker_list_params.py +28 -0
- agentex/types/tracker_list_response.py +10 -0
- agentex/types/tracker_update_params.py +19 -0
- agentex_client-0.12.0.dist-info/METADATA +431 -0
- agentex_client-0.12.0.dist-info/RECORD +159 -0
- agentex_client-0.12.0.dist-info/WHEEL +4 -0
- agentex_client-0.12.0.dist-info/licenses/LICENSE +201 -0
agentex/__init__.py
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import typing as _t
|
|
4
|
+
|
|
5
|
+
from . import types
|
|
6
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
|
|
7
|
+
from ._utils import file_from_path
|
|
8
|
+
from ._client import (
|
|
9
|
+
ENVIRONMENTS,
|
|
10
|
+
Client,
|
|
11
|
+
Stream,
|
|
12
|
+
Agentex,
|
|
13
|
+
Timeout,
|
|
14
|
+
Transport,
|
|
15
|
+
AsyncClient,
|
|
16
|
+
AsyncStream,
|
|
17
|
+
AsyncAgentex,
|
|
18
|
+
RequestOptions,
|
|
19
|
+
)
|
|
20
|
+
from ._models import BaseModel
|
|
21
|
+
from ._version import __title__, __version__
|
|
22
|
+
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
|
|
23
|
+
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
|
|
24
|
+
from ._exceptions import (
|
|
25
|
+
APIError,
|
|
26
|
+
AgentexError,
|
|
27
|
+
ConflictError,
|
|
28
|
+
NotFoundError,
|
|
29
|
+
APIStatusError,
|
|
30
|
+
RateLimitError,
|
|
31
|
+
APITimeoutError,
|
|
32
|
+
BadRequestError,
|
|
33
|
+
APIConnectionError,
|
|
34
|
+
AuthenticationError,
|
|
35
|
+
InternalServerError,
|
|
36
|
+
PermissionDeniedError,
|
|
37
|
+
UnprocessableEntityError,
|
|
38
|
+
APIResponseValidationError,
|
|
39
|
+
)
|
|
40
|
+
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
41
|
+
from ._utils._logs import setup_logging as _setup_logging
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"types",
|
|
45
|
+
"__version__",
|
|
46
|
+
"__title__",
|
|
47
|
+
"NoneType",
|
|
48
|
+
"Transport",
|
|
49
|
+
"ProxiesTypes",
|
|
50
|
+
"NotGiven",
|
|
51
|
+
"NOT_GIVEN",
|
|
52
|
+
"not_given",
|
|
53
|
+
"Omit",
|
|
54
|
+
"omit",
|
|
55
|
+
"AgentexError",
|
|
56
|
+
"APIError",
|
|
57
|
+
"APIStatusError",
|
|
58
|
+
"APITimeoutError",
|
|
59
|
+
"APIConnectionError",
|
|
60
|
+
"APIResponseValidationError",
|
|
61
|
+
"BadRequestError",
|
|
62
|
+
"AuthenticationError",
|
|
63
|
+
"PermissionDeniedError",
|
|
64
|
+
"NotFoundError",
|
|
65
|
+
"ConflictError",
|
|
66
|
+
"UnprocessableEntityError",
|
|
67
|
+
"RateLimitError",
|
|
68
|
+
"InternalServerError",
|
|
69
|
+
"Timeout",
|
|
70
|
+
"RequestOptions",
|
|
71
|
+
"Client",
|
|
72
|
+
"AsyncClient",
|
|
73
|
+
"Stream",
|
|
74
|
+
"AsyncStream",
|
|
75
|
+
"Agentex",
|
|
76
|
+
"AsyncAgentex",
|
|
77
|
+
"ENVIRONMENTS",
|
|
78
|
+
"file_from_path",
|
|
79
|
+
"BaseModel",
|
|
80
|
+
"DEFAULT_TIMEOUT",
|
|
81
|
+
"DEFAULT_MAX_RETRIES",
|
|
82
|
+
"DEFAULT_CONNECTION_LIMITS",
|
|
83
|
+
"DefaultHttpxClient",
|
|
84
|
+
"DefaultAsyncHttpxClient",
|
|
85
|
+
"DefaultAioHttpClient",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
if not _t.TYPE_CHECKING:
|
|
89
|
+
from ._utils._resources_proxy import resources as resources
|
|
90
|
+
|
|
91
|
+
_setup_logging()
|
|
92
|
+
|
|
93
|
+
# Update the __module__ attribute for exported symbols so that
|
|
94
|
+
# error messages point to this module instead of the module
|
|
95
|
+
# it was originally defined in, e.g.
|
|
96
|
+
# agentex._exceptions.NotFoundError -> agentex.NotFoundError
|
|
97
|
+
__locals = locals()
|
|
98
|
+
for __name in __all__:
|
|
99
|
+
if not __name.startswith("__"):
|
|
100
|
+
try:
|
|
101
|
+
__locals[__name].__module__ = "agentex"
|
|
102
|
+
except (TypeError, AttributeError):
|
|
103
|
+
# Some of our exported symbols are builtins which we can't set attributes for.
|
|
104
|
+
pass
|