letta-client 0.1.9__py3-none-any.whl → 0.1.11__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 letta-client might be problematic. Click here for more details.
- {letta → letta_client}/__init__.py +6 -1
- {letta → letta_client}/agents/archival_memory/client.py +8 -8
- {letta → letta_client}/agents/client.py +164 -20
- {letta → letta_client}/agents/context/client.py +2 -2
- {letta → letta_client}/agents/core_memory/client.py +14 -14
- {letta → letta_client}/agents/memory_variables/client.py +2 -2
- {letta → letta_client}/agents/messages/client.py +19 -19
- {letta → letta_client}/agents/recall_memory/client.py +2 -2
- {letta → letta_client}/agents/sources/client.py +2 -2
- {letta → letta_client}/agents/templates/client.py +12 -12
- {letta → letta_client}/agents/tools/client.py +6 -6
- {letta → letta_client}/blocks/client.py +14 -14
- {letta → letta_client}/client.py +6 -2
- {letta → letta_client}/core/client_wrapper.py +1 -1
- {letta → letta_client}/health/client.py +2 -2
- {letta → letta_client}/jobs/client.py +8 -8
- {letta → letta_client}/models/client.py +4 -4
- {letta → letta_client}/providers/client.py +8 -8
- letta_client/runs/client.py +876 -0
- {letta → letta_client}/sources/client.py +16 -16
- {letta → letta_client}/sources/files/client.py +6 -6
- {letta → letta_client}/sources/passages/client.py +2 -2
- letta_client/tools/__init__.py +2 -0
- {letta → letta_client}/tools/client.py +28 -58
- {letta → letta_client}/types/__init__.py +4 -0
- {letta → letta_client}/types/job.py +6 -0
- letta_client/types/job_type.py +5 -0
- {letta → letta_client}/types/letta_schemas_tool_tool.py +0 -5
- letta_client/types/run.py +77 -0
- {letta → letta_client}/types/tool_create.py +0 -5
- {letta_client-0.1.9.dist-info → letta_client-0.1.11.dist-info}/METADATA +7 -7
- letta_client-0.1.11.dist-info/RECORD +204 -0
- letta_client-0.1.9.dist-info/RECORD +0 -200
- {letta → letta_client}/agents/__init__.py +0 -0
- {letta → letta_client}/agents/archival_memory/__init__.py +0 -0
- {letta → letta_client}/agents/context/__init__.py +0 -0
- {letta → letta_client}/agents/core_memory/__init__.py +0 -0
- {letta → letta_client}/agents/memory_variables/__init__.py +0 -0
- {letta → letta_client}/agents/memory_variables/types/__init__.py +0 -0
- {letta → letta_client}/agents/memory_variables/types/memory_variables_get_response.py +0 -0
- {letta → letta_client}/agents/messages/__init__.py +0 -0
- {letta → letta_client}/agents/messages/types/__init__.py +0 -0
- {letta → letta_client}/agents/messages/types/letta_streaming_response.py +0 -0
- {letta → letta_client}/agents/messages/types/messages_list_response.py +0 -0
- {letta → letta_client}/agents/messages/types/messages_list_response_item.py +0 -0
- {letta → letta_client}/agents/recall_memory/__init__.py +0 -0
- {letta → letta_client}/agents/sources/__init__.py +0 -0
- {letta → letta_client}/agents/templates/__init__.py +0 -0
- {letta → letta_client}/agents/templates/types/__init__.py +0 -0
- {letta → letta_client}/agents/templates/types/templates_migrate_response.py +0 -0
- {letta → letta_client}/agents/tools/__init__.py +0 -0
- {letta → letta_client}/agents/types/__init__.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_combinator.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_search_item.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_search_item_name.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_search_item_name_operator.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_search_item_order_by.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_search_item_order_by_direction.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_search_item_order_by_value.py +0 -0
- {letta → letta_client}/agents/types/agents_search_request_search_item_version.py +0 -0
- {letta → letta_client}/agents/types/create_agent_request_tool_rules_item.py +0 -0
- {letta → letta_client}/agents/types/update_agent_tool_rules_item.py +0 -0
- {letta → letta_client}/blocks/__init__.py +0 -0
- {letta → letta_client}/core/__init__.py +0 -0
- {letta → letta_client}/core/api_error.py +0 -0
- {letta → letta_client}/core/datetime_utils.py +0 -0
- {letta → letta_client}/core/file.py +0 -0
- {letta → letta_client}/core/http_client.py +0 -0
- {letta → letta_client}/core/jsonable_encoder.py +0 -0
- {letta → letta_client}/core/pydantic_utilities.py +0 -0
- {letta → letta_client}/core/query_encoder.py +0 -0
- {letta → letta_client}/core/remove_none_from_dict.py +0 -0
- {letta → letta_client}/core/request_options.py +0 -0
- {letta → letta_client}/core/serialization.py +0 -0
- {letta → letta_client}/core/unchecked_base_model.py +0 -0
- {letta → letta_client}/environment.py +0 -0
- {letta → letta_client}/errors/__init__.py +0 -0
- {letta → letta_client}/errors/conflict_error.py +0 -0
- {letta → letta_client}/errors/internal_server_error.py +0 -0
- {letta → letta_client}/errors/not_found_error.py +0 -0
- {letta → letta_client}/errors/unprocessable_entity_error.py +0 -0
- {letta → letta_client}/health/__init__.py +0 -0
- {letta → letta_client}/jobs/__init__.py +0 -0
- {letta → letta_client}/models/__init__.py +0 -0
- {letta → letta_client}/providers/__init__.py +0 -0
- {letta → letta_client}/py.typed +0 -0
- {letta/sources/files → letta_client/runs}/__init__.py +0 -0
- {letta → letta_client}/sources/__init__.py +0 -0
- {letta/sources/passages → letta_client/sources/files}/__init__.py +0 -0
- {letta/tools → letta_client/sources/passages}/__init__.py +0 -0
- {letta → letta_client}/types/action_model.py +0 -0
- {letta → letta_client}/types/action_parameters_model.py +0 -0
- {letta → letta_client}/types/action_response_model.py +0 -0
- {letta → letta_client}/types/agent_environment_variable.py +0 -0
- {letta → letta_client}/types/agent_state.py +0 -0
- {letta → letta_client}/types/agent_state_tool_rules_item.py +0 -0
- {letta → letta_client}/types/agent_type.py +0 -0
- {letta → letta_client}/types/app_auth_scheme.py +0 -0
- {letta → letta_client}/types/app_auth_scheme_auth_mode.py +0 -0
- {letta → letta_client}/types/app_model.py +0 -0
- {letta → letta_client}/types/archival_memory_summary.py +0 -0
- {letta → letta_client}/types/assistant_file.py +0 -0
- {letta → letta_client}/types/assistant_message_input.py +0 -0
- {letta → letta_client}/types/assistant_message_output.py +0 -0
- {letta → letta_client}/types/auth_request.py +0 -0
- {letta → letta_client}/types/auth_response.py +0 -0
- {letta → letta_client}/types/auth_scheme_field.py +0 -0
- {letta → letta_client}/types/block.py +0 -0
- {letta → letta_client}/types/block_update.py +0 -0
- {letta → letta_client}/types/chat_completion_request.py +0 -0
- {letta → letta_client}/types/chat_completion_request_function_call.py +0 -0
- {letta → letta_client}/types/chat_completion_request_messages_item.py +0 -0
- {letta → letta_client}/types/chat_completion_request_stop.py +0 -0
- {letta → letta_client}/types/chat_completion_request_tool_choice.py +0 -0
- {letta → letta_client}/types/chat_completion_response.py +0 -0
- {letta → letta_client}/types/child_tool_rule.py +0 -0
- {letta → letta_client}/types/choice.py +0 -0
- {letta → letta_client}/types/conditional_tool_rule.py +0 -0
- {letta → letta_client}/types/conflict_error_body.py +0 -0
- {letta → letta_client}/types/context_window_overview.py +0 -0
- {letta → letta_client}/types/create_assistant_file_request.py +0 -0
- {letta → letta_client}/types/create_assistant_request.py +0 -0
- {letta → letta_client}/types/create_block.py +0 -0
- {letta → letta_client}/types/delete_assistant_file_response.py +0 -0
- {letta → letta_client}/types/delete_assistant_response.py +0 -0
- {letta → letta_client}/types/e_2_b_sandbox_config.py +0 -0
- {letta → letta_client}/types/embedding_config.py +0 -0
- {letta → letta_client}/types/embedding_config_embedding_endpoint_type.py +0 -0
- {letta → letta_client}/types/file_metadata.py +0 -0
- {letta → letta_client}/types/function_call_input.py +0 -0
- {letta → letta_client}/types/function_call_output.py +0 -0
- {letta → letta_client}/types/function_schema.py +0 -0
- {letta → letta_client}/types/health.py +0 -0
- {letta → letta_client}/types/http_validation_error.py +0 -0
- {letta → letta_client}/types/init_tool_rule.py +0 -0
- {letta → letta_client}/types/internal_server_error_body.py +0 -0
- {letta → letta_client}/types/job_status.py +0 -0
- {letta → letta_client}/types/letta_request.py +0 -0
- {letta → letta_client}/types/letta_response.py +0 -0
- {letta → letta_client}/types/letta_response_messages_item.py +0 -0
- {letta → letta_client}/types/letta_schemas_letta_message_tool_call.py +0 -0
- {letta → letta_client}/types/letta_schemas_message_message.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_request_tool.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_request_tool_call.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_request_tool_call_function.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_response_message.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_response_tool_call.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completions_tool_call_function.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completions_tool_call_input.py +0 -0
- {letta → letta_client}/types/letta_schemas_openai_chat_completions_tool_call_output.py +0 -0
- {letta → letta_client}/types/letta_usage_statistics.py +0 -0
- {letta → letta_client}/types/llm_config.py +0 -0
- {letta → letta_client}/types/llm_config_model_endpoint_type.py +0 -0
- {letta → letta_client}/types/local_sandbox_config.py +0 -0
- {letta → letta_client}/types/log_prob_token.py +0 -0
- {letta → letta_client}/types/memory.py +0 -0
- {letta → letta_client}/types/message_content_log_prob.py +0 -0
- {letta → letta_client}/types/message_create.py +0 -0
- {letta → letta_client}/types/message_create_role.py +0 -0
- {letta → letta_client}/types/message_role.py +0 -0
- {letta → letta_client}/types/not_found_error_body.py +0 -0
- {letta → letta_client}/types/not_found_error_body_message.py +0 -0
- {letta → letta_client}/types/open_ai_assistant.py +0 -0
- {letta → letta_client}/types/organization.py +0 -0
- {letta → letta_client}/types/organization_create.py +0 -0
- {letta → letta_client}/types/passage.py +0 -0
- {letta → letta_client}/types/provider.py +0 -0
- {letta → letta_client}/types/reasoning_message.py +0 -0
- {letta → letta_client}/types/recall_memory_summary.py +0 -0
- {letta → letta_client}/types/response_format.py +0 -0
- {letta → letta_client}/types/sandbox_config.py +0 -0
- {letta → letta_client}/types/sandbox_config_create.py +0 -0
- {letta → letta_client}/types/sandbox_config_create_config.py +0 -0
- {letta → letta_client}/types/sandbox_config_update.py +0 -0
- {letta → letta_client}/types/sandbox_config_update_config.py +0 -0
- {letta → letta_client}/types/sandbox_environment_variable.py +0 -0
- {letta → letta_client}/types/sandbox_environment_variable_create.py +0 -0
- {letta → letta_client}/types/sandbox_environment_variable_update.py +0 -0
- {letta → letta_client}/types/sandbox_type.py +0 -0
- {letta → letta_client}/types/source.py +0 -0
- {letta → letta_client}/types/system_message_input.py +0 -0
- {letta → letta_client}/types/system_message_output.py +0 -0
- {letta → letta_client}/types/terminal_tool_rule.py +0 -0
- {letta → letta_client}/types/tool_call_delta.py +0 -0
- {letta → letta_client}/types/tool_call_function_output.py +0 -0
- {letta → letta_client}/types/tool_call_message.py +0 -0
- {letta → letta_client}/types/tool_call_message_tool_call.py +0 -0
- {letta → letta_client}/types/tool_function_choice.py +0 -0
- {letta → letta_client}/types/tool_input.py +0 -0
- {letta → letta_client}/types/tool_message.py +0 -0
- {letta → letta_client}/types/tool_return_message.py +0 -0
- {letta → letta_client}/types/tool_return_message_status.py +0 -0
- {letta → letta_client}/types/tool_rule_type.py +0 -0
- {letta → letta_client}/types/tool_type.py +0 -0
- {letta → letta_client}/types/usage_statistics.py +0 -0
- {letta → letta_client}/types/user.py +0 -0
- {letta → letta_client}/types/user_create.py +0 -0
- {letta → letta_client}/types/user_message_input.py +0 -0
- {letta → letta_client}/types/user_message_input_content.py +0 -0
- {letta → letta_client}/types/user_message_output.py +0 -0
- {letta → letta_client}/types/user_update.py +0 -0
- {letta → letta_client}/types/validation_error.py +0 -0
- {letta → letta_client}/types/validation_error_loc_item.py +0 -0
- {letta → letta_client}/version.py +0 -0
- {letta_client-0.1.9.dist-info → letta_client-0.1.11.dist-info}/WHEEL +0 -0
|
@@ -46,7 +46,7 @@ class SourcesClient:
|
|
|
46
46
|
|
|
47
47
|
Examples
|
|
48
48
|
--------
|
|
49
|
-
from
|
|
49
|
+
from letta_client import Letta
|
|
50
50
|
|
|
51
51
|
client = Letta(
|
|
52
52
|
token="YOUR_TOKEN",
|
|
@@ -104,7 +104,7 @@ class SourcesClient:
|
|
|
104
104
|
|
|
105
105
|
Examples
|
|
106
106
|
--------
|
|
107
|
-
from
|
|
107
|
+
from letta_client import Letta
|
|
108
108
|
|
|
109
109
|
client = Letta(
|
|
110
110
|
token="YOUR_TOKEN",
|
|
@@ -181,7 +181,7 @@ class SourcesClient:
|
|
|
181
181
|
|
|
182
182
|
Examples
|
|
183
183
|
--------
|
|
184
|
-
from
|
|
184
|
+
from letta_client import Letta
|
|
185
185
|
|
|
186
186
|
client = Letta(
|
|
187
187
|
token="YOUR_TOKEN",
|
|
@@ -249,7 +249,7 @@ class SourcesClient:
|
|
|
249
249
|
|
|
250
250
|
Examples
|
|
251
251
|
--------
|
|
252
|
-
from
|
|
252
|
+
from letta_client import Letta
|
|
253
253
|
|
|
254
254
|
client = Letta(
|
|
255
255
|
token="YOUR_TOKEN",
|
|
@@ -303,7 +303,7 @@ class SourcesClient:
|
|
|
303
303
|
|
|
304
304
|
Examples
|
|
305
305
|
--------
|
|
306
|
-
from
|
|
306
|
+
from letta_client import Letta
|
|
307
307
|
|
|
308
308
|
client = Letta(
|
|
309
309
|
token="YOUR_TOKEN",
|
|
@@ -375,7 +375,7 @@ class SourcesClient:
|
|
|
375
375
|
|
|
376
376
|
Examples
|
|
377
377
|
--------
|
|
378
|
-
from
|
|
378
|
+
from letta_client import Letta
|
|
379
379
|
|
|
380
380
|
client = Letta(
|
|
381
381
|
token="YOUR_TOKEN",
|
|
@@ -448,7 +448,7 @@ class SourcesClient:
|
|
|
448
448
|
|
|
449
449
|
Examples
|
|
450
450
|
--------
|
|
451
|
-
from
|
|
451
|
+
from letta_client import Letta
|
|
452
452
|
|
|
453
453
|
client = Letta(
|
|
454
454
|
token="YOUR_TOKEN",
|
|
@@ -513,7 +513,7 @@ class SourcesClient:
|
|
|
513
513
|
|
|
514
514
|
Examples
|
|
515
515
|
--------
|
|
516
|
-
from
|
|
516
|
+
from letta_client import Letta
|
|
517
517
|
|
|
518
518
|
client = Letta(
|
|
519
519
|
token="YOUR_TOKEN",
|
|
@@ -582,7 +582,7 @@ class AsyncSourcesClient:
|
|
|
582
582
|
--------
|
|
583
583
|
import asyncio
|
|
584
584
|
|
|
585
|
-
from
|
|
585
|
+
from letta_client import AsyncLetta
|
|
586
586
|
|
|
587
587
|
client = AsyncLetta(
|
|
588
588
|
token="YOUR_TOKEN",
|
|
@@ -648,7 +648,7 @@ class AsyncSourcesClient:
|
|
|
648
648
|
--------
|
|
649
649
|
import asyncio
|
|
650
650
|
|
|
651
|
-
from
|
|
651
|
+
from letta_client import AsyncLetta
|
|
652
652
|
|
|
653
653
|
client = AsyncLetta(
|
|
654
654
|
token="YOUR_TOKEN",
|
|
@@ -733,7 +733,7 @@ class AsyncSourcesClient:
|
|
|
733
733
|
--------
|
|
734
734
|
import asyncio
|
|
735
735
|
|
|
736
|
-
from
|
|
736
|
+
from letta_client import AsyncLetta
|
|
737
737
|
|
|
738
738
|
client = AsyncLetta(
|
|
739
739
|
token="YOUR_TOKEN",
|
|
@@ -809,7 +809,7 @@ class AsyncSourcesClient:
|
|
|
809
809
|
--------
|
|
810
810
|
import asyncio
|
|
811
811
|
|
|
812
|
-
from
|
|
812
|
+
from letta_client import AsyncLetta
|
|
813
813
|
|
|
814
814
|
client = AsyncLetta(
|
|
815
815
|
token="YOUR_TOKEN",
|
|
@@ -871,7 +871,7 @@ class AsyncSourcesClient:
|
|
|
871
871
|
--------
|
|
872
872
|
import asyncio
|
|
873
873
|
|
|
874
|
-
from
|
|
874
|
+
from letta_client import AsyncLetta
|
|
875
875
|
|
|
876
876
|
client = AsyncLetta(
|
|
877
877
|
token="YOUR_TOKEN",
|
|
@@ -951,7 +951,7 @@ class AsyncSourcesClient:
|
|
|
951
951
|
--------
|
|
952
952
|
import asyncio
|
|
953
953
|
|
|
954
|
-
from
|
|
954
|
+
from letta_client import AsyncLetta
|
|
955
955
|
|
|
956
956
|
client = AsyncLetta(
|
|
957
957
|
token="YOUR_TOKEN",
|
|
@@ -1032,7 +1032,7 @@ class AsyncSourcesClient:
|
|
|
1032
1032
|
--------
|
|
1033
1033
|
import asyncio
|
|
1034
1034
|
|
|
1035
|
-
from
|
|
1035
|
+
from letta_client import AsyncLetta
|
|
1036
1036
|
|
|
1037
1037
|
client = AsyncLetta(
|
|
1038
1038
|
token="YOUR_TOKEN",
|
|
@@ -1105,7 +1105,7 @@ class AsyncSourcesClient:
|
|
|
1105
1105
|
--------
|
|
1106
1106
|
import asyncio
|
|
1107
1107
|
|
|
1108
|
-
from
|
|
1108
|
+
from letta_client import AsyncLetta
|
|
1109
1109
|
|
|
1110
1110
|
client = AsyncLetta(
|
|
1111
1111
|
token="YOUR_TOKEN",
|
|
@@ -45,7 +45,7 @@ class FilesClient:
|
|
|
45
45
|
|
|
46
46
|
Examples
|
|
47
47
|
--------
|
|
48
|
-
from
|
|
48
|
+
from letta_client import Letta
|
|
49
49
|
|
|
50
50
|
client = Letta(
|
|
51
51
|
token="YOUR_TOKEN",
|
|
@@ -119,7 +119,7 @@ class FilesClient:
|
|
|
119
119
|
|
|
120
120
|
Examples
|
|
121
121
|
--------
|
|
122
|
-
from
|
|
122
|
+
from letta_client import Letta
|
|
123
123
|
|
|
124
124
|
client = Letta(
|
|
125
125
|
token="YOUR_TOKEN",
|
|
@@ -180,7 +180,7 @@ class FilesClient:
|
|
|
180
180
|
|
|
181
181
|
Examples
|
|
182
182
|
--------
|
|
183
|
-
from
|
|
183
|
+
from letta_client import Letta
|
|
184
184
|
|
|
185
185
|
client = Letta(
|
|
186
186
|
token="YOUR_TOKEN",
|
|
@@ -243,7 +243,7 @@ class AsyncFilesClient:
|
|
|
243
243
|
--------
|
|
244
244
|
import asyncio
|
|
245
245
|
|
|
246
|
-
from
|
|
246
|
+
from letta_client import AsyncLetta
|
|
247
247
|
|
|
248
248
|
client = AsyncLetta(
|
|
249
249
|
token="YOUR_TOKEN",
|
|
@@ -325,7 +325,7 @@ class AsyncFilesClient:
|
|
|
325
325
|
--------
|
|
326
326
|
import asyncio
|
|
327
327
|
|
|
328
|
-
from
|
|
328
|
+
from letta_client import AsyncLetta
|
|
329
329
|
|
|
330
330
|
client = AsyncLetta(
|
|
331
331
|
token="YOUR_TOKEN",
|
|
@@ -396,7 +396,7 @@ class AsyncFilesClient:
|
|
|
396
396
|
--------
|
|
397
397
|
import asyncio
|
|
398
398
|
|
|
399
|
-
from
|
|
399
|
+
from letta_client import AsyncLetta
|
|
400
400
|
|
|
401
401
|
client = AsyncLetta(
|
|
402
402
|
token="YOUR_TOKEN",
|
|
@@ -35,7 +35,7 @@ class PassagesClient:
|
|
|
35
35
|
|
|
36
36
|
Examples
|
|
37
37
|
--------
|
|
38
|
-
from
|
|
38
|
+
from letta_client import Letta
|
|
39
39
|
|
|
40
40
|
client = Letta(
|
|
41
41
|
token="YOUR_TOKEN",
|
|
@@ -100,7 +100,7 @@ class AsyncPassagesClient:
|
|
|
100
100
|
--------
|
|
101
101
|
import asyncio
|
|
102
102
|
|
|
103
|
-
from
|
|
103
|
+
from letta_client import AsyncLetta
|
|
104
104
|
|
|
105
105
|
client = AsyncLetta(
|
|
106
106
|
token="YOUR_TOKEN",
|
|
@@ -41,7 +41,7 @@ class ToolsClient:
|
|
|
41
41
|
|
|
42
42
|
Examples
|
|
43
43
|
--------
|
|
44
|
-
from
|
|
44
|
+
from letta_client import Letta
|
|
45
45
|
|
|
46
46
|
client = Letta(
|
|
47
47
|
token="YOUR_TOKEN",
|
|
@@ -99,7 +99,7 @@ class ToolsClient:
|
|
|
99
99
|
|
|
100
100
|
Examples
|
|
101
101
|
--------
|
|
102
|
-
from
|
|
102
|
+
from letta_client import Letta
|
|
103
103
|
|
|
104
104
|
client = Letta(
|
|
105
105
|
token="YOUR_TOKEN",
|
|
@@ -144,7 +144,6 @@ class ToolsClient:
|
|
|
144
144
|
description: typing.Optional[str] = OMIT,
|
|
145
145
|
name: typing.Optional[str] = OMIT,
|
|
146
146
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
147
|
-
module: typing.Optional[str] = OMIT,
|
|
148
147
|
source_code: typing.Optional[str] = OMIT,
|
|
149
148
|
source_type: typing.Optional[str] = OMIT,
|
|
150
149
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
@@ -167,9 +166,6 @@ class ToolsClient:
|
|
|
167
166
|
tags : typing.Optional[typing.Sequence[str]]
|
|
168
167
|
Metadata tags.
|
|
169
168
|
|
|
170
|
-
module : typing.Optional[str]
|
|
171
|
-
The source code of the function.
|
|
172
|
-
|
|
173
169
|
source_code : typing.Optional[str]
|
|
174
170
|
The source code of the function.
|
|
175
171
|
|
|
@@ -192,7 +188,7 @@ class ToolsClient:
|
|
|
192
188
|
|
|
193
189
|
Examples
|
|
194
190
|
--------
|
|
195
|
-
from
|
|
191
|
+
from letta_client import Letta
|
|
196
192
|
|
|
197
193
|
client = Letta(
|
|
198
194
|
token="YOUR_TOKEN",
|
|
@@ -208,7 +204,6 @@ class ToolsClient:
|
|
|
208
204
|
"description": description,
|
|
209
205
|
"name": name,
|
|
210
206
|
"tags": tags,
|
|
211
|
-
"module": module,
|
|
212
207
|
"source_code": source_code,
|
|
213
208
|
"source_type": source_type,
|
|
214
209
|
"json_schema": json_schema,
|
|
@@ -262,7 +257,7 @@ class ToolsClient:
|
|
|
262
257
|
|
|
263
258
|
Examples
|
|
264
259
|
--------
|
|
265
|
-
from
|
|
260
|
+
from letta_client import Letta
|
|
266
261
|
|
|
267
262
|
client = Letta(
|
|
268
263
|
token="YOUR_TOKEN",
|
|
@@ -326,7 +321,7 @@ class ToolsClient:
|
|
|
326
321
|
|
|
327
322
|
Examples
|
|
328
323
|
--------
|
|
329
|
-
from
|
|
324
|
+
from letta_client import Letta
|
|
330
325
|
|
|
331
326
|
client = Letta(
|
|
332
327
|
token="YOUR_TOKEN",
|
|
@@ -373,7 +368,6 @@ class ToolsClient:
|
|
|
373
368
|
name: typing.Optional[str] = OMIT,
|
|
374
369
|
description: typing.Optional[str] = OMIT,
|
|
375
370
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
376
|
-
module: typing.Optional[str] = OMIT,
|
|
377
371
|
source_type: typing.Optional[str] = OMIT,
|
|
378
372
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
379
373
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
@@ -396,9 +390,6 @@ class ToolsClient:
|
|
|
396
390
|
tags : typing.Optional[typing.Sequence[str]]
|
|
397
391
|
Metadata tags.
|
|
398
392
|
|
|
399
|
-
module : typing.Optional[str]
|
|
400
|
-
The source code of the function.
|
|
401
|
-
|
|
402
393
|
source_type : typing.Optional[str]
|
|
403
394
|
The source type of the function.
|
|
404
395
|
|
|
@@ -418,7 +409,7 @@ class ToolsClient:
|
|
|
418
409
|
|
|
419
410
|
Examples
|
|
420
411
|
--------
|
|
421
|
-
from
|
|
412
|
+
from letta_client import Letta
|
|
422
413
|
|
|
423
414
|
client = Letta(
|
|
424
415
|
token="YOUR_TOKEN",
|
|
@@ -434,7 +425,6 @@ class ToolsClient:
|
|
|
434
425
|
"name": name,
|
|
435
426
|
"description": description,
|
|
436
427
|
"tags": tags,
|
|
437
|
-
"module": module,
|
|
438
428
|
"source_code": source_code,
|
|
439
429
|
"source_type": source_type,
|
|
440
430
|
"json_schema": json_schema,
|
|
@@ -474,7 +464,6 @@ class ToolsClient:
|
|
|
474
464
|
name: typing.Optional[str] = OMIT,
|
|
475
465
|
description: typing.Optional[str] = OMIT,
|
|
476
466
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
477
|
-
module: typing.Optional[str] = OMIT,
|
|
478
467
|
source_type: typing.Optional[str] = OMIT,
|
|
479
468
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
480
469
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
@@ -497,9 +486,6 @@ class ToolsClient:
|
|
|
497
486
|
tags : typing.Optional[typing.Sequence[str]]
|
|
498
487
|
Metadata tags.
|
|
499
488
|
|
|
500
|
-
module : typing.Optional[str]
|
|
501
|
-
The source code of the function.
|
|
502
|
-
|
|
503
489
|
source_type : typing.Optional[str]
|
|
504
490
|
The source type of the function.
|
|
505
491
|
|
|
@@ -519,7 +505,7 @@ class ToolsClient:
|
|
|
519
505
|
|
|
520
506
|
Examples
|
|
521
507
|
--------
|
|
522
|
-
from
|
|
508
|
+
from letta_client import Letta
|
|
523
509
|
|
|
524
510
|
client = Letta(
|
|
525
511
|
token="YOUR_TOKEN",
|
|
@@ -535,7 +521,6 @@ class ToolsClient:
|
|
|
535
521
|
"name": name,
|
|
536
522
|
"description": description,
|
|
537
523
|
"tags": tags,
|
|
538
|
-
"module": module,
|
|
539
524
|
"source_code": source_code,
|
|
540
525
|
"source_type": source_type,
|
|
541
526
|
"json_schema": json_schema,
|
|
@@ -586,7 +571,7 @@ class ToolsClient:
|
|
|
586
571
|
|
|
587
572
|
Examples
|
|
588
573
|
--------
|
|
589
|
-
from
|
|
574
|
+
from letta_client import Letta
|
|
590
575
|
|
|
591
576
|
client = Letta(
|
|
592
577
|
token="YOUR_TOKEN",
|
|
@@ -626,7 +611,7 @@ class ToolsClient:
|
|
|
626
611
|
self,
|
|
627
612
|
*,
|
|
628
613
|
source_code: str,
|
|
629
|
-
args: typing.Dict[str,
|
|
614
|
+
args: typing.Dict[str, typing.Optional[typing.Any]],
|
|
630
615
|
env_vars: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
631
616
|
name: typing.Optional[str] = OMIT,
|
|
632
617
|
source_type: typing.Optional[str] = OMIT,
|
|
@@ -640,7 +625,7 @@ class ToolsClient:
|
|
|
640
625
|
source_code : str
|
|
641
626
|
The source code of the function.
|
|
642
627
|
|
|
643
|
-
args : typing.Dict[str,
|
|
628
|
+
args : typing.Dict[str, typing.Optional[typing.Any]]
|
|
644
629
|
The arguments to pass to the tool.
|
|
645
630
|
|
|
646
631
|
env_vars : typing.Optional[typing.Dict[str, str]]
|
|
@@ -662,7 +647,7 @@ class ToolsClient:
|
|
|
662
647
|
|
|
663
648
|
Examples
|
|
664
649
|
--------
|
|
665
|
-
from
|
|
650
|
+
from letta_client import Letta
|
|
666
651
|
|
|
667
652
|
client = Letta(
|
|
668
653
|
token="YOUR_TOKEN",
|
|
@@ -728,7 +713,7 @@ class ToolsClient:
|
|
|
728
713
|
|
|
729
714
|
Examples
|
|
730
715
|
--------
|
|
731
|
-
from
|
|
716
|
+
from letta_client import Letta
|
|
732
717
|
|
|
733
718
|
client = Letta(
|
|
734
719
|
token="YOUR_TOKEN",
|
|
@@ -784,7 +769,7 @@ class ToolsClient:
|
|
|
784
769
|
|
|
785
770
|
Examples
|
|
786
771
|
--------
|
|
787
|
-
from
|
|
772
|
+
from letta_client import Letta
|
|
788
773
|
|
|
789
774
|
client = Letta(
|
|
790
775
|
token="YOUR_TOKEN",
|
|
@@ -842,7 +827,7 @@ class ToolsClient:
|
|
|
842
827
|
|
|
843
828
|
Examples
|
|
844
829
|
--------
|
|
845
|
-
from
|
|
830
|
+
from letta_client import Letta
|
|
846
831
|
|
|
847
832
|
client = Letta(
|
|
848
833
|
token="YOUR_TOKEN",
|
|
@@ -907,7 +892,7 @@ class AsyncToolsClient:
|
|
|
907
892
|
--------
|
|
908
893
|
import asyncio
|
|
909
894
|
|
|
910
|
-
from
|
|
895
|
+
from letta_client import AsyncLetta
|
|
911
896
|
|
|
912
897
|
client = AsyncLetta(
|
|
913
898
|
token="YOUR_TOKEN",
|
|
@@ -973,7 +958,7 @@ class AsyncToolsClient:
|
|
|
973
958
|
--------
|
|
974
959
|
import asyncio
|
|
975
960
|
|
|
976
|
-
from
|
|
961
|
+
from letta_client import AsyncLetta
|
|
977
962
|
|
|
978
963
|
client = AsyncLetta(
|
|
979
964
|
token="YOUR_TOKEN",
|
|
@@ -1024,7 +1009,6 @@ class AsyncToolsClient:
|
|
|
1024
1009
|
description: typing.Optional[str] = OMIT,
|
|
1025
1010
|
name: typing.Optional[str] = OMIT,
|
|
1026
1011
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
1027
|
-
module: typing.Optional[str] = OMIT,
|
|
1028
1012
|
source_code: typing.Optional[str] = OMIT,
|
|
1029
1013
|
source_type: typing.Optional[str] = OMIT,
|
|
1030
1014
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
@@ -1047,9 +1031,6 @@ class AsyncToolsClient:
|
|
|
1047
1031
|
tags : typing.Optional[typing.Sequence[str]]
|
|
1048
1032
|
Metadata tags.
|
|
1049
1033
|
|
|
1050
|
-
module : typing.Optional[str]
|
|
1051
|
-
The source code of the function.
|
|
1052
|
-
|
|
1053
1034
|
source_code : typing.Optional[str]
|
|
1054
1035
|
The source code of the function.
|
|
1055
1036
|
|
|
@@ -1074,7 +1055,7 @@ class AsyncToolsClient:
|
|
|
1074
1055
|
--------
|
|
1075
1056
|
import asyncio
|
|
1076
1057
|
|
|
1077
|
-
from
|
|
1058
|
+
from letta_client import AsyncLetta
|
|
1078
1059
|
|
|
1079
1060
|
client = AsyncLetta(
|
|
1080
1061
|
token="YOUR_TOKEN",
|
|
@@ -1096,7 +1077,6 @@ class AsyncToolsClient:
|
|
|
1096
1077
|
"description": description,
|
|
1097
1078
|
"name": name,
|
|
1098
1079
|
"tags": tags,
|
|
1099
|
-
"module": module,
|
|
1100
1080
|
"source_code": source_code,
|
|
1101
1081
|
"source_type": source_type,
|
|
1102
1082
|
"json_schema": json_schema,
|
|
@@ -1152,7 +1132,7 @@ class AsyncToolsClient:
|
|
|
1152
1132
|
--------
|
|
1153
1133
|
import asyncio
|
|
1154
1134
|
|
|
1155
|
-
from
|
|
1135
|
+
from letta_client import AsyncLetta
|
|
1156
1136
|
|
|
1157
1137
|
client = AsyncLetta(
|
|
1158
1138
|
token="YOUR_TOKEN",
|
|
@@ -1224,7 +1204,7 @@ class AsyncToolsClient:
|
|
|
1224
1204
|
--------
|
|
1225
1205
|
import asyncio
|
|
1226
1206
|
|
|
1227
|
-
from
|
|
1207
|
+
from letta_client import AsyncLetta
|
|
1228
1208
|
|
|
1229
1209
|
client = AsyncLetta(
|
|
1230
1210
|
token="YOUR_TOKEN",
|
|
@@ -1277,7 +1257,6 @@ class AsyncToolsClient:
|
|
|
1277
1257
|
name: typing.Optional[str] = OMIT,
|
|
1278
1258
|
description: typing.Optional[str] = OMIT,
|
|
1279
1259
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
1280
|
-
module: typing.Optional[str] = OMIT,
|
|
1281
1260
|
source_type: typing.Optional[str] = OMIT,
|
|
1282
1261
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1283
1262
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
@@ -1300,9 +1279,6 @@ class AsyncToolsClient:
|
|
|
1300
1279
|
tags : typing.Optional[typing.Sequence[str]]
|
|
1301
1280
|
Metadata tags.
|
|
1302
1281
|
|
|
1303
|
-
module : typing.Optional[str]
|
|
1304
|
-
The source code of the function.
|
|
1305
|
-
|
|
1306
1282
|
source_type : typing.Optional[str]
|
|
1307
1283
|
The source type of the function.
|
|
1308
1284
|
|
|
@@ -1324,7 +1300,7 @@ class AsyncToolsClient:
|
|
|
1324
1300
|
--------
|
|
1325
1301
|
import asyncio
|
|
1326
1302
|
|
|
1327
|
-
from
|
|
1303
|
+
from letta_client import AsyncLetta
|
|
1328
1304
|
|
|
1329
1305
|
client = AsyncLetta(
|
|
1330
1306
|
token="YOUR_TOKEN",
|
|
@@ -1346,7 +1322,6 @@ class AsyncToolsClient:
|
|
|
1346
1322
|
"name": name,
|
|
1347
1323
|
"description": description,
|
|
1348
1324
|
"tags": tags,
|
|
1349
|
-
"module": module,
|
|
1350
1325
|
"source_code": source_code,
|
|
1351
1326
|
"source_type": source_type,
|
|
1352
1327
|
"json_schema": json_schema,
|
|
@@ -1386,7 +1361,6 @@ class AsyncToolsClient:
|
|
|
1386
1361
|
name: typing.Optional[str] = OMIT,
|
|
1387
1362
|
description: typing.Optional[str] = OMIT,
|
|
1388
1363
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
1389
|
-
module: typing.Optional[str] = OMIT,
|
|
1390
1364
|
source_type: typing.Optional[str] = OMIT,
|
|
1391
1365
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1392
1366
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
@@ -1409,9 +1383,6 @@ class AsyncToolsClient:
|
|
|
1409
1383
|
tags : typing.Optional[typing.Sequence[str]]
|
|
1410
1384
|
Metadata tags.
|
|
1411
1385
|
|
|
1412
|
-
module : typing.Optional[str]
|
|
1413
|
-
The source code of the function.
|
|
1414
|
-
|
|
1415
1386
|
source_type : typing.Optional[str]
|
|
1416
1387
|
The source type of the function.
|
|
1417
1388
|
|
|
@@ -1433,7 +1404,7 @@ class AsyncToolsClient:
|
|
|
1433
1404
|
--------
|
|
1434
1405
|
import asyncio
|
|
1435
1406
|
|
|
1436
|
-
from
|
|
1407
|
+
from letta_client import AsyncLetta
|
|
1437
1408
|
|
|
1438
1409
|
client = AsyncLetta(
|
|
1439
1410
|
token="YOUR_TOKEN",
|
|
@@ -1455,7 +1426,6 @@ class AsyncToolsClient:
|
|
|
1455
1426
|
"name": name,
|
|
1456
1427
|
"description": description,
|
|
1457
1428
|
"tags": tags,
|
|
1458
|
-
"module": module,
|
|
1459
1429
|
"source_code": source_code,
|
|
1460
1430
|
"source_type": source_type,
|
|
1461
1431
|
"json_schema": json_schema,
|
|
@@ -1508,7 +1478,7 @@ class AsyncToolsClient:
|
|
|
1508
1478
|
--------
|
|
1509
1479
|
import asyncio
|
|
1510
1480
|
|
|
1511
|
-
from
|
|
1481
|
+
from letta_client import AsyncLetta
|
|
1512
1482
|
|
|
1513
1483
|
client = AsyncLetta(
|
|
1514
1484
|
token="YOUR_TOKEN",
|
|
@@ -1554,7 +1524,7 @@ class AsyncToolsClient:
|
|
|
1554
1524
|
self,
|
|
1555
1525
|
*,
|
|
1556
1526
|
source_code: str,
|
|
1557
|
-
args: typing.Dict[str,
|
|
1527
|
+
args: typing.Dict[str, typing.Optional[typing.Any]],
|
|
1558
1528
|
env_vars: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
1559
1529
|
name: typing.Optional[str] = OMIT,
|
|
1560
1530
|
source_type: typing.Optional[str] = OMIT,
|
|
@@ -1568,7 +1538,7 @@ class AsyncToolsClient:
|
|
|
1568
1538
|
source_code : str
|
|
1569
1539
|
The source code of the function.
|
|
1570
1540
|
|
|
1571
|
-
args : typing.Dict[str,
|
|
1541
|
+
args : typing.Dict[str, typing.Optional[typing.Any]]
|
|
1572
1542
|
The arguments to pass to the tool.
|
|
1573
1543
|
|
|
1574
1544
|
env_vars : typing.Optional[typing.Dict[str, str]]
|
|
@@ -1592,7 +1562,7 @@ class AsyncToolsClient:
|
|
|
1592
1562
|
--------
|
|
1593
1563
|
import asyncio
|
|
1594
1564
|
|
|
1595
|
-
from
|
|
1565
|
+
from letta_client import AsyncLetta
|
|
1596
1566
|
|
|
1597
1567
|
client = AsyncLetta(
|
|
1598
1568
|
token="YOUR_TOKEN",
|
|
@@ -1668,7 +1638,7 @@ class AsyncToolsClient:
|
|
|
1668
1638
|
--------
|
|
1669
1639
|
import asyncio
|
|
1670
1640
|
|
|
1671
|
-
from
|
|
1641
|
+
from letta_client import AsyncLetta
|
|
1672
1642
|
|
|
1673
1643
|
client = AsyncLetta(
|
|
1674
1644
|
token="YOUR_TOKEN",
|
|
@@ -1732,7 +1702,7 @@ class AsyncToolsClient:
|
|
|
1732
1702
|
--------
|
|
1733
1703
|
import asyncio
|
|
1734
1704
|
|
|
1735
|
-
from
|
|
1705
|
+
from letta_client import AsyncLetta
|
|
1736
1706
|
|
|
1737
1707
|
client = AsyncLetta(
|
|
1738
1708
|
token="YOUR_TOKEN",
|
|
@@ -1798,7 +1768,7 @@ class AsyncToolsClient:
|
|
|
1798
1768
|
--------
|
|
1799
1769
|
import asyncio
|
|
1800
1770
|
|
|
1801
|
-
from
|
|
1771
|
+
from letta_client import AsyncLetta
|
|
1802
1772
|
|
|
1803
1773
|
client = AsyncLetta(
|
|
1804
1774
|
token="YOUR_TOKEN",
|
|
@@ -48,6 +48,7 @@ from .init_tool_rule import InitToolRule
|
|
|
48
48
|
from .internal_server_error_body import InternalServerErrorBody
|
|
49
49
|
from .job import Job
|
|
50
50
|
from .job_status import JobStatus
|
|
51
|
+
from .job_type import JobType
|
|
51
52
|
from .letta_request import LettaRequest
|
|
52
53
|
from .letta_response import LettaResponse
|
|
53
54
|
from .letta_response_messages_item import (
|
|
@@ -92,6 +93,7 @@ from .provider import Provider
|
|
|
92
93
|
from .reasoning_message import ReasoningMessage
|
|
93
94
|
from .recall_memory_summary import RecallMemorySummary
|
|
94
95
|
from .response_format import ResponseFormat
|
|
96
|
+
from .run import Run
|
|
95
97
|
from .sandbox_config import SandboxConfig
|
|
96
98
|
from .sandbox_config_create import SandboxConfigCreate
|
|
97
99
|
from .sandbox_config_create_config import SandboxConfigCreateConfig
|
|
@@ -176,6 +178,7 @@ __all__ = [
|
|
|
176
178
|
"InternalServerErrorBody",
|
|
177
179
|
"Job",
|
|
178
180
|
"JobStatus",
|
|
181
|
+
"JobType",
|
|
179
182
|
"LettaRequest",
|
|
180
183
|
"LettaResponse",
|
|
181
184
|
"LettaResponseMessagesItem",
|
|
@@ -216,6 +219,7 @@ __all__ = [
|
|
|
216
219
|
"ReasoningMessage",
|
|
217
220
|
"RecallMemorySummary",
|
|
218
221
|
"ResponseFormat",
|
|
222
|
+
"Run",
|
|
219
223
|
"SandboxConfig",
|
|
220
224
|
"SandboxConfigCreate",
|
|
221
225
|
"SandboxConfigCreateConfig",
|
|
@@ -7,6 +7,7 @@ import datetime as dt
|
|
|
7
7
|
from .job_status import JobStatus
|
|
8
8
|
import typing_extensions
|
|
9
9
|
from ..core.serialization import FieldMetadata
|
|
10
|
+
from .job_type import JobType
|
|
10
11
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
11
12
|
|
|
12
13
|
|
|
@@ -59,6 +60,11 @@ class Job(UncheckedBaseModel):
|
|
|
59
60
|
The metadata of the job.
|
|
60
61
|
"""
|
|
61
62
|
|
|
63
|
+
job_type: typing.Optional[JobType] = pydantic.Field(default=None)
|
|
64
|
+
"""
|
|
65
|
+
The type of the job.
|
|
66
|
+
"""
|
|
67
|
+
|
|
62
68
|
id: typing.Optional[str] = pydantic.Field(default=None)
|
|
63
69
|
"""
|
|
64
70
|
The human-friendly ID of the Job
|
|
@@ -39,11 +39,6 @@ class LettaSchemasToolTool(UncheckedBaseModel):
|
|
|
39
39
|
The type of the source code.
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
|
-
module: typing.Optional[str] = pydantic.Field(default=None)
|
|
43
|
-
"""
|
|
44
|
-
The module of the function.
|
|
45
|
-
"""
|
|
46
|
-
|
|
47
42
|
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
48
43
|
"""
|
|
49
44
|
The name of the function.
|