letta-client 0.1.0__tar.gz → 0.1.2__tar.gz
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 letta-client might be problematic. Click here for more details.
- letta_client-0.1.2/PKG-INFO +189 -0
- letta_client-0.1.2/README.md +161 -0
- letta_client-0.1.2/pyproject.toml +62 -0
- letta_client-0.1.2/src/letta/__init__.py +293 -0
- letta_client-0.1.2/src/letta/agents/__init__.py +28 -0
- letta_client-0.1.2/src/letta/agents/archival_memory/__init__.py +2 -0
- letta_client-0.1.2/src/letta/agents/archival_memory/client.py +591 -0
- letta_client-0.1.2/src/letta/agents/client.py +2166 -0
- letta_client-0.1.2/src/letta/agents/context/__init__.py +2 -0
- letta_client-0.1.2/src/letta/agents/context/client.py +145 -0
- letta_client-0.1.2/src/letta/agents/memory/__init__.py +5 -0
- letta_client-0.1.2/src/letta/agents/memory/client.py +149 -0
- letta_client-0.1.2/src/letta/agents/memory/messages/__init__.py +2 -0
- letta_client-0.1.2/src/letta/agents/memory/messages/client.py +147 -0
- letta_client-0.1.2/src/letta/agents/memory_blocks/__init__.py +2 -0
- letta_client-0.1.2/src/letta/agents/memory_blocks/client.py +364 -0
- letta_client-0.1.2/src/letta/agents/messages/__init__.py +5 -0
- letta_client-0.1.2/src/letta/agents/messages/client.py +787 -0
- letta_client-0.1.2/src/letta/agents/messages/types/__init__.py +7 -0
- letta_client-0.1.2/src/letta/agents/messages/types/letta_streaming_response.py +20 -0
- letta_client-0.1.2/src/letta/agents/messages/types/messages_list_response.py +7 -0
- letta_client-0.1.2/src/letta/agents/messages/types/messages_list_response_item.py +13 -0
- letta_client-0.1.2/src/letta/agents/recall_memory/__init__.py +2 -0
- letta_client-0.1.2/src/letta/agents/recall_memory/client.py +147 -0
- letta_client-0.1.2/src/letta/agents/sources/__init__.py +2 -0
- letta_client-0.1.2/src/letta/agents/sources/client.py +145 -0
- letta_client-0.1.2/src/letta/agents/tools/__init__.py +2 -0
- letta_client-0.1.2/src/letta/agents/tools/client.py +408 -0
- letta_client-0.1.2/src/letta/agents/types/__init__.py +13 -0
- letta_client-0.1.2/src/letta/agents/types/agents_create_version_response.py +22 -0
- letta_client-0.1.2/src/letta/agents/types/agents_migrate_response.py +19 -0
- letta_client-0.1.2/src/letta/agents/types/create_agent_request_tool_rules_item.py +9 -0
- letta_client-0.1.2/src/letta/agents/types/update_agent_tool_rules_item.py +9 -0
- letta_client-0.1.2/src/letta/blocks/__init__.py +2 -0
- letta_client-0.1.2/src/letta/blocks/client.py +1054 -0
- letta_client-0.1.2/src/letta/client.py +164 -0
- letta_client-0.1.2/src/letta/core/__init__.py +47 -0
- letta_client-0.1.2/src/letta/core/api_error.py +15 -0
- letta_client-0.1.2/src/letta/core/client_wrapper.py +76 -0
- letta_client-0.1.2/src/letta/core/datetime_utils.py +28 -0
- letta_client-0.1.2/src/letta/core/file.py +67 -0
- letta_client-0.1.2/src/letta/core/http_client.py +499 -0
- letta_client-0.1.2/src/letta/core/jsonable_encoder.py +101 -0
- letta_client-0.1.2/src/letta/core/pydantic_utilities.py +296 -0
- letta_client-0.1.2/src/letta/core/query_encoder.py +58 -0
- letta_client-0.1.2/src/letta/core/remove_none_from_dict.py +11 -0
- letta_client-0.1.2/src/letta/core/request_options.py +35 -0
- letta_client-0.1.2/src/letta/core/serialization.py +272 -0
- letta_client-0.1.2/src/letta/environment.py +8 -0
- letta_client-0.1.2/src/letta/errors/__init__.py +8 -0
- letta_client-0.1.2/src/letta/errors/conflict_error.py +9 -0
- letta_client-0.1.2/src/letta/errors/internal_server_error.py +9 -0
- letta_client-0.1.2/src/letta/errors/not_found_error.py +9 -0
- letta_client-0.1.2/src/letta/errors/unprocessable_entity_error.py +9 -0
- letta_client-0.1.2/src/letta/health/__init__.py +2 -0
- letta_client-0.1.2/src/letta/health/client.py +108 -0
- letta_client-0.1.2/src/letta/jobs/__init__.py +2 -0
- letta_client-0.1.2/src/letta/jobs/client.py +503 -0
- letta_client-0.1.2/src/letta/models/__init__.py +2 -0
- letta_client-0.1.2/src/letta/models/client.py +201 -0
- letta_client-0.1.2/src/letta/sources/__init__.py +5 -0
- letta_client-0.1.2/src/letta/sources/client.py +1154 -0
- letta_client-0.1.2/src/letta/sources/files/__init__.py +2 -0
- letta_client-0.1.2/src/letta/sources/files/client.py +436 -0
- letta_client-0.1.2/src/letta/sources/passages/__init__.py +2 -0
- letta_client-0.1.2/src/letta/sources/passages/client.py +145 -0
- letta_client-0.1.2/src/letta/tools/__init__.py +2 -0
- letta_client-0.1.2/src/letta/tools/client.py +1823 -0
- letta_client-0.1.2/src/letta/types/__init__.py +263 -0
- letta_client-0.1.2/src/letta/types/action_model.py +36 -0
- letta_client-0.1.2/src/letta/types/action_parameters_model.py +26 -0
- letta_client-0.1.2/src/letta/types/action_response_model.py +26 -0
- letta_client-0.1.2/src/letta/types/agent_state.py +139 -0
- letta_client-0.1.2/src/letta/types/agent_state_tool_rules_item.py +9 -0
- letta_client-0.1.2/src/letta/types/agent_type.py +8 -0
- letta_client-0.1.2/src/letta/types/app_auth_scheme.py +34 -0
- letta_client-0.1.2/src/letta/types/app_auth_scheme_auth_mode.py +7 -0
- letta_client-0.1.2/src/letta/types/app_model.py +44 -0
- letta_client-0.1.2/src/letta/types/archival_memory_summary.py +22 -0
- letta_client-0.1.2/src/letta/types/assistant_file.py +33 -0
- letta_client-0.1.2/src/letta/types/assistant_message_input.py +23 -0
- letta_client-0.1.2/src/letta/types/assistant_message_output.py +23 -0
- letta_client-0.1.2/src/letta/types/auth_request.py +22 -0
- letta_client-0.1.2/src/letta/types/auth_response.py +29 -0
- letta_client-0.1.2/src/letta/types/auth_scheme_field.py +30 -0
- letta_client-0.1.2/src/letta/types/block.py +91 -0
- letta_client-0.1.2/src/letta/types/block_update.py +60 -0
- letta_client-0.1.2/src/letta/types/chat_completion_request.py +49 -0
- letta_client-0.1.2/src/letta/types/chat_completion_request_function_call.py +6 -0
- letta_client-0.1.2/src/letta/types/chat_completion_request_messages_item.py +11 -0
- letta_client-0.1.2/src/letta/types/chat_completion_request_stop.py +5 -0
- letta_client-0.1.2/src/letta/types/chat_completion_request_tool_choice.py +8 -0
- letta_client-0.1.2/src/letta/types/chat_completion_response.py +32 -0
- letta_client-0.1.2/src/letta/types/child_tool_rule.py +33 -0
- letta_client-0.1.2/src/letta/types/choice.py +25 -0
- letta_client-0.1.2/src/letta/types/conditional_tool_rule.py +43 -0
- letta_client-0.1.2/src/letta/types/conflict_error_body.py +21 -0
- letta_client-0.1.2/src/letta/types/context_window_overview.py +105 -0
- letta_client-0.1.2/src/letta/types/create_assistant_file_request.py +22 -0
- letta_client-0.1.2/src/letta/types/create_assistant_request.py +57 -0
- letta_client-0.1.2/src/letta/types/create_block.py +56 -0
- letta_client-0.1.2/src/letta/types/delete_assistant_file_response.py +28 -0
- letta_client-0.1.2/src/letta/types/delete_assistant_response.py +28 -0
- letta_client-0.1.2/src/letta/types/e_2_b_sandbox_config.py +32 -0
- letta_client-0.1.2/src/letta/types/embedding_config.py +72 -0
- letta_client-0.1.2/src/letta/types/embedding_config_embedding_endpoint_type.py +26 -0
- letta_client-0.1.2/src/letta/types/file_metadata.py +82 -0
- letta_client-0.1.2/src/letta/types/function_call_input.py +19 -0
- letta_client-0.1.2/src/letta/types/function_call_output.py +20 -0
- letta_client-0.1.2/src/letta/types/function_schema.py +21 -0
- letta_client-0.1.2/src/letta/types/health.py +24 -0
- letta_client-0.1.2/src/letta/types/http_validation_error.py +20 -0
- letta_client-0.1.2/src/letta/types/init_tool_rule.py +29 -0
- letta_client-0.1.2/src/letta/types/internal_server_error_body.py +19 -0
- letta_client-0.1.2/src/letta/types/job.py +79 -0
- letta_client-0.1.2/src/letta/types/job_status.py +5 -0
- letta_client-0.1.2/src/letta/types/letta_request.py +33 -0
- letta_client-0.1.2/src/letta/types/letta_response.py +125 -0
- letta_client-0.1.2/src/letta/types/letta_response_assistant_message.py +23 -0
- letta_client-0.1.2/src/letta/types/letta_response_letta_usage_statistics.py +47 -0
- letta_client-0.1.2/src/letta/types/letta_response_reasoning_message.py +32 -0
- letta_client-0.1.2/src/letta/types/letta_response_system_message.py +32 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_call.py +21 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_call_delta.py +21 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_call_message.py +33 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_call_message_tool_call.py +9 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_call_message_tool_call_one.py +21 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_call_message_tool_call_zero.py +21 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_return_message.py +41 -0
- letta_client-0.1.2/src/letta/types/letta_response_tool_return_message_status.py +5 -0
- letta_client-0.1.2/src/letta/types/letta_response_usage_message.py +40 -0
- letta_client-0.1.2/src/letta/types/letta_response_usage_message_usage.py +47 -0
- letta_client-0.1.2/src/letta/types/letta_response_user_message.py +32 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_letta_message_tool_call.py +21 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_message_message.py +103 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completion_request_tool.py +21 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completion_request_tool_call.py +24 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completion_request_tool_call_function.py +20 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completion_response_message.py +24 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completion_response_tool_call.py +22 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completions_tool_call_function.py +27 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completions_tool_call_input.py +29 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_openai_chat_completions_tool_call_output.py +29 -0
- letta_client-0.1.2/src/letta/types/letta_schemas_tool_tool.py +88 -0
- letta_client-0.1.2/src/letta/types/letta_usage_statistics.py +47 -0
- letta_client-0.1.2/src/letta/types/llm_config.py +60 -0
- letta_client-0.1.2/src/letta/types/llm_config_model_endpoint_type.py +26 -0
- letta_client-0.1.2/src/letta/types/local_sandbox_config.py +32 -0
- letta_client-0.1.2/src/letta/types/log_prob_token.py +21 -0
- letta_client-0.1.2/src/letta/types/memory.py +32 -0
- letta_client-0.1.2/src/letta/types/message_content_log_prob.py +23 -0
- letta_client-0.1.2/src/letta/types/message_create.py +37 -0
- letta_client-0.1.2/src/letta/types/message_create_role.py +5 -0
- letta_client-0.1.2/src/letta/types/message_role.py +5 -0
- letta_client-0.1.2/src/letta/types/not_found_error_body.py +20 -0
- letta_client-0.1.2/src/letta/types/not_found_error_body_message.py +11 -0
- letta_client-0.1.2/src/letta/types/open_ai_assistant.py +67 -0
- letta_client-0.1.2/src/letta/types/organization.py +33 -0
- letta_client-0.1.2/src/letta/types/organization_create.py +22 -0
- letta_client-0.1.2/src/letta/types/passage.py +107 -0
- letta_client-0.1.2/src/letta/types/reasoning_message.py +32 -0
- letta_client-0.1.2/src/letta/types/recall_memory_summary.py +22 -0
- letta_client-0.1.2/src/letta/types/response_format.py +19 -0
- letta_client-0.1.2/src/letta/types/sandbox_config.py +59 -0
- letta_client-0.1.2/src/letta/types/sandbox_config_create.py +23 -0
- letta_client-0.1.2/src/letta/types/sandbox_config_create_config.py +7 -0
- letta_client-0.1.2/src/letta/types/sandbox_config_update.py +27 -0
- letta_client-0.1.2/src/letta/types/sandbox_config_update_config.py +7 -0
- letta_client-0.1.2/src/letta/types/sandbox_environment_variable.py +68 -0
- letta_client-0.1.2/src/letta/types/sandbox_environment_variable_create.py +32 -0
- letta_client-0.1.2/src/letta/types/sandbox_environment_variable_update.py +36 -0
- letta_client-0.1.2/src/letta/types/sandbox_type.py +5 -0
- letta_client-0.1.2/src/letta/types/source.py +85 -0
- letta_client-0.1.2/src/letta/types/system_message_input.py +21 -0
- letta_client-0.1.2/src/letta/types/system_message_output.py +32 -0
- letta_client-0.1.2/src/letta/types/terminal_tool_rule.py +29 -0
- letta_client-0.1.2/src/letta/types/tool_call_delta.py +21 -0
- letta_client-0.1.2/src/letta/types/tool_call_function_output.py +27 -0
- letta_client-0.1.2/src/letta/types/tool_call_message.py +33 -0
- letta_client-0.1.2/src/letta/types/tool_call_message_tool_call.py +7 -0
- letta_client-0.1.2/src/letta/types/tool_create.py +57 -0
- letta_client-0.1.2/src/letta/types/tool_function_choice.py +21 -0
- letta_client-0.1.2/src/letta/types/tool_input.py +21 -0
- letta_client-0.1.2/src/letta/types/tool_message.py +21 -0
- letta_client-0.1.2/src/letta/types/tool_return_message.py +41 -0
- letta_client-0.1.2/src/letta/types/tool_return_message_status.py +5 -0
- letta_client-0.1.2/src/letta/types/tool_rule_type.py +10 -0
- letta_client-0.1.2/src/letta/types/usage_message.py +31 -0
- letta_client-0.1.2/src/letta/types/usage_statistics.py +21 -0
- letta_client-0.1.2/src/letta/types/user.py +57 -0
- letta_client-0.1.2/src/letta/types/user_create.py +27 -0
- letta_client-0.1.2/src/letta/types/user_message_input.py +22 -0
- letta_client-0.1.2/src/letta/types/user_message_input_content.py +5 -0
- letta_client-0.1.2/src/letta/types/user_message_output.py +32 -0
- letta_client-0.1.2/src/letta/types/user_update.py +32 -0
- letta_client-0.1.2/src/letta/types/validation_error.py +22 -0
- letta_client-0.1.2/src/letta/types/validation_error_loc_item.py +5 -0
- letta_client-0.1.2/src/letta/version.py +3 -0
- letta_client-0.1.0/PKG-INFO +0 -15
- letta_client-0.1.0/letta_client/__init__.py +0 -0
- letta_client-0.1.0/pyproject.toml +0 -14
- /letta_client-0.1.0/README.md → /letta_client-0.1.2/src/letta/py.typed +0 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: letta-client
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary:
|
|
5
|
+
Requires-Python: >=3.8,<4.0
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: Operating System :: MacOS
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Operating System :: POSIX
|
|
11
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Dist: httpx (>=0.21.2)
|
|
22
|
+
Requires-Dist: httpx-sse (==0.4.0)
|
|
23
|
+
Requires-Dist: pydantic (>=1.9.2)
|
|
24
|
+
Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
|
|
25
|
+
Requires-Dist: typing_extensions (>=4.0.0)
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# Letta Python Library
|
|
29
|
+
|
|
30
|
+
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fletta-ai%2Fletta-python)
|
|
31
|
+
[](https://pypi.python.org/pypi/letta-client)
|
|
32
|
+
|
|
33
|
+
The Letta Python library provides convenient access to the Letta API from Python.
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pip install letta-client
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Reference
|
|
42
|
+
|
|
43
|
+
A full reference for this library is available [here](./reference.md).
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
Instantiate and use the client with the following:
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
from letta import Letta
|
|
51
|
+
|
|
52
|
+
client = Letta(
|
|
53
|
+
token="YOUR_TOKEN",
|
|
54
|
+
)
|
|
55
|
+
client.tools.create(
|
|
56
|
+
source_code="source_code",
|
|
57
|
+
)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Async Client
|
|
61
|
+
|
|
62
|
+
The SDK also exports an `async` client so that you can make non-blocking calls to our API.
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
import asyncio
|
|
66
|
+
|
|
67
|
+
from letta import AsyncLetta
|
|
68
|
+
|
|
69
|
+
client = AsyncLetta(
|
|
70
|
+
token="YOUR_TOKEN",
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
async def main() -> None:
|
|
75
|
+
await client.tools.create(
|
|
76
|
+
source_code="source_code",
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
asyncio.run(main())
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Exception Handling
|
|
84
|
+
|
|
85
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
86
|
+
will be thrown.
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
from letta.core.api_error import ApiError
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
client.tools.create(...)
|
|
93
|
+
except ApiError as e:
|
|
94
|
+
print(e.status_code)
|
|
95
|
+
print(e.body)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Streaming
|
|
99
|
+
|
|
100
|
+
The SDK supports streaming responses, as well, the response will be a generator that you can loop over.
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
from letta import Letta, MessageCreate
|
|
104
|
+
|
|
105
|
+
client = Letta(
|
|
106
|
+
token="YOUR_TOKEN",
|
|
107
|
+
)
|
|
108
|
+
response = client.agents.messages.stream(
|
|
109
|
+
agent_id="agent_id",
|
|
110
|
+
messages=[
|
|
111
|
+
MessageCreate(
|
|
112
|
+
role="user",
|
|
113
|
+
text="text",
|
|
114
|
+
)
|
|
115
|
+
],
|
|
116
|
+
)
|
|
117
|
+
for chunk in response:
|
|
118
|
+
yield chunk
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Advanced
|
|
122
|
+
|
|
123
|
+
### Retries
|
|
124
|
+
|
|
125
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
126
|
+
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
|
|
127
|
+
retry limit (default: 2).
|
|
128
|
+
|
|
129
|
+
A request is deemed retriable when any of the following HTTP status codes is returned:
|
|
130
|
+
|
|
131
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
132
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
133
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
134
|
+
|
|
135
|
+
Use the `max_retries` request option to configure this behavior.
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
client.tools.create(..., request_options={
|
|
139
|
+
"max_retries": 1
|
|
140
|
+
})
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Timeouts
|
|
144
|
+
|
|
145
|
+
The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
|
|
146
|
+
|
|
147
|
+
```python
|
|
148
|
+
|
|
149
|
+
from letta import Letta
|
|
150
|
+
|
|
151
|
+
client = Letta(
|
|
152
|
+
...,
|
|
153
|
+
timeout=20.0,
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
# Override timeout for a specific method
|
|
158
|
+
client.tools.create(..., request_options={
|
|
159
|
+
"timeout_in_seconds": 1
|
|
160
|
+
})
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Custom Client
|
|
164
|
+
|
|
165
|
+
You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
|
|
166
|
+
and transports.
|
|
167
|
+
```python
|
|
168
|
+
import httpx
|
|
169
|
+
from letta import Letta
|
|
170
|
+
|
|
171
|
+
client = Letta(
|
|
172
|
+
...,
|
|
173
|
+
httpx_client=httpx.Client(
|
|
174
|
+
proxies="http://my.test.proxy.example.com",
|
|
175
|
+
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
|
176
|
+
),
|
|
177
|
+
)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Contributing
|
|
181
|
+
|
|
182
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
183
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
184
|
+
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
185
|
+
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
186
|
+
an issue first to discuss with us!
|
|
187
|
+
|
|
188
|
+
On the other hand, contributions to the README are always very welcome!
|
|
189
|
+
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# Letta Python Library
|
|
2
|
+
|
|
3
|
+
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fletta-ai%2Fletta-python)
|
|
4
|
+
[](https://pypi.python.org/pypi/letta-client)
|
|
5
|
+
|
|
6
|
+
The Letta Python library provides convenient access to the Letta API from Python.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
pip install letta-client
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Reference
|
|
15
|
+
|
|
16
|
+
A full reference for this library is available [here](./reference.md).
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Instantiate and use the client with the following:
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
from letta import Letta
|
|
24
|
+
|
|
25
|
+
client = Letta(
|
|
26
|
+
token="YOUR_TOKEN",
|
|
27
|
+
)
|
|
28
|
+
client.tools.create(
|
|
29
|
+
source_code="source_code",
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Async Client
|
|
34
|
+
|
|
35
|
+
The SDK also exports an `async` client so that you can make non-blocking calls to our API.
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
import asyncio
|
|
39
|
+
|
|
40
|
+
from letta import AsyncLetta
|
|
41
|
+
|
|
42
|
+
client = AsyncLetta(
|
|
43
|
+
token="YOUR_TOKEN",
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
async def main() -> None:
|
|
48
|
+
await client.tools.create(
|
|
49
|
+
source_code="source_code",
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
asyncio.run(main())
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Exception Handling
|
|
57
|
+
|
|
58
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
59
|
+
will be thrown.
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
from letta.core.api_error import ApiError
|
|
63
|
+
|
|
64
|
+
try:
|
|
65
|
+
client.tools.create(...)
|
|
66
|
+
except ApiError as e:
|
|
67
|
+
print(e.status_code)
|
|
68
|
+
print(e.body)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Streaming
|
|
72
|
+
|
|
73
|
+
The SDK supports streaming responses, as well, the response will be a generator that you can loop over.
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
from letta import Letta, MessageCreate
|
|
77
|
+
|
|
78
|
+
client = Letta(
|
|
79
|
+
token="YOUR_TOKEN",
|
|
80
|
+
)
|
|
81
|
+
response = client.agents.messages.stream(
|
|
82
|
+
agent_id="agent_id",
|
|
83
|
+
messages=[
|
|
84
|
+
MessageCreate(
|
|
85
|
+
role="user",
|
|
86
|
+
text="text",
|
|
87
|
+
)
|
|
88
|
+
],
|
|
89
|
+
)
|
|
90
|
+
for chunk in response:
|
|
91
|
+
yield chunk
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Advanced
|
|
95
|
+
|
|
96
|
+
### Retries
|
|
97
|
+
|
|
98
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
99
|
+
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
|
|
100
|
+
retry limit (default: 2).
|
|
101
|
+
|
|
102
|
+
A request is deemed retriable when any of the following HTTP status codes is returned:
|
|
103
|
+
|
|
104
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
105
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
106
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
107
|
+
|
|
108
|
+
Use the `max_retries` request option to configure this behavior.
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
client.tools.create(..., request_options={
|
|
112
|
+
"max_retries": 1
|
|
113
|
+
})
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Timeouts
|
|
117
|
+
|
|
118
|
+
The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
|
|
119
|
+
|
|
120
|
+
```python
|
|
121
|
+
|
|
122
|
+
from letta import Letta
|
|
123
|
+
|
|
124
|
+
client = Letta(
|
|
125
|
+
...,
|
|
126
|
+
timeout=20.0,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
# Override timeout for a specific method
|
|
131
|
+
client.tools.create(..., request_options={
|
|
132
|
+
"timeout_in_seconds": 1
|
|
133
|
+
})
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Custom Client
|
|
137
|
+
|
|
138
|
+
You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
|
|
139
|
+
and transports.
|
|
140
|
+
```python
|
|
141
|
+
import httpx
|
|
142
|
+
from letta import Letta
|
|
143
|
+
|
|
144
|
+
client = Letta(
|
|
145
|
+
...,
|
|
146
|
+
httpx_client=httpx.Client(
|
|
147
|
+
proxies="http://my.test.proxy.example.com",
|
|
148
|
+
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
|
149
|
+
),
|
|
150
|
+
)
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Contributing
|
|
154
|
+
|
|
155
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
156
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
157
|
+
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
158
|
+
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
159
|
+
an issue first to discuss with us!
|
|
160
|
+
|
|
161
|
+
On the other hand, contributions to the README are always very welcome!
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "letta-client"
|
|
3
|
+
version = "0.1.2"
|
|
4
|
+
description = ""
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = []
|
|
7
|
+
keywords = []
|
|
8
|
+
|
|
9
|
+
classifiers = [
|
|
10
|
+
"Intended Audience :: Developers",
|
|
11
|
+
"Programming Language :: Python",
|
|
12
|
+
"Programming Language :: Python :: 3",
|
|
13
|
+
"Programming Language :: Python :: 3.8",
|
|
14
|
+
"Programming Language :: Python :: 3.9",
|
|
15
|
+
"Programming Language :: Python :: 3.10",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
"Operating System :: POSIX",
|
|
20
|
+
"Operating System :: MacOS",
|
|
21
|
+
"Operating System :: POSIX :: Linux",
|
|
22
|
+
"Operating System :: Microsoft :: Windows",
|
|
23
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
24
|
+
"Typing :: Typed"
|
|
25
|
+
]
|
|
26
|
+
packages = [
|
|
27
|
+
{ include = "letta", from = "src"}
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Repository = 'https://github.com/letta-ai/letta-python'
|
|
32
|
+
|
|
33
|
+
[tool.poetry.dependencies]
|
|
34
|
+
python = "^3.8"
|
|
35
|
+
httpx = ">=0.21.2"
|
|
36
|
+
httpx-sse = "0.4.0"
|
|
37
|
+
pydantic = ">= 1.9.2"
|
|
38
|
+
pydantic-core = "^2.18.2"
|
|
39
|
+
typing_extensions = ">= 4.0.0"
|
|
40
|
+
|
|
41
|
+
[tool.poetry.dev-dependencies]
|
|
42
|
+
mypy = "1.0.1"
|
|
43
|
+
pytest = "^7.4.0"
|
|
44
|
+
pytest-asyncio = "^0.23.5"
|
|
45
|
+
python-dateutil = "^2.9.0"
|
|
46
|
+
types-python-dateutil = "^2.9.0.20240316"
|
|
47
|
+
ruff = "^0.5.6"
|
|
48
|
+
|
|
49
|
+
[tool.pytest.ini_options]
|
|
50
|
+
testpaths = [ "tests" ]
|
|
51
|
+
asyncio_mode = "auto"
|
|
52
|
+
|
|
53
|
+
[tool.mypy]
|
|
54
|
+
plugins = ["pydantic.mypy"]
|
|
55
|
+
|
|
56
|
+
[tool.ruff]
|
|
57
|
+
line-length = 120
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
[build-system]
|
|
61
|
+
requires = ["poetry-core"]
|
|
62
|
+
build-backend = "poetry.core.masonry.api"
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from .types import (
|
|
4
|
+
ActionModel,
|
|
5
|
+
ActionParametersModel,
|
|
6
|
+
ActionResponseModel,
|
|
7
|
+
AgentState,
|
|
8
|
+
AgentStateToolRulesItem,
|
|
9
|
+
AgentType,
|
|
10
|
+
AppAuthScheme,
|
|
11
|
+
AppAuthSchemeAuthMode,
|
|
12
|
+
AppModel,
|
|
13
|
+
ArchivalMemorySummary,
|
|
14
|
+
AssistantFile,
|
|
15
|
+
AssistantMessageInput,
|
|
16
|
+
AssistantMessageOutput,
|
|
17
|
+
AuthRequest,
|
|
18
|
+
AuthResponse,
|
|
19
|
+
AuthSchemeField,
|
|
20
|
+
Block,
|
|
21
|
+
BlockUpdate,
|
|
22
|
+
ChatCompletionRequest,
|
|
23
|
+
ChatCompletionRequestFunctionCall,
|
|
24
|
+
ChatCompletionRequestMessagesItem,
|
|
25
|
+
ChatCompletionRequestStop,
|
|
26
|
+
ChatCompletionRequestToolChoice,
|
|
27
|
+
ChatCompletionResponse,
|
|
28
|
+
ChildToolRule,
|
|
29
|
+
Choice,
|
|
30
|
+
ConditionalToolRule,
|
|
31
|
+
ConflictErrorBody,
|
|
32
|
+
ContextWindowOverview,
|
|
33
|
+
CreateAssistantFileRequest,
|
|
34
|
+
CreateAssistantRequest,
|
|
35
|
+
CreateBlock,
|
|
36
|
+
DeleteAssistantFileResponse,
|
|
37
|
+
DeleteAssistantResponse,
|
|
38
|
+
E2BSandboxConfig,
|
|
39
|
+
EmbeddingConfig,
|
|
40
|
+
EmbeddingConfigEmbeddingEndpointType,
|
|
41
|
+
FileMetadata,
|
|
42
|
+
FunctionCallInput,
|
|
43
|
+
FunctionCallOutput,
|
|
44
|
+
FunctionSchema,
|
|
45
|
+
Health,
|
|
46
|
+
HttpValidationError,
|
|
47
|
+
InitToolRule,
|
|
48
|
+
InternalServerErrorBody,
|
|
49
|
+
Job,
|
|
50
|
+
JobStatus,
|
|
51
|
+
LettaRequest,
|
|
52
|
+
LettaResponse,
|
|
53
|
+
LettaResponseAssistantMessage,
|
|
54
|
+
LettaResponseLettaUsageStatistics,
|
|
55
|
+
LettaResponseReasoningMessage,
|
|
56
|
+
LettaResponseSystemMessage,
|
|
57
|
+
LettaResponseToolCall,
|
|
58
|
+
LettaResponseToolCallDelta,
|
|
59
|
+
LettaResponseToolCallMessage,
|
|
60
|
+
LettaResponseToolCallMessageToolCall,
|
|
61
|
+
LettaResponseToolCallMessageToolCallOne,
|
|
62
|
+
LettaResponseToolCallMessageToolCallZero,
|
|
63
|
+
LettaResponseToolReturnMessage,
|
|
64
|
+
LettaResponseToolReturnMessageStatus,
|
|
65
|
+
LettaResponseUsageMessage,
|
|
66
|
+
LettaResponseUsageMessageUsage,
|
|
67
|
+
LettaResponseUserMessage,
|
|
68
|
+
LettaSchemasLettaMessageToolCall,
|
|
69
|
+
LettaSchemasMessageMessage,
|
|
70
|
+
LettaSchemasOpenaiChatCompletionRequestTool,
|
|
71
|
+
LettaSchemasOpenaiChatCompletionRequestToolCall,
|
|
72
|
+
LettaSchemasOpenaiChatCompletionRequestToolCallFunction,
|
|
73
|
+
LettaSchemasOpenaiChatCompletionResponseMessage,
|
|
74
|
+
LettaSchemasOpenaiChatCompletionResponseToolCall,
|
|
75
|
+
LettaSchemasOpenaiChatCompletionsToolCallFunction,
|
|
76
|
+
LettaSchemasOpenaiChatCompletionsToolCallInput,
|
|
77
|
+
LettaSchemasOpenaiChatCompletionsToolCallOutput,
|
|
78
|
+
LettaSchemasToolTool,
|
|
79
|
+
LettaUsageStatistics,
|
|
80
|
+
LlmConfig,
|
|
81
|
+
LlmConfigModelEndpointType,
|
|
82
|
+
LocalSandboxConfig,
|
|
83
|
+
LogProbToken,
|
|
84
|
+
Memory,
|
|
85
|
+
MessageContentLogProb,
|
|
86
|
+
MessageCreate,
|
|
87
|
+
MessageCreateRole,
|
|
88
|
+
MessageRole,
|
|
89
|
+
NotFoundErrorBody,
|
|
90
|
+
NotFoundErrorBodyMessage,
|
|
91
|
+
OpenAiAssistant,
|
|
92
|
+
Organization,
|
|
93
|
+
OrganizationCreate,
|
|
94
|
+
Passage,
|
|
95
|
+
ReasoningMessage,
|
|
96
|
+
RecallMemorySummary,
|
|
97
|
+
ResponseFormat,
|
|
98
|
+
SandboxConfig,
|
|
99
|
+
SandboxConfigCreate,
|
|
100
|
+
SandboxConfigCreateConfig,
|
|
101
|
+
SandboxConfigUpdate,
|
|
102
|
+
SandboxConfigUpdateConfig,
|
|
103
|
+
SandboxEnvironmentVariable,
|
|
104
|
+
SandboxEnvironmentVariableCreate,
|
|
105
|
+
SandboxEnvironmentVariableUpdate,
|
|
106
|
+
SandboxType,
|
|
107
|
+
Source,
|
|
108
|
+
SystemMessageInput,
|
|
109
|
+
SystemMessageOutput,
|
|
110
|
+
TerminalToolRule,
|
|
111
|
+
ToolCallDelta,
|
|
112
|
+
ToolCallFunctionOutput,
|
|
113
|
+
ToolCallMessage,
|
|
114
|
+
ToolCallMessageToolCall,
|
|
115
|
+
ToolCreate,
|
|
116
|
+
ToolFunctionChoice,
|
|
117
|
+
ToolInput,
|
|
118
|
+
ToolMessage,
|
|
119
|
+
ToolReturnMessage,
|
|
120
|
+
ToolReturnMessageStatus,
|
|
121
|
+
ToolRuleType,
|
|
122
|
+
UsageMessage,
|
|
123
|
+
UsageStatistics,
|
|
124
|
+
User,
|
|
125
|
+
UserCreate,
|
|
126
|
+
UserMessageInput,
|
|
127
|
+
UserMessageInputContent,
|
|
128
|
+
UserMessageOutput,
|
|
129
|
+
UserUpdate,
|
|
130
|
+
ValidationError,
|
|
131
|
+
ValidationErrorLocItem,
|
|
132
|
+
)
|
|
133
|
+
from .errors import ConflictError, InternalServerError, NotFoundError, UnprocessableEntityError
|
|
134
|
+
from . import agents, blocks, health, jobs, models, sources, tools
|
|
135
|
+
from .agents import (
|
|
136
|
+
AgentsCreateVersionResponse,
|
|
137
|
+
AgentsMigrateResponse,
|
|
138
|
+
CreateAgentRequestToolRulesItem,
|
|
139
|
+
UpdateAgentToolRulesItem,
|
|
140
|
+
)
|
|
141
|
+
from .client import AsyncLetta, Letta
|
|
142
|
+
from .environment import LettaEnvironment
|
|
143
|
+
from .version import __version__
|
|
144
|
+
|
|
145
|
+
__all__ = [
|
|
146
|
+
"ActionModel",
|
|
147
|
+
"ActionParametersModel",
|
|
148
|
+
"ActionResponseModel",
|
|
149
|
+
"AgentState",
|
|
150
|
+
"AgentStateToolRulesItem",
|
|
151
|
+
"AgentType",
|
|
152
|
+
"AgentsCreateVersionResponse",
|
|
153
|
+
"AgentsMigrateResponse",
|
|
154
|
+
"AppAuthScheme",
|
|
155
|
+
"AppAuthSchemeAuthMode",
|
|
156
|
+
"AppModel",
|
|
157
|
+
"ArchivalMemorySummary",
|
|
158
|
+
"AssistantFile",
|
|
159
|
+
"AssistantMessageInput",
|
|
160
|
+
"AssistantMessageOutput",
|
|
161
|
+
"AsyncLetta",
|
|
162
|
+
"AuthRequest",
|
|
163
|
+
"AuthResponse",
|
|
164
|
+
"AuthSchemeField",
|
|
165
|
+
"Block",
|
|
166
|
+
"BlockUpdate",
|
|
167
|
+
"ChatCompletionRequest",
|
|
168
|
+
"ChatCompletionRequestFunctionCall",
|
|
169
|
+
"ChatCompletionRequestMessagesItem",
|
|
170
|
+
"ChatCompletionRequestStop",
|
|
171
|
+
"ChatCompletionRequestToolChoice",
|
|
172
|
+
"ChatCompletionResponse",
|
|
173
|
+
"ChildToolRule",
|
|
174
|
+
"Choice",
|
|
175
|
+
"ConditionalToolRule",
|
|
176
|
+
"ConflictError",
|
|
177
|
+
"ConflictErrorBody",
|
|
178
|
+
"ContextWindowOverview",
|
|
179
|
+
"CreateAgentRequestToolRulesItem",
|
|
180
|
+
"CreateAssistantFileRequest",
|
|
181
|
+
"CreateAssistantRequest",
|
|
182
|
+
"CreateBlock",
|
|
183
|
+
"DeleteAssistantFileResponse",
|
|
184
|
+
"DeleteAssistantResponse",
|
|
185
|
+
"E2BSandboxConfig",
|
|
186
|
+
"EmbeddingConfig",
|
|
187
|
+
"EmbeddingConfigEmbeddingEndpointType",
|
|
188
|
+
"FileMetadata",
|
|
189
|
+
"FunctionCallInput",
|
|
190
|
+
"FunctionCallOutput",
|
|
191
|
+
"FunctionSchema",
|
|
192
|
+
"Health",
|
|
193
|
+
"HttpValidationError",
|
|
194
|
+
"InitToolRule",
|
|
195
|
+
"InternalServerError",
|
|
196
|
+
"InternalServerErrorBody",
|
|
197
|
+
"Job",
|
|
198
|
+
"JobStatus",
|
|
199
|
+
"Letta",
|
|
200
|
+
"LettaEnvironment",
|
|
201
|
+
"LettaRequest",
|
|
202
|
+
"LettaResponse",
|
|
203
|
+
"LettaResponseAssistantMessage",
|
|
204
|
+
"LettaResponseLettaUsageStatistics",
|
|
205
|
+
"LettaResponseReasoningMessage",
|
|
206
|
+
"LettaResponseSystemMessage",
|
|
207
|
+
"LettaResponseToolCall",
|
|
208
|
+
"LettaResponseToolCallDelta",
|
|
209
|
+
"LettaResponseToolCallMessage",
|
|
210
|
+
"LettaResponseToolCallMessageToolCall",
|
|
211
|
+
"LettaResponseToolCallMessageToolCallOne",
|
|
212
|
+
"LettaResponseToolCallMessageToolCallZero",
|
|
213
|
+
"LettaResponseToolReturnMessage",
|
|
214
|
+
"LettaResponseToolReturnMessageStatus",
|
|
215
|
+
"LettaResponseUsageMessage",
|
|
216
|
+
"LettaResponseUsageMessageUsage",
|
|
217
|
+
"LettaResponseUserMessage",
|
|
218
|
+
"LettaSchemasLettaMessageToolCall",
|
|
219
|
+
"LettaSchemasMessageMessage",
|
|
220
|
+
"LettaSchemasOpenaiChatCompletionRequestTool",
|
|
221
|
+
"LettaSchemasOpenaiChatCompletionRequestToolCall",
|
|
222
|
+
"LettaSchemasOpenaiChatCompletionRequestToolCallFunction",
|
|
223
|
+
"LettaSchemasOpenaiChatCompletionResponseMessage",
|
|
224
|
+
"LettaSchemasOpenaiChatCompletionResponseToolCall",
|
|
225
|
+
"LettaSchemasOpenaiChatCompletionsToolCallFunction",
|
|
226
|
+
"LettaSchemasOpenaiChatCompletionsToolCallInput",
|
|
227
|
+
"LettaSchemasOpenaiChatCompletionsToolCallOutput",
|
|
228
|
+
"LettaSchemasToolTool",
|
|
229
|
+
"LettaUsageStatistics",
|
|
230
|
+
"LlmConfig",
|
|
231
|
+
"LlmConfigModelEndpointType",
|
|
232
|
+
"LocalSandboxConfig",
|
|
233
|
+
"LogProbToken",
|
|
234
|
+
"Memory",
|
|
235
|
+
"MessageContentLogProb",
|
|
236
|
+
"MessageCreate",
|
|
237
|
+
"MessageCreateRole",
|
|
238
|
+
"MessageRole",
|
|
239
|
+
"NotFoundError",
|
|
240
|
+
"NotFoundErrorBody",
|
|
241
|
+
"NotFoundErrorBodyMessage",
|
|
242
|
+
"OpenAiAssistant",
|
|
243
|
+
"Organization",
|
|
244
|
+
"OrganizationCreate",
|
|
245
|
+
"Passage",
|
|
246
|
+
"ReasoningMessage",
|
|
247
|
+
"RecallMemorySummary",
|
|
248
|
+
"ResponseFormat",
|
|
249
|
+
"SandboxConfig",
|
|
250
|
+
"SandboxConfigCreate",
|
|
251
|
+
"SandboxConfigCreateConfig",
|
|
252
|
+
"SandboxConfigUpdate",
|
|
253
|
+
"SandboxConfigUpdateConfig",
|
|
254
|
+
"SandboxEnvironmentVariable",
|
|
255
|
+
"SandboxEnvironmentVariableCreate",
|
|
256
|
+
"SandboxEnvironmentVariableUpdate",
|
|
257
|
+
"SandboxType",
|
|
258
|
+
"Source",
|
|
259
|
+
"SystemMessageInput",
|
|
260
|
+
"SystemMessageOutput",
|
|
261
|
+
"TerminalToolRule",
|
|
262
|
+
"ToolCallDelta",
|
|
263
|
+
"ToolCallFunctionOutput",
|
|
264
|
+
"ToolCallMessage",
|
|
265
|
+
"ToolCallMessageToolCall",
|
|
266
|
+
"ToolCreate",
|
|
267
|
+
"ToolFunctionChoice",
|
|
268
|
+
"ToolInput",
|
|
269
|
+
"ToolMessage",
|
|
270
|
+
"ToolReturnMessage",
|
|
271
|
+
"ToolReturnMessageStatus",
|
|
272
|
+
"ToolRuleType",
|
|
273
|
+
"UnprocessableEntityError",
|
|
274
|
+
"UpdateAgentToolRulesItem",
|
|
275
|
+
"UsageMessage",
|
|
276
|
+
"UsageStatistics",
|
|
277
|
+
"User",
|
|
278
|
+
"UserCreate",
|
|
279
|
+
"UserMessageInput",
|
|
280
|
+
"UserMessageInputContent",
|
|
281
|
+
"UserMessageOutput",
|
|
282
|
+
"UserUpdate",
|
|
283
|
+
"ValidationError",
|
|
284
|
+
"ValidationErrorLocItem",
|
|
285
|
+
"__version__",
|
|
286
|
+
"agents",
|
|
287
|
+
"blocks",
|
|
288
|
+
"health",
|
|
289
|
+
"jobs",
|
|
290
|
+
"models",
|
|
291
|
+
"sources",
|
|
292
|
+
"tools",
|
|
293
|
+
]
|