letta-client 0.1.9__py3-none-any.whl → 0.1.10__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 +12 -12
- {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 +6 -6
- {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 -28
- {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_client/types/run.py +77 -0
- {letta_client-0.1.9.dist-info → letta_client-0.1.10.dist-info}/METADATA +7 -7
- letta_client-0.1.10.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_schemas_tool_tool.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_create.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.10.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",
|
|
@@ -192,7 +192,7 @@ class ToolsClient:
|
|
|
192
192
|
|
|
193
193
|
Examples
|
|
194
194
|
--------
|
|
195
|
-
from
|
|
195
|
+
from letta_client import Letta
|
|
196
196
|
|
|
197
197
|
client = Letta(
|
|
198
198
|
token="YOUR_TOKEN",
|
|
@@ -262,7 +262,7 @@ class ToolsClient:
|
|
|
262
262
|
|
|
263
263
|
Examples
|
|
264
264
|
--------
|
|
265
|
-
from
|
|
265
|
+
from letta_client import Letta
|
|
266
266
|
|
|
267
267
|
client = Letta(
|
|
268
268
|
token="YOUR_TOKEN",
|
|
@@ -326,7 +326,7 @@ class ToolsClient:
|
|
|
326
326
|
|
|
327
327
|
Examples
|
|
328
328
|
--------
|
|
329
|
-
from
|
|
329
|
+
from letta_client import Letta
|
|
330
330
|
|
|
331
331
|
client = Letta(
|
|
332
332
|
token="YOUR_TOKEN",
|
|
@@ -418,7 +418,7 @@ class ToolsClient:
|
|
|
418
418
|
|
|
419
419
|
Examples
|
|
420
420
|
--------
|
|
421
|
-
from
|
|
421
|
+
from letta_client import Letta
|
|
422
422
|
|
|
423
423
|
client = Letta(
|
|
424
424
|
token="YOUR_TOKEN",
|
|
@@ -519,7 +519,7 @@ class ToolsClient:
|
|
|
519
519
|
|
|
520
520
|
Examples
|
|
521
521
|
--------
|
|
522
|
-
from
|
|
522
|
+
from letta_client import Letta
|
|
523
523
|
|
|
524
524
|
client = Letta(
|
|
525
525
|
token="YOUR_TOKEN",
|
|
@@ -586,7 +586,7 @@ class ToolsClient:
|
|
|
586
586
|
|
|
587
587
|
Examples
|
|
588
588
|
--------
|
|
589
|
-
from
|
|
589
|
+
from letta_client import Letta
|
|
590
590
|
|
|
591
591
|
client = Letta(
|
|
592
592
|
token="YOUR_TOKEN",
|
|
@@ -626,7 +626,7 @@ class ToolsClient:
|
|
|
626
626
|
self,
|
|
627
627
|
*,
|
|
628
628
|
source_code: str,
|
|
629
|
-
args: typing.Dict[str,
|
|
629
|
+
args: typing.Dict[str, typing.Optional[typing.Any]],
|
|
630
630
|
env_vars: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
631
631
|
name: typing.Optional[str] = OMIT,
|
|
632
632
|
source_type: typing.Optional[str] = OMIT,
|
|
@@ -640,7 +640,7 @@ class ToolsClient:
|
|
|
640
640
|
source_code : str
|
|
641
641
|
The source code of the function.
|
|
642
642
|
|
|
643
|
-
args : typing.Dict[str,
|
|
643
|
+
args : typing.Dict[str, typing.Optional[typing.Any]]
|
|
644
644
|
The arguments to pass to the tool.
|
|
645
645
|
|
|
646
646
|
env_vars : typing.Optional[typing.Dict[str, str]]
|
|
@@ -662,7 +662,7 @@ class ToolsClient:
|
|
|
662
662
|
|
|
663
663
|
Examples
|
|
664
664
|
--------
|
|
665
|
-
from
|
|
665
|
+
from letta_client import Letta
|
|
666
666
|
|
|
667
667
|
client = Letta(
|
|
668
668
|
token="YOUR_TOKEN",
|
|
@@ -728,7 +728,7 @@ class ToolsClient:
|
|
|
728
728
|
|
|
729
729
|
Examples
|
|
730
730
|
--------
|
|
731
|
-
from
|
|
731
|
+
from letta_client import Letta
|
|
732
732
|
|
|
733
733
|
client = Letta(
|
|
734
734
|
token="YOUR_TOKEN",
|
|
@@ -784,7 +784,7 @@ class ToolsClient:
|
|
|
784
784
|
|
|
785
785
|
Examples
|
|
786
786
|
--------
|
|
787
|
-
from
|
|
787
|
+
from letta_client import Letta
|
|
788
788
|
|
|
789
789
|
client = Letta(
|
|
790
790
|
token="YOUR_TOKEN",
|
|
@@ -842,7 +842,7 @@ class ToolsClient:
|
|
|
842
842
|
|
|
843
843
|
Examples
|
|
844
844
|
--------
|
|
845
|
-
from
|
|
845
|
+
from letta_client import Letta
|
|
846
846
|
|
|
847
847
|
client = Letta(
|
|
848
848
|
token="YOUR_TOKEN",
|
|
@@ -907,7 +907,7 @@ class AsyncToolsClient:
|
|
|
907
907
|
--------
|
|
908
908
|
import asyncio
|
|
909
909
|
|
|
910
|
-
from
|
|
910
|
+
from letta_client import AsyncLetta
|
|
911
911
|
|
|
912
912
|
client = AsyncLetta(
|
|
913
913
|
token="YOUR_TOKEN",
|
|
@@ -973,7 +973,7 @@ class AsyncToolsClient:
|
|
|
973
973
|
--------
|
|
974
974
|
import asyncio
|
|
975
975
|
|
|
976
|
-
from
|
|
976
|
+
from letta_client import AsyncLetta
|
|
977
977
|
|
|
978
978
|
client = AsyncLetta(
|
|
979
979
|
token="YOUR_TOKEN",
|
|
@@ -1074,7 +1074,7 @@ class AsyncToolsClient:
|
|
|
1074
1074
|
--------
|
|
1075
1075
|
import asyncio
|
|
1076
1076
|
|
|
1077
|
-
from
|
|
1077
|
+
from letta_client import AsyncLetta
|
|
1078
1078
|
|
|
1079
1079
|
client = AsyncLetta(
|
|
1080
1080
|
token="YOUR_TOKEN",
|
|
@@ -1152,7 +1152,7 @@ class AsyncToolsClient:
|
|
|
1152
1152
|
--------
|
|
1153
1153
|
import asyncio
|
|
1154
1154
|
|
|
1155
|
-
from
|
|
1155
|
+
from letta_client import AsyncLetta
|
|
1156
1156
|
|
|
1157
1157
|
client = AsyncLetta(
|
|
1158
1158
|
token="YOUR_TOKEN",
|
|
@@ -1224,7 +1224,7 @@ class AsyncToolsClient:
|
|
|
1224
1224
|
--------
|
|
1225
1225
|
import asyncio
|
|
1226
1226
|
|
|
1227
|
-
from
|
|
1227
|
+
from letta_client import AsyncLetta
|
|
1228
1228
|
|
|
1229
1229
|
client = AsyncLetta(
|
|
1230
1230
|
token="YOUR_TOKEN",
|
|
@@ -1324,7 +1324,7 @@ class AsyncToolsClient:
|
|
|
1324
1324
|
--------
|
|
1325
1325
|
import asyncio
|
|
1326
1326
|
|
|
1327
|
-
from
|
|
1327
|
+
from letta_client import AsyncLetta
|
|
1328
1328
|
|
|
1329
1329
|
client = AsyncLetta(
|
|
1330
1330
|
token="YOUR_TOKEN",
|
|
@@ -1433,7 +1433,7 @@ class AsyncToolsClient:
|
|
|
1433
1433
|
--------
|
|
1434
1434
|
import asyncio
|
|
1435
1435
|
|
|
1436
|
-
from
|
|
1436
|
+
from letta_client import AsyncLetta
|
|
1437
1437
|
|
|
1438
1438
|
client = AsyncLetta(
|
|
1439
1439
|
token="YOUR_TOKEN",
|
|
@@ -1508,7 +1508,7 @@ class AsyncToolsClient:
|
|
|
1508
1508
|
--------
|
|
1509
1509
|
import asyncio
|
|
1510
1510
|
|
|
1511
|
-
from
|
|
1511
|
+
from letta_client import AsyncLetta
|
|
1512
1512
|
|
|
1513
1513
|
client = AsyncLetta(
|
|
1514
1514
|
token="YOUR_TOKEN",
|
|
@@ -1554,7 +1554,7 @@ class AsyncToolsClient:
|
|
|
1554
1554
|
self,
|
|
1555
1555
|
*,
|
|
1556
1556
|
source_code: str,
|
|
1557
|
-
args: typing.Dict[str,
|
|
1557
|
+
args: typing.Dict[str, typing.Optional[typing.Any]],
|
|
1558
1558
|
env_vars: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
1559
1559
|
name: typing.Optional[str] = OMIT,
|
|
1560
1560
|
source_type: typing.Optional[str] = OMIT,
|
|
@@ -1568,7 +1568,7 @@ class AsyncToolsClient:
|
|
|
1568
1568
|
source_code : str
|
|
1569
1569
|
The source code of the function.
|
|
1570
1570
|
|
|
1571
|
-
args : typing.Dict[str,
|
|
1571
|
+
args : typing.Dict[str, typing.Optional[typing.Any]]
|
|
1572
1572
|
The arguments to pass to the tool.
|
|
1573
1573
|
|
|
1574
1574
|
env_vars : typing.Optional[typing.Dict[str, str]]
|
|
@@ -1592,7 +1592,7 @@ class AsyncToolsClient:
|
|
|
1592
1592
|
--------
|
|
1593
1593
|
import asyncio
|
|
1594
1594
|
|
|
1595
|
-
from
|
|
1595
|
+
from letta_client import AsyncLetta
|
|
1596
1596
|
|
|
1597
1597
|
client = AsyncLetta(
|
|
1598
1598
|
token="YOUR_TOKEN",
|
|
@@ -1668,7 +1668,7 @@ class AsyncToolsClient:
|
|
|
1668
1668
|
--------
|
|
1669
1669
|
import asyncio
|
|
1670
1670
|
|
|
1671
|
-
from
|
|
1671
|
+
from letta_client import AsyncLetta
|
|
1672
1672
|
|
|
1673
1673
|
client = AsyncLetta(
|
|
1674
1674
|
token="YOUR_TOKEN",
|
|
@@ -1732,7 +1732,7 @@ class AsyncToolsClient:
|
|
|
1732
1732
|
--------
|
|
1733
1733
|
import asyncio
|
|
1734
1734
|
|
|
1735
|
-
from
|
|
1735
|
+
from letta_client import AsyncLetta
|
|
1736
1736
|
|
|
1737
1737
|
client = AsyncLetta(
|
|
1738
1738
|
token="YOUR_TOKEN",
|
|
@@ -1798,7 +1798,7 @@ class AsyncToolsClient:
|
|
|
1798
1798
|
--------
|
|
1799
1799
|
import asyncio
|
|
1800
1800
|
|
|
1801
|
-
from
|
|
1801
|
+
from letta_client import AsyncLetta
|
|
1802
1802
|
|
|
1803
1803
|
client = AsyncLetta(
|
|
1804
1804
|
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
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
import datetime as dt
|
|
7
|
+
from .job_status import JobStatus
|
|
8
|
+
import typing_extensions
|
|
9
|
+
from ..core.serialization import FieldMetadata
|
|
10
|
+
from .job_type import JobType
|
|
11
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Run(UncheckedBaseModel):
|
|
15
|
+
"""
|
|
16
|
+
Representation of a run, which is a job with a 'run' prefix in its ID.
|
|
17
|
+
Inherits all fields and behavior from Job except for the ID prefix.
|
|
18
|
+
|
|
19
|
+
Parameters:
|
|
20
|
+
id (str): The unique identifier of the run (prefixed with 'run-').
|
|
21
|
+
status (JobStatus): The status of the run.
|
|
22
|
+
created_at (datetime): The unix timestamp of when the run was created.
|
|
23
|
+
completed_at (datetime): The unix timestamp of when the run was completed.
|
|
24
|
+
user_id (str): The unique identifier of the user associated with the run.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
The id of the user that made this object.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
last_updated_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
The id of the user that made this object.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
38
|
+
"""
|
|
39
|
+
The timestamp when the object was created.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
43
|
+
"""
|
|
44
|
+
The timestamp when the object was last updated.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
status: typing.Optional[JobStatus] = pydantic.Field(default=None)
|
|
48
|
+
"""
|
|
49
|
+
The status of the job.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
53
|
+
"""
|
|
54
|
+
The unix timestamp of when the job was completed.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
metadata: typing_extensions.Annotated[
|
|
58
|
+
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="metadata_")
|
|
59
|
+
] = pydantic.Field(default=None)
|
|
60
|
+
"""
|
|
61
|
+
The metadata of the job.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
job_type: typing.Optional[JobType] = None
|
|
65
|
+
id: typing.Optional[str] = pydantic.Field(default=None)
|
|
66
|
+
"""
|
|
67
|
+
The human-friendly ID of the Run
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
if IS_PYDANTIC_V2:
|
|
71
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
72
|
+
else:
|
|
73
|
+
|
|
74
|
+
class Config:
|
|
75
|
+
frozen = True
|
|
76
|
+
smart_union = True
|
|
77
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: letta-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.10
|
|
4
4
|
Summary:
|
|
5
5
|
Requires-Python: >=3.8,<4.0
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -47,7 +47,7 @@ A full reference for this library is available [here](./reference.md).
|
|
|
47
47
|
Instantiate and use the client with the following:
|
|
48
48
|
|
|
49
49
|
```python
|
|
50
|
-
from
|
|
50
|
+
from letta_client import Letta
|
|
51
51
|
|
|
52
52
|
client = Letta(
|
|
53
53
|
token="YOUR_TOKEN",
|
|
@@ -64,7 +64,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
|
|
|
64
64
|
```python
|
|
65
65
|
import asyncio
|
|
66
66
|
|
|
67
|
-
from
|
|
67
|
+
from letta_client import AsyncLetta
|
|
68
68
|
|
|
69
69
|
client = AsyncLetta(
|
|
70
70
|
token="YOUR_TOKEN",
|
|
@@ -86,7 +86,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
|
|
|
86
86
|
will be thrown.
|
|
87
87
|
|
|
88
88
|
```python
|
|
89
|
-
from
|
|
89
|
+
from letta_client.core.api_error import ApiError
|
|
90
90
|
|
|
91
91
|
try:
|
|
92
92
|
client.tools.create(...)
|
|
@@ -100,7 +100,7 @@ except ApiError as e:
|
|
|
100
100
|
The SDK supports streaming responses, as well, the response will be a generator that you can loop over.
|
|
101
101
|
|
|
102
102
|
```python
|
|
103
|
-
from
|
|
103
|
+
from letta_client import Letta, MessageCreate
|
|
104
104
|
|
|
105
105
|
client = Letta(
|
|
106
106
|
token="YOUR_TOKEN",
|
|
@@ -146,7 +146,7 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o
|
|
|
146
146
|
|
|
147
147
|
```python
|
|
148
148
|
|
|
149
|
-
from
|
|
149
|
+
from letta_client import Letta
|
|
150
150
|
|
|
151
151
|
client = Letta(
|
|
152
152
|
...,
|
|
@@ -166,7 +166,7 @@ You can override the `httpx` client to customize it for your use-case. Some comm
|
|
|
166
166
|
and transports.
|
|
167
167
|
```python
|
|
168
168
|
import httpx
|
|
169
|
-
from
|
|
169
|
+
from letta_client import Letta
|
|
170
170
|
|
|
171
171
|
client = Letta(
|
|
172
172
|
...,
|