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
|
@@ -49,6 +49,7 @@ from .types import (
|
|
|
49
49
|
InternalServerErrorBody,
|
|
50
50
|
Job,
|
|
51
51
|
JobStatus,
|
|
52
|
+
JobType,
|
|
52
53
|
LettaRequest,
|
|
53
54
|
LettaResponse,
|
|
54
55
|
LettaResponseMessagesItem,
|
|
@@ -89,6 +90,7 @@ from .types import (
|
|
|
89
90
|
ReasoningMessage,
|
|
90
91
|
RecallMemorySummary,
|
|
91
92
|
ResponseFormat,
|
|
93
|
+
Run,
|
|
92
94
|
SandboxConfig,
|
|
93
95
|
SandboxConfigCreate,
|
|
94
96
|
SandboxConfigCreateConfig,
|
|
@@ -125,7 +127,7 @@ from .types import (
|
|
|
125
127
|
ValidationErrorLocItem,
|
|
126
128
|
)
|
|
127
129
|
from .errors import ConflictError, InternalServerError, NotFoundError, UnprocessableEntityError
|
|
128
|
-
from . import agents, blocks, health, jobs, models, providers, sources, tools
|
|
130
|
+
from . import agents, blocks, health, jobs, models, providers, runs, sources, tools
|
|
129
131
|
from .agents import (
|
|
130
132
|
AgentsSearchRequestCombinator,
|
|
131
133
|
AgentsSearchRequestSearchItem,
|
|
@@ -209,6 +211,7 @@ __all__ = [
|
|
|
209
211
|
"InternalServerErrorBody",
|
|
210
212
|
"Job",
|
|
211
213
|
"JobStatus",
|
|
214
|
+
"JobType",
|
|
212
215
|
"Letta",
|
|
213
216
|
"LettaEnvironment",
|
|
214
217
|
"LettaRequest",
|
|
@@ -252,6 +255,7 @@ __all__ = [
|
|
|
252
255
|
"ReasoningMessage",
|
|
253
256
|
"RecallMemorySummary",
|
|
254
257
|
"ResponseFormat",
|
|
258
|
+
"Run",
|
|
255
259
|
"SandboxConfig",
|
|
256
260
|
"SandboxConfigCreate",
|
|
257
261
|
"SandboxConfigCreateConfig",
|
|
@@ -295,6 +299,7 @@ __all__ = [
|
|
|
295
299
|
"jobs",
|
|
296
300
|
"models",
|
|
297
301
|
"providers",
|
|
302
|
+
"runs",
|
|
298
303
|
"sources",
|
|
299
304
|
"tools",
|
|
300
305
|
]
|
|
@@ -41,7 +41,7 @@ class ArchivalMemoryClient:
|
|
|
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",
|
|
@@ -114,7 +114,7 @@ class ArchivalMemoryClient:
|
|
|
114
114
|
|
|
115
115
|
Examples
|
|
116
116
|
--------
|
|
117
|
-
from
|
|
117
|
+
from letta_client import Letta
|
|
118
118
|
|
|
119
119
|
client = Letta(
|
|
120
120
|
token="YOUR_TOKEN",
|
|
@@ -180,7 +180,7 @@ class ArchivalMemoryClient:
|
|
|
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",
|
|
@@ -248,7 +248,7 @@ class ArchivalMemoryClient:
|
|
|
248
248
|
|
|
249
249
|
Examples
|
|
250
250
|
--------
|
|
251
|
-
from
|
|
251
|
+
from letta_client import Letta
|
|
252
252
|
|
|
253
253
|
client = Letta(
|
|
254
254
|
token="YOUR_TOKEN",
|
|
@@ -314,7 +314,7 @@ class AsyncArchivalMemoryClient:
|
|
|
314
314
|
--------
|
|
315
315
|
import asyncio
|
|
316
316
|
|
|
317
|
-
from
|
|
317
|
+
from letta_client import AsyncLetta
|
|
318
318
|
|
|
319
319
|
client = AsyncLetta(
|
|
320
320
|
token="YOUR_TOKEN",
|
|
@@ -395,7 +395,7 @@ class AsyncArchivalMemoryClient:
|
|
|
395
395
|
--------
|
|
396
396
|
import asyncio
|
|
397
397
|
|
|
398
|
-
from
|
|
398
|
+
from letta_client import AsyncLetta
|
|
399
399
|
|
|
400
400
|
client = AsyncLetta(
|
|
401
401
|
token="YOUR_TOKEN",
|
|
@@ -469,7 +469,7 @@ class AsyncArchivalMemoryClient:
|
|
|
469
469
|
--------
|
|
470
470
|
import asyncio
|
|
471
471
|
|
|
472
|
-
from
|
|
472
|
+
from letta_client import AsyncLetta
|
|
473
473
|
|
|
474
474
|
client = AsyncLetta(
|
|
475
475
|
token="YOUR_TOKEN",
|
|
@@ -545,7 +545,7 @@ class AsyncArchivalMemoryClient:
|
|
|
545
545
|
--------
|
|
546
546
|
import asyncio
|
|
547
547
|
|
|
548
|
-
from
|
|
548
|
+
from letta_client import AsyncLetta
|
|
549
549
|
|
|
550
550
|
client = AsyncLetta(
|
|
551
551
|
token="YOUR_TOKEN",
|
|
@@ -98,7 +98,7 @@ class AgentsClient:
|
|
|
98
98
|
|
|
99
99
|
Examples
|
|
100
100
|
--------
|
|
101
|
-
from
|
|
101
|
+
from letta_client import Letta
|
|
102
102
|
|
|
103
103
|
client = Letta(
|
|
104
104
|
token="YOUR_TOKEN",
|
|
@@ -257,7 +257,7 @@ class AgentsClient:
|
|
|
257
257
|
|
|
258
258
|
Examples
|
|
259
259
|
--------
|
|
260
|
-
from
|
|
260
|
+
from letta_client import CreateBlock, Letta
|
|
261
261
|
|
|
262
262
|
client = Letta(
|
|
263
263
|
token="YOUR_TOKEN",
|
|
@@ -358,7 +358,7 @@ class AgentsClient:
|
|
|
358
358
|
|
|
359
359
|
Examples
|
|
360
360
|
--------
|
|
361
|
-
from
|
|
361
|
+
from letta_client import Letta
|
|
362
362
|
|
|
363
363
|
client = Letta(
|
|
364
364
|
token="YOUR_TOKEN",
|
|
@@ -416,7 +416,7 @@ class AgentsClient:
|
|
|
416
416
|
|
|
417
417
|
Examples
|
|
418
418
|
--------
|
|
419
|
-
from
|
|
419
|
+
from letta_client import Letta
|
|
420
420
|
|
|
421
421
|
client = Letta(
|
|
422
422
|
token="YOUR_TOKEN",
|
|
@@ -529,7 +529,7 @@ class AgentsClient:
|
|
|
529
529
|
|
|
530
530
|
Examples
|
|
531
531
|
--------
|
|
532
|
-
from
|
|
532
|
+
from letta_client import Letta
|
|
533
533
|
|
|
534
534
|
client = Letta(
|
|
535
535
|
token="YOUR_TOKEN",
|
|
@@ -628,7 +628,7 @@ class AgentsClient:
|
|
|
628
628
|
|
|
629
629
|
Examples
|
|
630
630
|
--------
|
|
631
|
-
from
|
|
631
|
+
from letta_client import Letta
|
|
632
632
|
|
|
633
633
|
client = Letta(
|
|
634
634
|
token="YOUR_TOKEN",
|
|
@@ -718,7 +718,7 @@ class AsyncAgentsClient:
|
|
|
718
718
|
--------
|
|
719
719
|
import asyncio
|
|
720
720
|
|
|
721
|
-
from
|
|
721
|
+
from letta_client import AsyncLetta
|
|
722
722
|
|
|
723
723
|
client = AsyncLetta(
|
|
724
724
|
token="YOUR_TOKEN",
|
|
@@ -885,7 +885,7 @@ class AsyncAgentsClient:
|
|
|
885
885
|
--------
|
|
886
886
|
import asyncio
|
|
887
887
|
|
|
888
|
-
from
|
|
888
|
+
from letta_client import AsyncLetta, CreateBlock
|
|
889
889
|
|
|
890
890
|
client = AsyncLetta(
|
|
891
891
|
token="YOUR_TOKEN",
|
|
@@ -994,7 +994,7 @@ class AsyncAgentsClient:
|
|
|
994
994
|
--------
|
|
995
995
|
import asyncio
|
|
996
996
|
|
|
997
|
-
from
|
|
997
|
+
from letta_client import AsyncLetta
|
|
998
998
|
|
|
999
999
|
client = AsyncLetta(
|
|
1000
1000
|
token="YOUR_TOKEN",
|
|
@@ -1060,7 +1060,7 @@ class AsyncAgentsClient:
|
|
|
1060
1060
|
--------
|
|
1061
1061
|
import asyncio
|
|
1062
1062
|
|
|
1063
|
-
from
|
|
1063
|
+
from letta_client import AsyncLetta
|
|
1064
1064
|
|
|
1065
1065
|
client = AsyncLetta(
|
|
1066
1066
|
token="YOUR_TOKEN",
|
|
@@ -1181,7 +1181,7 @@ class AsyncAgentsClient:
|
|
|
1181
1181
|
--------
|
|
1182
1182
|
import asyncio
|
|
1183
1183
|
|
|
1184
|
-
from
|
|
1184
|
+
from letta_client import AsyncLetta
|
|
1185
1185
|
|
|
1186
1186
|
client = AsyncLetta(
|
|
1187
1187
|
token="YOUR_TOKEN",
|
|
@@ -1288,7 +1288,7 @@ class AsyncAgentsClient:
|
|
|
1288
1288
|
--------
|
|
1289
1289
|
import asyncio
|
|
1290
1290
|
|
|
1291
|
-
from
|
|
1291
|
+
from letta_client import AsyncLetta
|
|
1292
1292
|
|
|
1293
1293
|
client = AsyncLetta(
|
|
1294
1294
|
token="YOUR_TOKEN",
|
|
@@ -35,7 +35,7 @@ class ContextClient:
|
|
|
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 AsyncContextClient:
|
|
|
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",
|
|
@@ -42,7 +42,7 @@ class CoreMemoryClient:
|
|
|
42
42
|
|
|
43
43
|
Examples
|
|
44
44
|
--------
|
|
45
|
-
from
|
|
45
|
+
from letta_client import Letta
|
|
46
46
|
|
|
47
47
|
client = Letta(
|
|
48
48
|
token="YOUR_TOKEN",
|
|
@@ -99,7 +99,7 @@ class CoreMemoryClient:
|
|
|
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",
|
|
@@ -159,7 +159,7 @@ class CoreMemoryClient:
|
|
|
159
159
|
|
|
160
160
|
Examples
|
|
161
161
|
--------
|
|
162
|
-
from
|
|
162
|
+
from letta_client import Letta
|
|
163
163
|
|
|
164
164
|
client = Letta(
|
|
165
165
|
token="YOUR_TOKEN",
|
|
@@ -220,7 +220,7 @@ class CoreMemoryClient:
|
|
|
220
220
|
|
|
221
221
|
Examples
|
|
222
222
|
--------
|
|
223
|
-
from
|
|
223
|
+
from letta_client import Letta
|
|
224
224
|
|
|
225
225
|
client = Letta(
|
|
226
226
|
token="YOUR_TOKEN",
|
|
@@ -313,7 +313,7 @@ class CoreMemoryClient:
|
|
|
313
313
|
|
|
314
314
|
Examples
|
|
315
315
|
--------
|
|
316
|
-
from
|
|
316
|
+
from letta_client import Letta
|
|
317
317
|
|
|
318
318
|
client = Letta(
|
|
319
319
|
token="YOUR_TOKEN",
|
|
@@ -382,7 +382,7 @@ class CoreMemoryClient:
|
|
|
382
382
|
|
|
383
383
|
Examples
|
|
384
384
|
--------
|
|
385
|
-
from
|
|
385
|
+
from letta_client import Letta
|
|
386
386
|
|
|
387
387
|
client = Letta(
|
|
388
388
|
token="YOUR_TOKEN",
|
|
@@ -470,7 +470,7 @@ class CoreMemoryClient:
|
|
|
470
470
|
|
|
471
471
|
Examples
|
|
472
472
|
--------
|
|
473
|
-
from
|
|
473
|
+
from letta_client import Letta
|
|
474
474
|
|
|
475
475
|
client = Letta(
|
|
476
476
|
token="YOUR_TOKEN",
|
|
@@ -547,7 +547,7 @@ class AsyncCoreMemoryClient:
|
|
|
547
547
|
--------
|
|
548
548
|
import asyncio
|
|
549
549
|
|
|
550
|
-
from
|
|
550
|
+
from letta_client import AsyncLetta
|
|
551
551
|
|
|
552
552
|
client = AsyncLetta(
|
|
553
553
|
token="YOUR_TOKEN",
|
|
@@ -612,7 +612,7 @@ class AsyncCoreMemoryClient:
|
|
|
612
612
|
--------
|
|
613
613
|
import asyncio
|
|
614
614
|
|
|
615
|
-
from
|
|
615
|
+
from letta_client import AsyncLetta
|
|
616
616
|
|
|
617
617
|
client = AsyncLetta(
|
|
618
618
|
token="YOUR_TOKEN",
|
|
@@ -680,7 +680,7 @@ class AsyncCoreMemoryClient:
|
|
|
680
680
|
--------
|
|
681
681
|
import asyncio
|
|
682
682
|
|
|
683
|
-
from
|
|
683
|
+
from letta_client import AsyncLetta
|
|
684
684
|
|
|
685
685
|
client = AsyncLetta(
|
|
686
686
|
token="YOUR_TOKEN",
|
|
@@ -749,7 +749,7 @@ class AsyncCoreMemoryClient:
|
|
|
749
749
|
--------
|
|
750
750
|
import asyncio
|
|
751
751
|
|
|
752
|
-
from
|
|
752
|
+
from letta_client import AsyncLetta
|
|
753
753
|
|
|
754
754
|
client = AsyncLetta(
|
|
755
755
|
token="YOUR_TOKEN",
|
|
@@ -850,7 +850,7 @@ class AsyncCoreMemoryClient:
|
|
|
850
850
|
--------
|
|
851
851
|
import asyncio
|
|
852
852
|
|
|
853
|
-
from
|
|
853
|
+
from letta_client import AsyncLetta
|
|
854
854
|
|
|
855
855
|
client = AsyncLetta(
|
|
856
856
|
token="YOUR_TOKEN",
|
|
@@ -927,7 +927,7 @@ class AsyncCoreMemoryClient:
|
|
|
927
927
|
--------
|
|
928
928
|
import asyncio
|
|
929
929
|
|
|
930
|
-
from
|
|
930
|
+
from letta_client import AsyncLetta
|
|
931
931
|
|
|
932
932
|
client = AsyncLetta(
|
|
933
933
|
token="YOUR_TOKEN",
|
|
@@ -1023,7 +1023,7 @@ class AsyncCoreMemoryClient:
|
|
|
1023
1023
|
--------
|
|
1024
1024
|
import asyncio
|
|
1025
1025
|
|
|
1026
|
-
from
|
|
1026
|
+
from letta_client import AsyncLetta
|
|
1027
1027
|
|
|
1028
1028
|
client = AsyncLetta(
|
|
1029
1029
|
token="YOUR_TOKEN",
|
|
@@ -38,7 +38,7 @@ class MemoryVariablesClient:
|
|
|
38
38
|
|
|
39
39
|
Examples
|
|
40
40
|
--------
|
|
41
|
-
from
|
|
41
|
+
from letta_client import Letta
|
|
42
42
|
|
|
43
43
|
client = Letta(
|
|
44
44
|
token="YOUR_TOKEN",
|
|
@@ -105,7 +105,7 @@ class AsyncMemoryVariablesClient:
|
|
|
105
105
|
--------
|
|
106
106
|
import asyncio
|
|
107
107
|
|
|
108
|
-
from
|
|
108
|
+
from letta_client import AsyncLetta
|
|
109
109
|
|
|
110
110
|
client = AsyncLetta(
|
|
111
111
|
token="YOUR_TOKEN",
|
|
@@ -21,7 +21,7 @@ from ...types.letta_schemas_message_message import LettaSchemasMessageMessage
|
|
|
21
21
|
from .types.letta_streaming_response import LettaStreamingResponse
|
|
22
22
|
import httpx_sse
|
|
23
23
|
import json
|
|
24
|
-
from ...types.
|
|
24
|
+
from ...types.run import Run
|
|
25
25
|
from ...core.client_wrapper import AsyncClientWrapper
|
|
26
26
|
|
|
27
27
|
# this is used as the default value for optional parameters
|
|
@@ -75,7 +75,7 @@ class MessagesClient:
|
|
|
75
75
|
|
|
76
76
|
Examples
|
|
77
77
|
--------
|
|
78
|
-
from
|
|
78
|
+
from letta_client import Letta
|
|
79
79
|
|
|
80
80
|
client = Letta(
|
|
81
81
|
token="YOUR_TOKEN",
|
|
@@ -160,7 +160,7 @@ class MessagesClient:
|
|
|
160
160
|
|
|
161
161
|
Examples
|
|
162
162
|
--------
|
|
163
|
-
from
|
|
163
|
+
from letta_client import Letta, MessageCreate
|
|
164
164
|
|
|
165
165
|
client = Letta(
|
|
166
166
|
token="YOUR_TOKEN",
|
|
@@ -259,7 +259,7 @@ class MessagesClient:
|
|
|
259
259
|
|
|
260
260
|
Examples
|
|
261
261
|
--------
|
|
262
|
-
from
|
|
262
|
+
from letta_client import Letta
|
|
263
263
|
|
|
264
264
|
client = Letta(
|
|
265
265
|
token="YOUR_TOKEN",
|
|
@@ -358,7 +358,7 @@ class MessagesClient:
|
|
|
358
358
|
|
|
359
359
|
Examples
|
|
360
360
|
--------
|
|
361
|
-
from
|
|
361
|
+
from letta_client import Letta, MessageCreate
|
|
362
362
|
|
|
363
363
|
client = Letta(
|
|
364
364
|
token="YOUR_TOKEN",
|
|
@@ -433,7 +433,7 @@ class MessagesClient:
|
|
|
433
433
|
assistant_message_tool_name: typing.Optional[str] = OMIT,
|
|
434
434
|
assistant_message_tool_kwarg: typing.Optional[str] = OMIT,
|
|
435
435
|
request_options: typing.Optional[RequestOptions] = None,
|
|
436
|
-
) ->
|
|
436
|
+
) -> Run:
|
|
437
437
|
"""
|
|
438
438
|
Asynchronously process a user message and return a job ID.
|
|
439
439
|
The actual processing happens in the background, and the status can be checked using the job ID.
|
|
@@ -459,12 +459,12 @@ class MessagesClient:
|
|
|
459
459
|
|
|
460
460
|
Returns
|
|
461
461
|
-------
|
|
462
|
-
|
|
462
|
+
Run
|
|
463
463
|
Successful Response
|
|
464
464
|
|
|
465
465
|
Examples
|
|
466
466
|
--------
|
|
467
|
-
from
|
|
467
|
+
from letta_client import Letta, MessageCreate
|
|
468
468
|
|
|
469
469
|
client = Letta(
|
|
470
470
|
token="YOUR_TOKEN",
|
|
@@ -496,9 +496,9 @@ class MessagesClient:
|
|
|
496
496
|
try:
|
|
497
497
|
if 200 <= _response.status_code < 300:
|
|
498
498
|
return typing.cast(
|
|
499
|
-
|
|
499
|
+
Run,
|
|
500
500
|
construct_type(
|
|
501
|
-
type_=
|
|
501
|
+
type_=Run, # type: ignore
|
|
502
502
|
object_=_response.json(),
|
|
503
503
|
),
|
|
504
504
|
)
|
|
@@ -567,7 +567,7 @@ class AsyncMessagesClient:
|
|
|
567
567
|
--------
|
|
568
568
|
import asyncio
|
|
569
569
|
|
|
570
|
-
from
|
|
570
|
+
from letta_client import AsyncLetta
|
|
571
571
|
|
|
572
572
|
client = AsyncLetta(
|
|
573
573
|
token="YOUR_TOKEN",
|
|
@@ -660,7 +660,7 @@ class AsyncMessagesClient:
|
|
|
660
660
|
--------
|
|
661
661
|
import asyncio
|
|
662
662
|
|
|
663
|
-
from
|
|
663
|
+
from letta_client import AsyncLetta, MessageCreate
|
|
664
664
|
|
|
665
665
|
client = AsyncLetta(
|
|
666
666
|
token="YOUR_TOKEN",
|
|
@@ -767,7 +767,7 @@ class AsyncMessagesClient:
|
|
|
767
767
|
--------
|
|
768
768
|
import asyncio
|
|
769
769
|
|
|
770
|
-
from
|
|
770
|
+
from letta_client import AsyncLetta
|
|
771
771
|
|
|
772
772
|
client = AsyncLetta(
|
|
773
773
|
token="YOUR_TOKEN",
|
|
@@ -874,7 +874,7 @@ class AsyncMessagesClient:
|
|
|
874
874
|
--------
|
|
875
875
|
import asyncio
|
|
876
876
|
|
|
877
|
-
from
|
|
877
|
+
from letta_client import AsyncLetta, MessageCreate
|
|
878
878
|
|
|
879
879
|
client = AsyncLetta(
|
|
880
880
|
token="YOUR_TOKEN",
|
|
@@ -955,7 +955,7 @@ class AsyncMessagesClient:
|
|
|
955
955
|
assistant_message_tool_name: typing.Optional[str] = OMIT,
|
|
956
956
|
assistant_message_tool_kwarg: typing.Optional[str] = OMIT,
|
|
957
957
|
request_options: typing.Optional[RequestOptions] = None,
|
|
958
|
-
) ->
|
|
958
|
+
) -> Run:
|
|
959
959
|
"""
|
|
960
960
|
Asynchronously process a user message and return a job ID.
|
|
961
961
|
The actual processing happens in the background, and the status can be checked using the job ID.
|
|
@@ -981,14 +981,14 @@ class AsyncMessagesClient:
|
|
|
981
981
|
|
|
982
982
|
Returns
|
|
983
983
|
-------
|
|
984
|
-
|
|
984
|
+
Run
|
|
985
985
|
Successful Response
|
|
986
986
|
|
|
987
987
|
Examples
|
|
988
988
|
--------
|
|
989
989
|
import asyncio
|
|
990
990
|
|
|
991
|
-
from
|
|
991
|
+
from letta_client import AsyncLetta, MessageCreate
|
|
992
992
|
|
|
993
993
|
client = AsyncLetta(
|
|
994
994
|
token="YOUR_TOKEN",
|
|
@@ -1026,9 +1026,9 @@ class AsyncMessagesClient:
|
|
|
1026
1026
|
try:
|
|
1027
1027
|
if 200 <= _response.status_code < 300:
|
|
1028
1028
|
return typing.cast(
|
|
1029
|
-
|
|
1029
|
+
Run,
|
|
1030
1030
|
construct_type(
|
|
1031
|
-
type_=
|
|
1031
|
+
type_=Run, # type: ignore
|
|
1032
1032
|
object_=_response.json(),
|
|
1033
1033
|
),
|
|
1034
1034
|
)
|
|
@@ -37,7 +37,7 @@ class RecallMemoryClient:
|
|
|
37
37
|
|
|
38
38
|
Examples
|
|
39
39
|
--------
|
|
40
|
-
from
|
|
40
|
+
from letta_client import Letta
|
|
41
41
|
|
|
42
42
|
client = Letta(
|
|
43
43
|
token="YOUR_TOKEN",
|
|
@@ -102,7 +102,7 @@ class AsyncRecallMemoryClient:
|
|
|
102
102
|
--------
|
|
103
103
|
import asyncio
|
|
104
104
|
|
|
105
|
-
from
|
|
105
|
+
from letta_client import AsyncLetta
|
|
106
106
|
|
|
107
107
|
client = AsyncLetta(
|
|
108
108
|
token="YOUR_TOKEN",
|
|
@@ -35,7 +35,7 @@ class SourcesClient:
|
|
|
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 AsyncSourcesClient:
|
|
|
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",
|
|
@@ -53,7 +53,7 @@ class TemplatesClient:
|
|
|
53
53
|
|
|
54
54
|
Examples
|
|
55
55
|
--------
|
|
56
|
-
from
|
|
56
|
+
from letta_client import Letta
|
|
57
57
|
|
|
58
58
|
client = Letta(
|
|
59
59
|
token="YOUR_TOKEN",
|
|
@@ -140,7 +140,7 @@ class TemplatesClient:
|
|
|
140
140
|
|
|
141
141
|
Examples
|
|
142
142
|
--------
|
|
143
|
-
from
|
|
143
|
+
from letta_client import Letta
|
|
144
144
|
|
|
145
145
|
client = Letta(
|
|
146
146
|
token="YOUR_TOKEN",
|
|
@@ -236,7 +236,7 @@ class TemplatesClient:
|
|
|
236
236
|
|
|
237
237
|
Examples
|
|
238
238
|
--------
|
|
239
|
-
from
|
|
239
|
+
from letta_client import Letta
|
|
240
240
|
|
|
241
241
|
client = Letta(
|
|
242
242
|
token="YOUR_TOKEN",
|
|
@@ -323,7 +323,7 @@ class AsyncTemplatesClient:
|
|
|
323
323
|
--------
|
|
324
324
|
import asyncio
|
|
325
325
|
|
|
326
|
-
from
|
|
326
|
+
from letta_client import AsyncLetta
|
|
327
327
|
|
|
328
328
|
client = AsyncLetta(
|
|
329
329
|
token="YOUR_TOKEN",
|
|
@@ -418,7 +418,7 @@ class AsyncTemplatesClient:
|
|
|
418
418
|
--------
|
|
419
419
|
import asyncio
|
|
420
420
|
|
|
421
|
-
from
|
|
421
|
+
from letta_client import AsyncLetta
|
|
422
422
|
|
|
423
423
|
client = AsyncLetta(
|
|
424
424
|
token="YOUR_TOKEN",
|
|
@@ -522,7 +522,7 @@ class AsyncTemplatesClient:
|
|
|
522
522
|
--------
|
|
523
523
|
import asyncio
|
|
524
524
|
|
|
525
|
-
from
|
|
525
|
+
from letta_client import AsyncLetta
|
|
526
526
|
|
|
527
527
|
client = AsyncLetta(
|
|
528
528
|
token="YOUR_TOKEN",
|
|
@@ -38,7 +38,7 @@ class ToolsClient:
|
|
|
38
38
|
|
|
39
39
|
Examples
|
|
40
40
|
--------
|
|
41
|
-
from
|
|
41
|
+
from letta_client import Letta
|
|
42
42
|
|
|
43
43
|
client = Letta(
|
|
44
44
|
token="YOUR_TOKEN",
|
|
@@ -98,7 +98,7 @@ class ToolsClient:
|
|
|
98
98
|
|
|
99
99
|
Examples
|
|
100
100
|
--------
|
|
101
|
-
from
|
|
101
|
+
from letta_client import Letta
|
|
102
102
|
|
|
103
103
|
client = Letta(
|
|
104
104
|
token="YOUR_TOKEN",
|
|
@@ -159,7 +159,7 @@ class ToolsClient:
|
|
|
159
159
|
|
|
160
160
|
Examples
|
|
161
161
|
--------
|
|
162
|
-
from
|
|
162
|
+
from letta_client import Letta
|
|
163
163
|
|
|
164
164
|
client = Letta(
|
|
165
165
|
token="YOUR_TOKEN",
|
|
@@ -225,7 +225,7 @@ class AsyncToolsClient:
|
|
|
225
225
|
--------
|
|
226
226
|
import asyncio
|
|
227
227
|
|
|
228
|
-
from
|
|
228
|
+
from letta_client import AsyncLetta
|
|
229
229
|
|
|
230
230
|
client = AsyncLetta(
|
|
231
231
|
token="YOUR_TOKEN",
|
|
@@ -293,7 +293,7 @@ class AsyncToolsClient:
|
|
|
293
293
|
--------
|
|
294
294
|
import asyncio
|
|
295
295
|
|
|
296
|
-
from
|
|
296
|
+
from letta_client import AsyncLetta
|
|
297
297
|
|
|
298
298
|
client = AsyncLetta(
|
|
299
299
|
token="YOUR_TOKEN",
|
|
@@ -362,7 +362,7 @@ class AsyncToolsClient:
|
|
|
362
362
|
--------
|
|
363
363
|
import asyncio
|
|
364
364
|
|
|
365
|
-
from
|
|
365
|
+
from letta_client import AsyncLetta
|
|
366
366
|
|
|
367
367
|
client = AsyncLetta(
|
|
368
368
|
token="YOUR_TOKEN",
|