letta-client 1.0.0a6__py3-none-any.whl → 1.0.0a8__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_sdk → letta_client}/__init__.py +8 -8
- {letta_sdk → letta_client}/_base_client.py +1 -1
- {letta_sdk → letta_client}/_client.py +124 -171
- {letta_sdk → letta_client}/_exceptions.py +2 -2
- {letta_sdk → letta_client}/_resource.py +5 -5
- {letta_sdk → letta_client}/_response.py +8 -6
- {letta_sdk → letta_client}/_streaming.py +3 -3
- {letta_sdk → letta_client}/_types.py +1 -1
- {letta_sdk → letta_client}/_utils/_logs.py +3 -3
- {letta_sdk → letta_client}/_utils/_resources_proxy.py +4 -4
- {letta_sdk → letta_client}/_version.py +2 -2
- letta_client/pagination.py +107 -0
- {letta_sdk → letta_client}/resources/__init__.py +14 -154
- {letta_sdk → letta_client}/resources/agents/__init__.py +28 -42
- {letta_sdk → letta_client}/resources/agents/agents.py +228 -744
- {letta_sdk/resources/agents/core_memory → letta_client/resources/agents}/blocks.py +112 -19
- {letta_sdk → letta_client}/resources/agents/files.py +71 -8
- {letta_sdk → letta_client}/resources/agents/folders.py +101 -11
- letta_client/resources/agents/groups.py +245 -0
- {letta_sdk → letta_client}/resources/agents/messages.py +265 -490
- {letta_sdk → letta_client}/resources/agents/tools.py +147 -31
- letta_sdk/resources/jobs.py → letta_client/resources/archives.py +268 -280
- {letta_sdk/resources/messages → letta_client/resources/batches}/batches.py +46 -161
- letta_client/resources/batches/messages.py +238 -0
- {letta_sdk/resources/agents/core_memory → letta_client/resources/blocks}/__init__.py +14 -14
- letta_client/resources/blocks/agents.py +287 -0
- {letta_sdk/resources → letta_client/resources/blocks}/blocks.py +64 -175
- letta_client/resources/folders/__init__.py +47 -0
- letta_client/resources/folders/agents.py +237 -0
- letta_client/resources/folders/files.py +472 -0
- letta_sdk/resources/providers.py → letta_client/resources/folders/folders.py +298 -313
- {letta_sdk → letta_client}/resources/groups/groups.py +24 -88
- {letta_sdk → letta_client}/resources/groups/messages.py +178 -37
- letta_client/resources/identities/__init__.py +61 -0
- letta_client/resources/identities/agents.py +269 -0
- letta_client/resources/identities/blocks.py +237 -0
- {letta_sdk/resources → letta_client/resources/identities}/identities.py +277 -533
- letta_client/resources/identities/properties.py +174 -0
- letta_client/resources/models/__init__.py +33 -0
- {letta_sdk/resources → letta_client/resources/models}/embeddings.py +26 -49
- {letta_sdk/resources → letta_client/resources/models}/models.py +42 -117
- letta_client/resources/runs/__init__.py +61 -0
- letta_sdk/resources/archives.py → letta_client/resources/runs/messages.py +189 -157
- letta_client/resources/runs/runs.py +462 -0
- letta_client/resources/runs/steps.py +229 -0
- letta_sdk/resources/voice_beta/chat.py → letta_client/resources/runs/usage.py +50 -57
- letta_client/resources/steps/__init__.py +75 -0
- letta_client/resources/steps/feedback.py +198 -0
- letta_client/resources/steps/messages.py +237 -0
- letta_client/resources/steps/metrics.py +167 -0
- letta_client/resources/steps/steps.py +513 -0
- letta_sdk/resources/telemetry.py → letta_client/resources/steps/trace.py +45 -56
- {letta_sdk → letta_client}/resources/tags.py +13 -10
- letta_client/resources/templates/__init__.py +33 -0
- letta_client/resources/templates/agents.py +236 -0
- letta_client/resources/templates/templates.py +102 -0
- {letta_sdk/resources/tools → letta_client/resources}/tools.py +249 -433
- letta_client/types/__init__.py +111 -0
- {letta_sdk → letta_client}/types/agent_create_params.py +5 -2
- {letta_sdk → letta_client}/types/agent_environment_variable.py +3 -0
- letta_client/types/agent_export_file_params.py +18 -0
- letta_sdk/types/agent_export_response.py → letta_client/types/agent_export_file_response.py +2 -2
- letta_sdk/types/agent_import_params.py → letta_client/types/agent_import_file_params.py +5 -2
- letta_sdk/types/agent_import_response.py → letta_client/types/agent_import_file_response.py +2 -2
- {letta_sdk → letta_client}/types/agent_list_params.py +19 -2
- {letta_sdk → letta_client}/types/agent_retrieve_params.py +20 -3
- {letta_sdk → letta_client}/types/agent_state.py +131 -3
- {letta_sdk → letta_client}/types/agent_type.py +1 -0
- {letta_sdk → letta_client}/types/agent_update_params.py +12 -0
- {letta_sdk → letta_client}/types/agents/__init__.py +10 -21
- letta_client/types/agents/approval_create_param.py +44 -0
- {letta_sdk → letta_client}/types/agents/approval_request_message.py +10 -2
- letta_client/types/agents/approval_response_message.py +63 -0
- {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block.py +1 -1
- letta_sdk/types/identity_list_blocks_params.py → letta_client/types/agents/block_list_params.py +2 -2
- {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block_update_params.py +1 -0
- letta_client/types/agents/file_list_params.py +40 -0
- letta_client/types/agents/folder_list_params.py +34 -0
- letta_sdk/types/source.py → letta_client/types/agents/folder_list_response.py +5 -5
- letta_client/types/agents/group_list_params.py +37 -0
- {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union.py +3 -0
- {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/letta_response.py +0 -4
- {letta_sdk → letta_client}/types/agents/message.py +93 -2
- {letta_sdk → letta_client}/types/agents/message_list_params.py +20 -5
- letta_sdk/types/agent_reset_messages_params.py → letta_client/types/agents/message_reset_params.py +2 -2
- {letta_sdk → letta_client}/types/agents/message_send_async_params.py +12 -3
- {letta_sdk → letta_client}/types/agents/message_send_params.py +12 -3
- letta_sdk/types/agents/message_send_stream_params.py → letta_client/types/agents/message_stream_params.py +14 -5
- {letta_sdk → letta_client}/types/agents/message_update_params.py +4 -0
- {letta_sdk → letta_client}/types/agents/omitted_reasoning_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/omitted_reasoning_content_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/run.py +16 -19
- {letta_sdk → letta_client}/types/agents/text_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/text_content_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/tool_call_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/tool_call_content_param.py +4 -1
- {letta_sdk → letta_client}/types/agents/tool_call_message.py +6 -2
- letta_client/types/agents/tool_list_params.py +34 -0
- {letta_sdk → letta_client}/types/agents/tool_return.py +7 -3
- letta_client/types/agents/tool_return_param.py +25 -0
- letta_client/types/agents/tool_update_approval_params.py +21 -0
- {letta_sdk → letta_client}/types/archive.py +4 -0
- letta_client/types/archive_create_params.py +19 -0
- letta_sdk/types/archive_retrieve_params.py → letta_client/types/archive_list_params.py +2 -2
- letta_sdk/types/archive_retrieve_response.py → letta_client/types/archive_list_response.py +2 -2
- {letta_sdk → letta_client}/types/archive_update_params.py +3 -3
- {letta_sdk/types/messages → letta_client/types}/batch_create_params.py +15 -6
- letta_sdk/types/job.py → letta_client/types/batch_job.py +8 -3
- letta_client/types/batches/__init__.py +6 -0
- letta_sdk/types/messages/batch_list_messages_params.py → letta_client/types/batches/message_list_params.py +2 -2
- letta_sdk/types/messages/batch_list_messages_response.py → letta_client/types/batches/message_list_response.py +2 -2
- {letta_sdk/types/tools → letta_client/types/blocks}/__init__.py +2 -0
- letta_sdk/types/block_list_agents_params.py → letta_client/types/blocks/agent_list_params.py +22 -5
- letta_client/types/child_tool_rule.py +40 -0
- letta_client/types/child_tool_rule_param.py +42 -0
- letta_client/types/folders/__init__.py +10 -0
- letta_sdk/types/folder_list_agents_params.py → letta_client/types/folders/agent_list_params.py +2 -2
- letta_client/types/folders/agent_list_response.py +7 -0
- letta_sdk/types/folder_list_files_params.py → letta_client/types/folders/file_list_params.py +2 -2
- letta_sdk/types/file_metadata.py → letta_client/types/folders/file_list_response.py +5 -5
- letta_sdk/types/source_upload_file_params.py → letta_client/types/folders/file_upload_params.py +5 -6
- letta_client/types/folders/file_upload_response.py +65 -0
- {letta_sdk → letta_client}/types/groups/__init__.py +1 -2
- {letta_sdk → letta_client}/types/groups/message_send_params.py +12 -3
- letta_sdk/types/groups/message_send_stream_params.py → letta_client/types/groups/message_stream_params.py +14 -5
- {letta_sdk → letta_client}/types/groups/message_update_params.py +4 -0
- letta_sdk/types/health_check_response.py → letta_client/types/health_response.py +2 -2
- letta_client/types/identities/__init__.py +7 -0
- letta_sdk/types/identity_list_agents_params.py → letta_client/types/identities/agent_list_params.py +19 -3
- letta_client/types/identities/block_list_params.py +34 -0
- letta_sdk/types/identity_upsert_properties_params.py → letta_client/types/identities/property_upsert_params.py +3 -3
- letta_sdk/types/identity_modify_params.py → letta_client/types/identity_update_params.py +2 -2
- {letta_sdk → letta_client}/types/init_tool_rule.py +10 -1
- {letta_sdk → letta_client}/types/init_tool_rule_param.py +10 -1
- {letta_sdk → letta_client}/types/llm_config.py +6 -0
- {letta_sdk → letta_client}/types/llm_config_param.py +6 -0
- {letta_sdk/types/voice_beta → letta_client/types/models}/__init__.py +1 -1
- letta_sdk/types/agents/archival_memory_create_response.py → letta_client/types/models/embedding_list_response.py +3 -3
- {letta_sdk → letta_client}/types/run_list_params.py +29 -5
- letta_client/types/runs/__init__.py +8 -0
- letta_sdk/types/run_list_messages_params.py → letta_client/types/runs/message_list_params.py +5 -2
- letta_sdk/types/run_retrieve_stream_params.py → letta_client/types/runs/message_stream_params.py +2 -2
- letta_sdk/types/run_list_steps_params.py → letta_client/types/runs/step_list_params.py +9 -6
- letta_sdk/types/run_retrieve_usage_response.py → letta_client/types/runs/usage_retrieve_response.py +3 -3
- {letta_sdk → letta_client}/types/step.py +6 -6
- letta_client/types/steps/__init__.py +8 -0
- letta_sdk/types/step_update_feedback_params.py → letta_client/types/steps/feedback_create_params.py +3 -3
- letta_sdk/types/step_list_messages_params.py → letta_client/types/steps/message_list_params.py +2 -2
- letta_client/types/steps/message_list_response.py +32 -0
- letta_sdk/types/step_retrieve_metrics_response.py → letta_client/types/steps/metric_retrieve_response.py +6 -6
- {letta_sdk → letta_client}/types/tag_list_response.py +1 -2
- letta_client/types/templates/__init__.py +5 -0
- letta_sdk/types/template_create_agents_params.py → letta_client/types/templates/agent_create_params.py +4 -4
- {letta_sdk → letta_client}/types/tool.py +6 -0
- {letta_sdk → letta_client}/types/tool_create_params.py +6 -0
- {letta_sdk → letta_client}/types/tool_return_message.py +3 -0
- letta_sdk/types/tool_modify_params.py → letta_client/types/tool_update_params.py +8 -2
- letta_sdk/types/tool_list_response.py → letta_client/types/tool_upsert_base_tools_response.py +2 -2
- {letta_sdk → letta_client}/types/tool_upsert_params.py +6 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a8.dist-info}/METADATA +110 -70
- letta_client-1.0.0a8.dist-info/RECORD +289 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a8.dist-info}/licenses/LICENSE +1 -1
- letta_client-1.0.0a6.dist-info/RECORD +0 -420
- letta_sdk/resources/_internal_templates/__init__.py +0 -33
- letta_sdk/resources/_internal_templates/_internal_templates.py +0 -961
- letta_sdk/resources/_internal_templates/deployment.py +0 -268
- letta_sdk/resources/agents/archival_memory.py +0 -581
- letta_sdk/resources/agents/core_memory/core_memory.py +0 -278
- letta_sdk/resources/agents/sources.py +0 -332
- letta_sdk/resources/client_side_access_tokens.py +0 -402
- letta_sdk/resources/folders.py +0 -1562
- letta_sdk/resources/health.py +0 -135
- letta_sdk/resources/messages/messages.py +0 -102
- letta_sdk/resources/projects.py +0 -189
- letta_sdk/resources/runs.py +0 -1016
- letta_sdk/resources/sources/__init__.py +0 -33
- letta_sdk/resources/sources/files.py +0 -341
- letta_sdk/resources/sources/sources.py +0 -1371
- letta_sdk/resources/steps.py +0 -784
- letta_sdk/resources/templates.py +0 -1310
- letta_sdk/resources/tools/__init__.py +0 -47
- letta_sdk/resources/tools/composio/__init__.py +0 -33
- letta_sdk/resources/tools/composio/apps.py +0 -214
- letta_sdk/resources/tools/composio/composio.py +0 -201
- letta_sdk/resources/tools/mcp/__init__.py +0 -47
- letta_sdk/resources/tools/mcp/mcp.py +0 -134
- letta_sdk/resources/tools/mcp/oauth.py +0 -214
- letta_sdk/resources/tools/mcp/servers/__init__.py +0 -33
- letta_sdk/resources/tools/mcp/servers/servers.py +0 -1785
- letta_sdk/resources/tools/mcp/servers/tools.py +0 -263
- letta_sdk/resources/voice_beta/__init__.py +0 -33
- letta_sdk/resources/voice_beta/voice_beta.py +0 -102
- letta_sdk/types/__init__.py +0 -226
- letta_sdk/types/_internal_templates/__init__.py +0 -7
- letta_sdk/types/_internal_templates/deployment_delete_response.py +0 -17
- letta_sdk/types/_internal_templates/deployment_list_entities_params.py +0 -15
- letta_sdk/types/_internal_templates/deployment_list_entities_response.py +0 -31
- letta_sdk/types/agent_export_params.py +0 -17
- letta_sdk/types/agent_list_groups_params.py +0 -13
- letta_sdk/types/agent_list_groups_response.py +0 -10
- letta_sdk/types/agent_list_response.py +0 -10
- letta_sdk/types/agent_migrate_params.py +0 -19
- letta_sdk/types/agent_migrate_response.py +0 -11
- letta_sdk/types/agent_retrieve_context_response.py +0 -110
- letta_sdk/types/agent_search_params.py +0 -78
- letta_sdk/types/agent_search_response.py +0 -16
- letta_sdk/types/agent_summarize_params.py +0 -12
- letta_sdk/types/agents/approval_create_param.py +0 -22
- letta_sdk/types/agents/approval_response_message.py +0 -41
- letta_sdk/types/agents/archival_memory_create_params.py +0 -23
- letta_sdk/types/agents/archival_memory_list_params.py +0 -28
- letta_sdk/types/agents/archival_memory_list_response.py +0 -10
- letta_sdk/types/agents/archival_memory_search_params.py +0 -35
- letta_sdk/types/agents/archival_memory_search_response.py +0 -26
- letta_sdk/types/agents/core_memory/__init__.py +0 -7
- letta_sdk/types/agents/core_memory/block_list_response.py +0 -10
- letta_sdk/types/agents/core_memory_retrieve_variables_response.py +0 -11
- letta_sdk/types/agents/file_list_params.py +0 -19
- letta_sdk/types/agents/folder_list_response.py +0 -10
- letta_sdk/types/agents/letta_request_param.py +0 -45
- letta_sdk/types/agents/letta_streaming_request_param.py +0 -60
- letta_sdk/types/agents/memory.py +0 -92
- letta_sdk/types/agents/message_list_response.py +0 -10
- letta_sdk/types/agents/message_preview_raw_payload_params.py +0 -103
- letta_sdk/types/agents/message_preview_raw_payload_response.py +0 -8
- letta_sdk/types/agents/message_search_params.py +0 -38
- letta_sdk/types/agents/message_search_response.py +0 -29
- letta_sdk/types/agents/source_list_response.py +0 -10
- letta_sdk/types/agents/tool_list_response.py +0 -10
- letta_sdk/types/agents/tool_modify_approval_params.py +0 -13
- letta_sdk/types/block_list_agents_response.py +0 -10
- letta_sdk/types/block_list_response.py +0 -10
- letta_sdk/types/child_tool_rule.py +0 -21
- letta_sdk/types/child_tool_rule_param.py +0 -23
- letta_sdk/types/client_side_access_token_create_params.py +0 -32
- letta_sdk/types/client_side_access_token_create_response.py +0 -34
- letta_sdk/types/client_side_access_token_delete_params.py +0 -11
- letta_sdk/types/client_side_access_token_list_params.py +0 -23
- letta_sdk/types/client_side_access_token_list_response.py +0 -40
- letta_sdk/types/duplicate_file_handling.py +0 -7
- letta_sdk/types/embedding_get_total_storage_size_response.py +0 -7
- letta_sdk/types/file_processing_status.py +0 -7
- letta_sdk/types/folder_get_by_name_response.py +0 -7
- letta_sdk/types/folder_list_agents_response.py +0 -8
- letta_sdk/types/folder_list_files_response.py +0 -10
- letta_sdk/types/folder_list_passages_params.py +0 -34
- letta_sdk/types/folder_list_passages_response.py +0 -10
- letta_sdk/types/folder_list_response.py +0 -10
- letta_sdk/types/folder_retrieve_metadata_params.py +0 -11
- letta_sdk/types/folder_upload_file_params.py +0 -21
- letta_sdk/types/group_list_response.py +0 -10
- letta_sdk/types/groups/message_list_response.py +0 -10
- letta_sdk/types/identity_list_agents_response.py +0 -10
- letta_sdk/types/identity_list_blocks_response.py +0 -10
- letta_sdk/types/identity_list_response.py +0 -10
- letta_sdk/types/internal_template_create_agent_params.py +0 -217
- letta_sdk/types/internal_template_create_block_params.py +0 -54
- letta_sdk/types/internal_template_create_group_params.py +0 -49
- letta_sdk/types/job_list_active_params.py +0 -28
- letta_sdk/types/job_list_active_response.py +0 -10
- letta_sdk/types/job_list_params.py +0 -31
- letta_sdk/types/job_list_response.py +0 -10
- letta_sdk/types/messages/__init__.py +0 -10
- letta_sdk/types/messages/batch_job.py +0 -60
- letta_sdk/types/messages/batch_list_response.py +0 -10
- letta_sdk/types/model_list_embedding_response.py +0 -10
- letta_sdk/types/organization_sources_stats.py +0 -49
- letta_sdk/types/passage.py +0 -56
- letta_sdk/types/project_list_params.py +0 -16
- letta_sdk/types/project_list_response.py +0 -23
- letta_sdk/types/provider.py +0 -42
- letta_sdk/types/provider_check_params.py +0 -30
- letta_sdk/types/provider_create_params.py +0 -33
- letta_sdk/types/provider_list_params.py +0 -42
- letta_sdk/types/provider_list_response.py +0 -10
- letta_sdk/types/provider_update_params.py +0 -25
- letta_sdk/types/run_list_active_params.py +0 -18
- letta_sdk/types/run_list_active_response.py +0 -10
- letta_sdk/types/run_list_messages_response.py +0 -10
- letta_sdk/types/run_list_response.py +0 -10
- letta_sdk/types/run_list_steps_response.py +0 -10
- letta_sdk/types/source_count_response.py +0 -7
- letta_sdk/types/source_create_params.py +0 -33
- letta_sdk/types/source_get_agents_response.py +0 -8
- letta_sdk/types/source_get_by_name_response.py +0 -7
- letta_sdk/types/source_get_metadata_params.py +0 -11
- letta_sdk/types/source_list_passages_params.py +0 -19
- letta_sdk/types/source_list_passages_response.py +0 -10
- letta_sdk/types/source_list_response.py +0 -10
- letta_sdk/types/source_update_params.py +0 -27
- letta_sdk/types/sources/__init__.py +0 -7
- letta_sdk/types/sources/file_list_params.py +0 -26
- letta_sdk/types/sources/file_list_response.py +0 -10
- letta_sdk/types/sources/file_retrieve_params.py +0 -14
- letta_sdk/types/step_list_messages_response.py +0 -34
- letta_sdk/types/step_list_response.py +0 -10
- letta_sdk/types/template_create_agents_response.py +0 -12
- letta_sdk/types/template_create_params.py +0 -40
- letta_sdk/types/template_create_response.py +0 -29
- letta_sdk/types/template_delete_response.py +0 -9
- letta_sdk/types/template_fork_params.py +0 -17
- letta_sdk/types/template_fork_response.py +0 -29
- letta_sdk/types/template_get_snapshot_response.py +0 -258
- letta_sdk/types/template_list_params.py +0 -34
- letta_sdk/types/template_list_response.py +0 -35
- letta_sdk/types/template_list_versions_params.py +0 -16
- letta_sdk/types/template_list_versions_response.py +0 -29
- letta_sdk/types/template_rename_params.py +0 -14
- letta_sdk/types/template_rename_response.py +0 -9
- letta_sdk/types/template_save_version_params.py +0 -32
- letta_sdk/types/template_save_version_response.py +0 -29
- letta_sdk/types/template_update_description_params.py +0 -14
- letta_sdk/types/template_update_description_response.py +0 -9
- letta_sdk/types/tool_run_params.py +0 -43
- letta_sdk/types/tool_upsert_base_response.py +0 -10
- letta_sdk/types/tools/composio/__init__.py +0 -6
- letta_sdk/types/tools/composio/app_list_actions_response.py +0 -70
- letta_sdk/types/tools/composio/app_list_response.py +0 -103
- letta_sdk/types/tools/mcp/__init__.py +0 -21
- letta_sdk/types/tools/mcp/mcp_server_type.py +0 -7
- letta_sdk/types/tools/mcp/oauth_callback_params.py +0 -22
- letta_sdk/types/tools/mcp/server_add_params.py +0 -68
- letta_sdk/types/tools/mcp/server_add_response.py +0 -14
- letta_sdk/types/tools/mcp/server_connect_params.py +0 -68
- letta_sdk/types/tools/mcp/server_delete_response.py +0 -14
- letta_sdk/types/tools/mcp/server_list_response.py +0 -14
- letta_sdk/types/tools/mcp/server_resync_params.py +0 -12
- letta_sdk/types/tools/mcp/server_test_params.py +0 -68
- letta_sdk/types/tools/mcp/server_update_params.py +0 -43
- letta_sdk/types/tools/mcp/server_update_response.py +0 -12
- letta_sdk/types/tools/mcp/servers/__init__.py +0 -6
- letta_sdk/types/tools/mcp/servers/tool_execute_params.py +0 -15
- letta_sdk/types/tools/mcp/servers/tool_list_response.py +0 -85
- letta_sdk/types/tools/mcp/sse_server_config.py +0 -27
- letta_sdk/types/tools/mcp/sse_server_config_param.py +0 -29
- letta_sdk/types/tools/mcp/stdio_server_config.py +0 -24
- letta_sdk/types/tools/mcp/stdio_server_config_param.py +0 -27
- letta_sdk/types/tools/mcp/streamable_http_server_config.py +0 -27
- letta_sdk/types/tools/mcp/streamable_http_server_config_param.py +0 -29
- letta_sdk/types/voice_beta/chat_create_completion_params.py +0 -12
- {letta_sdk → letta_client}/_compat.py +0 -0
- {letta_sdk → letta_client}/_constants.py +0 -0
- {letta_sdk → letta_client}/_files.py +0 -0
- {letta_sdk → letta_client}/_models.py +0 -0
- {letta_sdk → letta_client}/_qs.py +0 -0
- {letta_sdk → letta_client}/_utils/__init__.py +0 -0
- {letta_sdk → letta_client}/_utils/_compat.py +0 -0
- {letta_sdk → letta_client}/_utils/_datetime_parse.py +0 -0
- {letta_sdk → letta_client}/_utils/_proxy.py +0 -0
- {letta_sdk → letta_client}/_utils/_reflection.py +0 -0
- {letta_sdk → letta_client}/_utils/_streams.py +0 -0
- {letta_sdk → letta_client}/_utils/_sync.py +0 -0
- {letta_sdk → letta_client}/_utils/_transform.py +0 -0
- {letta_sdk → letta_client}/_utils/_typing.py +0 -0
- {letta_sdk → letta_client}/_utils/_utils.py +0 -0
- {letta_sdk → letta_client}/lib/.keep +0 -0
- {letta_sdk → letta_client}/py.typed +0 -0
- {letta_sdk/resources/messages → letta_client/resources/batches}/__init__.py +6 -6
- {letta_sdk → letta_client}/resources/groups/__init__.py +0 -0
- {letta_sdk → letta_client}/types/agent_count_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/assistant_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_close_all_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_list_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_open_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/hidden_reasoning_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/image_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/image_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/job_status.py +0 -0
- {letta_sdk → letta_client}/types/agents/job_type.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_message_union.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_user_message_content_union.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_user_message_content_union_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_cancel_params.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_cancel_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_role.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_type.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_update_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/redacted_reasoning_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/redacted_reasoning_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/system_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_call.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_call_delta.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_return_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_return_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_assistant_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_reasoning_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_system_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_user_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/user_message.py +0 -0
- {letta_sdk/types/messages → letta_client/types}/batch_list_params.py +0 -0
- {letta_sdk → letta_client}/types/block_count_response.py +0 -0
- {letta_sdk → letta_client}/types/block_create_params.py +0 -0
- {letta_sdk → letta_client}/types/block_list_params.py +0 -0
- {letta_sdk → letta_client}/types/block_update_params.py +0 -0
- {letta_sdk → letta_client}/types/conditional_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/conditional_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/continue_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/continue_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/create_block_param.py +0 -0
- {letta_sdk → letta_client}/types/dynamic_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/embedding_config.py +0 -0
- {letta_sdk → letta_client}/types/embedding_config_param.py +0 -0
- {letta_sdk → letta_client}/types/folder.py +0 -0
- {letta_sdk → letta_client}/types/folder_count_response.py +0 -0
- {letta_sdk → letta_client}/types/folder_create_params.py +0 -0
- {letta_sdk → letta_client}/types/folder_list_params.py +0 -0
- {letta_sdk → letta_client}/types/folder_update_params.py +0 -0
- {letta_sdk → letta_client}/types/group.py +0 -0
- {letta_sdk → letta_client}/types/group_count_response.py +0 -0
- {letta_sdk → letta_client}/types/group_create_params.py +0 -0
- {letta_sdk → letta_client}/types/group_list_params.py +0 -0
- {letta_sdk → letta_client}/types/group_update_params.py +0 -0
- {letta_sdk → letta_client}/types/groups/message_list_params.py +0 -0
- {letta_sdk → letta_client}/types/groups/message_update_response.py +0 -0
- {letta_sdk → letta_client}/types/identity.py +0 -0
- {letta_sdk → letta_client}/types/identity_count_response.py +0 -0
- {letta_sdk → letta_client}/types/identity_create_params.py +0 -0
- {letta_sdk → letta_client}/types/identity_list_params.py +0 -0
- {letta_sdk → letta_client}/types/identity_property.py +0 -0
- {letta_sdk → letta_client}/types/identity_property_param.py +0 -0
- {letta_sdk → letta_client}/types/identity_type.py +0 -0
- {letta_sdk → letta_client}/types/identity_upsert_params.py +0 -0
- {letta_sdk → letta_client}/types/json_object_response_format.py +0 -0
- {letta_sdk → letta_client}/types/json_object_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/json_schema_response_format.py +0 -0
- {letta_sdk → letta_client}/types/json_schema_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/letta_message_content_union_param.py +0 -0
- {letta_sdk → letta_client}/types/manager_type.py +0 -0
- {letta_sdk → letta_client}/types/max_count_per_step_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/max_count_per_step_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/message_create_param.py +0 -0
- {letta_sdk → letta_client}/types/model_list_params.py +0 -0
- {letta_sdk → letta_client}/types/model_list_response.py +0 -0
- {letta_sdk → letta_client}/types/npm_requirement.py +0 -0
- {letta_sdk → letta_client}/types/npm_requirement_param.py +0 -0
- {letta_sdk → letta_client}/types/parent_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/parent_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/pip_requirement.py +0 -0
- {letta_sdk → letta_client}/types/pip_requirement_param.py +0 -0
- {letta_sdk → letta_client}/types/provider_category.py +0 -0
- {letta_sdk → letta_client}/types/provider_trace.py +0 -0
- {letta_sdk → letta_client}/types/provider_type.py +0 -0
- {letta_sdk → letta_client}/types/required_before_exit_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/required_before_exit_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/requires_approval_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/requires_approval_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/round_robin_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/sleeptime_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/step_list_params.py +0 -0
- {letta_sdk → letta_client}/types/stop_reason_type.py +0 -0
- {letta_sdk → letta_client}/types/supervisor_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/tag_list_params.py +0 -0
- {letta_sdk → letta_client}/types/terminal_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/terminal_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/text_response_format.py +0 -0
- {letta_sdk → letta_client}/types/text_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/tool_count_params.py +0 -0
- {letta_sdk → letta_client}/types/tool_count_response.py +0 -0
- {letta_sdk → letta_client}/types/tool_list_params.py +0 -0
- {letta_sdk → letta_client}/types/tool_type.py +1 -1
- {letta_sdk → letta_client}/types/vector_db_provider.py +0 -0
- {letta_sdk → letta_client}/types/voice_sleeptime_manager_param.py +0 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a8.dist-info}/WHEEL +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Union, Optional
|
|
3
|
+
from typing import List, Union, Optional
|
|
4
4
|
from datetime import datetime
|
|
5
5
|
from typing_extensions import Literal, TypeAlias
|
|
6
6
|
|
|
@@ -8,10 +8,12 @@ from . import tool_call
|
|
|
8
8
|
from ..._models import BaseModel
|
|
9
9
|
from .tool_call_delta import ToolCallDelta
|
|
10
10
|
|
|
11
|
-
__all__ = ["ApprovalRequestMessage", "ToolCall"]
|
|
11
|
+
__all__ = ["ApprovalRequestMessage", "ToolCall", "ToolCalls"]
|
|
12
12
|
|
|
13
13
|
ToolCall: TypeAlias = Union[tool_call.ToolCall, ToolCallDelta]
|
|
14
14
|
|
|
15
|
+
ToolCalls: TypeAlias = Union[List[tool_call.ToolCall], ToolCallDelta, None]
|
|
16
|
+
|
|
15
17
|
|
|
16
18
|
class ApprovalRequestMessage(BaseModel):
|
|
17
19
|
id: str
|
|
@@ -37,3 +39,9 @@ class ApprovalRequestMessage(BaseModel):
|
|
|
37
39
|
seq_id: Optional[int] = None
|
|
38
40
|
|
|
39
41
|
step_id: Optional[str] = None
|
|
42
|
+
|
|
43
|
+
tool_calls: Optional[ToolCalls] = None
|
|
44
|
+
"""
|
|
45
|
+
The tool calls that have been requested by the llm to run, which are pending
|
|
46
|
+
approval
|
|
47
|
+
"""
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Union, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
from .tool_return import ToolReturn
|
|
10
|
+
|
|
11
|
+
__all__ = ["ApprovalResponseMessage", "Approval", "ApprovalApprovalReturn"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ApprovalApprovalReturn(BaseModel):
|
|
15
|
+
approve: bool
|
|
16
|
+
"""Whether the tool has been approved"""
|
|
17
|
+
|
|
18
|
+
tool_call_id: str
|
|
19
|
+
"""The ID of the tool call that corresponds to this approval"""
|
|
20
|
+
|
|
21
|
+
reason: Optional[str] = None
|
|
22
|
+
"""An optional explanation for the provided approval status"""
|
|
23
|
+
|
|
24
|
+
type: Optional[Literal["approval"]] = None
|
|
25
|
+
"""The message type to be created."""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
Approval: TypeAlias = Annotated[Union[ApprovalApprovalReturn, ToolReturn], PropertyInfo(discriminator="type")]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ApprovalResponseMessage(BaseModel):
|
|
32
|
+
id: str
|
|
33
|
+
|
|
34
|
+
date: datetime
|
|
35
|
+
|
|
36
|
+
approval_request_id: Optional[str] = None
|
|
37
|
+
"""The message ID of the approval request"""
|
|
38
|
+
|
|
39
|
+
approvals: Optional[List[Approval]] = None
|
|
40
|
+
"""The list of approval responses"""
|
|
41
|
+
|
|
42
|
+
approve: Optional[bool] = None
|
|
43
|
+
"""Whether the tool has been approved"""
|
|
44
|
+
|
|
45
|
+
is_err: Optional[bool] = None
|
|
46
|
+
|
|
47
|
+
message_type: Optional[Literal["approval_response_message"]] = None
|
|
48
|
+
"""The type of the message."""
|
|
49
|
+
|
|
50
|
+
name: Optional[str] = None
|
|
51
|
+
|
|
52
|
+
otid: Optional[str] = None
|
|
53
|
+
|
|
54
|
+
reason: Optional[str] = None
|
|
55
|
+
"""An optional explanation for the provided approval status"""
|
|
56
|
+
|
|
57
|
+
run_id: Optional[str] = None
|
|
58
|
+
|
|
59
|
+
sender_id: Optional[str] = None
|
|
60
|
+
|
|
61
|
+
seq_id: Optional[int] = None
|
|
62
|
+
|
|
63
|
+
step_id: Optional[str] = None
|
letta_sdk/types/identity_list_blocks_params.py → letta_client/types/agents/block_list_params.py
RENAMED
|
@@ -5,10 +5,10 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Optional
|
|
6
6
|
from typing_extensions import Literal, TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["BlockListParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class BlockListParams(TypedDict, total=False):
|
|
12
12
|
after: Optional[str]
|
|
13
13
|
"""Block ID cursor for pagination.
|
|
14
14
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["FileListParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class FileListParams(TypedDict, total=False):
|
|
12
|
+
after: Optional[str]
|
|
13
|
+
"""File ID cursor for pagination.
|
|
14
|
+
|
|
15
|
+
Returns files that come after this file ID in the specified sort order
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
before: Optional[str]
|
|
19
|
+
"""File ID cursor for pagination.
|
|
20
|
+
|
|
21
|
+
Returns files that come before this file ID in the specified sort order
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
cursor: Optional[str]
|
|
25
|
+
"""Pagination cursor from previous response (deprecated, use before/after)"""
|
|
26
|
+
|
|
27
|
+
is_open: Optional[bool]
|
|
28
|
+
"""Filter by open status (true for open files, false for closed files)"""
|
|
29
|
+
|
|
30
|
+
limit: Optional[int]
|
|
31
|
+
"""Maximum number of files to return"""
|
|
32
|
+
|
|
33
|
+
order: Literal["asc", "desc"]
|
|
34
|
+
"""Sort order for files by creation time.
|
|
35
|
+
|
|
36
|
+
'asc' for oldest first, 'desc' for newest first
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
order_by: Literal["created_at"]
|
|
40
|
+
"""Field to sort by"""
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["FolderListParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class FolderListParams(TypedDict, total=False):
|
|
12
|
+
after: Optional[str]
|
|
13
|
+
"""Source ID cursor for pagination.
|
|
14
|
+
|
|
15
|
+
Returns sources that come after this source ID in the specified sort order
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
before: Optional[str]
|
|
19
|
+
"""Source ID cursor for pagination.
|
|
20
|
+
|
|
21
|
+
Returns sources that come before this source ID in the specified sort order
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
limit: Optional[int]
|
|
25
|
+
"""Maximum number of sources to return"""
|
|
26
|
+
|
|
27
|
+
order: Literal["asc", "desc"]
|
|
28
|
+
"""Sort order for sources by creation time.
|
|
29
|
+
|
|
30
|
+
'asc' for oldest first, 'desc' for newest first
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
order_by: Literal["created_at"]
|
|
34
|
+
"""Field to sort by"""
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
from typing import Dict, Optional
|
|
4
4
|
from datetime import datetime
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
from ..embedding_config import EmbeddingConfig
|
|
8
|
+
from ..vector_db_provider import VectorDBProvider
|
|
9
9
|
|
|
10
|
-
__all__ = ["
|
|
10
|
+
__all__ = ["FolderListResponse"]
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class FolderListResponse(BaseModel):
|
|
14
14
|
embedding_config: EmbeddingConfig
|
|
15
15
|
"""The embedding configuration used by the source."""
|
|
16
16
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["GroupListParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GroupListParams(TypedDict, total=False):
|
|
12
|
+
after: Optional[str]
|
|
13
|
+
"""Group ID cursor for pagination.
|
|
14
|
+
|
|
15
|
+
Returns groups that come after this group ID in the specified sort order
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
before: Optional[str]
|
|
19
|
+
"""Group ID cursor for pagination.
|
|
20
|
+
|
|
21
|
+
Returns groups that come before this group ID in the specified sort order
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
limit: Optional[int]
|
|
25
|
+
"""Maximum number of groups to return"""
|
|
26
|
+
|
|
27
|
+
manager_type: Optional[str]
|
|
28
|
+
"""Manager type to filter groups by"""
|
|
29
|
+
|
|
30
|
+
order: Literal["asc", "desc"]
|
|
31
|
+
"""Sort order for groups by creation time.
|
|
32
|
+
|
|
33
|
+
'asc' for oldest first, 'desc' for newest first
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
order_by: Literal["created_at"]
|
|
37
|
+
"""Field to sort by"""
|
|
@@ -12,5 +12,8 @@ class LettaAssistantMessageContentUnion(BaseModel):
|
|
|
12
12
|
text: str
|
|
13
13
|
"""The text content of the message."""
|
|
14
14
|
|
|
15
|
+
signature: Optional[str] = None
|
|
16
|
+
"""Stores a unique identifier for any reasoning associated with this text content."""
|
|
17
|
+
|
|
15
18
|
type: Optional[Literal["text"]] = None
|
|
16
19
|
"""The type of the message."""
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Optional
|
|
5
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["LettaAssistantMessageContentUnionParam"]
|
|
@@ -11,5 +12,8 @@ class LettaAssistantMessageContentUnionParam(TypedDict, total=False):
|
|
|
11
12
|
text: Required[str]
|
|
12
13
|
"""The text content of the message."""
|
|
13
14
|
|
|
15
|
+
signature: Optional[str]
|
|
16
|
+
"""Stores a unique identifier for any reasoning associated with this text content."""
|
|
17
|
+
|
|
14
18
|
type: Literal["text"]
|
|
15
19
|
"""The type of the message."""
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
from typing import List, Optional
|
|
4
4
|
from typing_extensions import Literal
|
|
5
5
|
|
|
6
|
-
from .message import Message
|
|
7
6
|
from ..._models import BaseModel
|
|
8
7
|
from ..stop_reason_type import StopReasonType
|
|
9
8
|
from .letta_message_union import LettaMessageUnion
|
|
@@ -34,9 +33,6 @@ class Usage(BaseModel):
|
|
|
34
33
|
step_count: Optional[int] = None
|
|
35
34
|
"""The number of steps taken by the agent."""
|
|
36
35
|
|
|
37
|
-
steps_messages: Optional[List[List[Message]]] = None
|
|
38
|
-
"""The messages generated per step"""
|
|
39
|
-
|
|
40
36
|
total_tokens: Optional[int] = None
|
|
41
37
|
"""The total number of tokens processed by the agent."""
|
|
42
38
|
|
|
@@ -8,7 +8,6 @@ from pydantic import Field as FieldInfo
|
|
|
8
8
|
|
|
9
9
|
from ..._utils import PropertyInfo
|
|
10
10
|
from ..._models import BaseModel
|
|
11
|
-
from .tool_return import ToolReturn
|
|
12
11
|
from .message_role import MessageRole
|
|
13
12
|
from .text_content import TextContent
|
|
14
13
|
from .image_content import ImageContent
|
|
@@ -18,7 +17,75 @@ from .tool_return_content import ToolReturnContent
|
|
|
18
17
|
from .omitted_reasoning_content import OmittedReasoningContent
|
|
19
18
|
from .redacted_reasoning_content import RedactedReasoningContent
|
|
20
19
|
|
|
21
|
-
__all__ = [
|
|
20
|
+
__all__ = [
|
|
21
|
+
"Message",
|
|
22
|
+
"Approval",
|
|
23
|
+
"ApprovalApprovalReturn",
|
|
24
|
+
"ApprovalLettaSchemasMessageToolReturn",
|
|
25
|
+
"Content",
|
|
26
|
+
"ContentSummarizedReasoningContent",
|
|
27
|
+
"ContentSummarizedReasoningContentSummary",
|
|
28
|
+
"ToolCall",
|
|
29
|
+
"ToolCallFunction",
|
|
30
|
+
"ToolReturn",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ApprovalApprovalReturn(BaseModel):
|
|
35
|
+
approve: bool
|
|
36
|
+
"""Whether the tool has been approved"""
|
|
37
|
+
|
|
38
|
+
tool_call_id: str
|
|
39
|
+
"""The ID of the tool call that corresponds to this approval"""
|
|
40
|
+
|
|
41
|
+
reason: Optional[str] = None
|
|
42
|
+
"""An optional explanation for the provided approval status"""
|
|
43
|
+
|
|
44
|
+
type: Optional[Literal["approval"]] = None
|
|
45
|
+
"""The message type to be created."""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class ApprovalLettaSchemasMessageToolReturn(BaseModel):
|
|
49
|
+
status: Literal["success", "error"]
|
|
50
|
+
"""The status of the tool call"""
|
|
51
|
+
|
|
52
|
+
func_response: Optional[str] = None
|
|
53
|
+
"""The function response string"""
|
|
54
|
+
|
|
55
|
+
stderr: Optional[List[str]] = None
|
|
56
|
+
"""Captured stderr from the tool invocation"""
|
|
57
|
+
|
|
58
|
+
stdout: Optional[List[str]] = None
|
|
59
|
+
"""Captured stdout (e.g. prints, logs) from the tool invocation"""
|
|
60
|
+
|
|
61
|
+
tool_call_id: Optional[object] = None
|
|
62
|
+
"""The ID for the tool call"""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
Approval: TypeAlias = Union[ApprovalApprovalReturn, ApprovalLettaSchemasMessageToolReturn]
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class ContentSummarizedReasoningContentSummary(BaseModel):
|
|
69
|
+
index: int
|
|
70
|
+
"""The index of the summary part."""
|
|
71
|
+
|
|
72
|
+
text: str
|
|
73
|
+
"""The text of the summary part."""
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class ContentSummarizedReasoningContent(BaseModel):
|
|
77
|
+
id: str
|
|
78
|
+
"""The unique identifier for this reasoning step."""
|
|
79
|
+
|
|
80
|
+
summary: List[ContentSummarizedReasoningContentSummary]
|
|
81
|
+
"""Summaries of the reasoning content."""
|
|
82
|
+
|
|
83
|
+
encrypted_content: Optional[str] = None
|
|
84
|
+
"""The encrypted reasoning content."""
|
|
85
|
+
|
|
86
|
+
type: Optional[Literal["summarized_reasoning"]] = None
|
|
87
|
+
"""Indicates this is a summarized reasoning step."""
|
|
88
|
+
|
|
22
89
|
|
|
23
90
|
Content: TypeAlias = Annotated[
|
|
24
91
|
Union[
|
|
@@ -29,6 +96,7 @@ Content: TypeAlias = Annotated[
|
|
|
29
96
|
ReasoningContent,
|
|
30
97
|
RedactedReasoningContent,
|
|
31
98
|
OmittedReasoningContent,
|
|
99
|
+
ContentSummarizedReasoningContent,
|
|
32
100
|
],
|
|
33
101
|
PropertyInfo(discriminator="type"),
|
|
34
102
|
]
|
|
@@ -72,6 +140,23 @@ class ToolCall(BaseModel):
|
|
|
72
140
|
__pydantic_extra__: Dict[str, object]
|
|
73
141
|
|
|
74
142
|
|
|
143
|
+
class ToolReturn(BaseModel):
|
|
144
|
+
status: Literal["success", "error"]
|
|
145
|
+
"""The status of the tool call"""
|
|
146
|
+
|
|
147
|
+
func_response: Optional[str] = None
|
|
148
|
+
"""The function response string"""
|
|
149
|
+
|
|
150
|
+
stderr: Optional[List[str]] = None
|
|
151
|
+
"""Captured stderr from the tool invocation"""
|
|
152
|
+
|
|
153
|
+
stdout: Optional[List[str]] = None
|
|
154
|
+
"""Captured stdout (e.g. prints, logs) from the tool invocation"""
|
|
155
|
+
|
|
156
|
+
tool_call_id: Optional[object] = None
|
|
157
|
+
"""The ID for the tool call"""
|
|
158
|
+
|
|
159
|
+
|
|
75
160
|
class Message(BaseModel):
|
|
76
161
|
role: MessageRole
|
|
77
162
|
"""The role of the participant."""
|
|
@@ -88,6 +173,9 @@ class Message(BaseModel):
|
|
|
88
173
|
request.
|
|
89
174
|
"""
|
|
90
175
|
|
|
176
|
+
approvals: Optional[List[Approval]] = None
|
|
177
|
+
"""The list of approvals for this message."""
|
|
178
|
+
|
|
91
179
|
approve: Optional[bool] = None
|
|
92
180
|
"""Whether tool call is approved."""
|
|
93
181
|
|
|
@@ -130,6 +218,9 @@ class Message(BaseModel):
|
|
|
130
218
|
otid: Optional[str] = None
|
|
131
219
|
"""The offline threading id associated with this message"""
|
|
132
220
|
|
|
221
|
+
run_id: Optional[str] = None
|
|
222
|
+
"""The id of the run that this message was created in."""
|
|
223
|
+
|
|
133
224
|
sender_id: Optional[str] = None
|
|
134
225
|
"""The id of the sender of the message, can be an identity id or agent id"""
|
|
135
226
|
|
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Optional
|
|
6
|
-
from typing_extensions import TypedDict
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
7
|
|
|
8
8
|
__all__ = ["MessageListParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class MessageListParams(TypedDict, total=False):
|
|
12
12
|
after: Optional[str]
|
|
13
|
-
"""Message
|
|
13
|
+
"""Message ID cursor for pagination.
|
|
14
|
+
|
|
15
|
+
Returns messages that come after this message ID in the specified sort order
|
|
16
|
+
"""
|
|
14
17
|
|
|
15
18
|
assistant_message_tool_kwarg: str
|
|
16
19
|
"""The name of the message argument."""
|
|
@@ -19,7 +22,10 @@ class MessageListParams(TypedDict, total=False):
|
|
|
19
22
|
"""The name of the designated message tool."""
|
|
20
23
|
|
|
21
24
|
before: Optional[str]
|
|
22
|
-
"""Message
|
|
25
|
+
"""Message ID cursor for pagination.
|
|
26
|
+
|
|
27
|
+
Returns messages that come before this message ID in the specified sort order
|
|
28
|
+
"""
|
|
23
29
|
|
|
24
30
|
group_id: Optional[str]
|
|
25
31
|
"""Group ID to filter messages by."""
|
|
@@ -30,8 +36,17 @@ class MessageListParams(TypedDict, total=False):
|
|
|
30
36
|
For debugging purposes only.
|
|
31
37
|
"""
|
|
32
38
|
|
|
33
|
-
limit: int
|
|
34
|
-
"""Maximum number of messages to
|
|
39
|
+
limit: Optional[int]
|
|
40
|
+
"""Maximum number of messages to return"""
|
|
41
|
+
|
|
42
|
+
order: Literal["asc", "desc"]
|
|
43
|
+
"""Sort order for messages by creation time.
|
|
44
|
+
|
|
45
|
+
'asc' for oldest first, 'desc' for newest first
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
order_by: Literal["created_at"]
|
|
49
|
+
"""Field to sort by"""
|
|
35
50
|
|
|
36
51
|
use_assistant_message: bool
|
|
37
52
|
"""Whether to use assistant messages"""
|
letta_sdk/types/agent_reset_messages_params.py → letta_client/types/agents/message_reset_params.py
RENAMED
|
@@ -4,9 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
|
-
__all__ = ["
|
|
7
|
+
__all__ = ["MessageResetParams"]
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class MessageResetParams(TypedDict, total=False):
|
|
11
11
|
add_default_initial_messages: bool
|
|
12
12
|
"""If true, adds the default initial messages after resetting."""
|
|
@@ -17,10 +17,18 @@ class MessageSendAsyncParams(TypedDict, total=False):
|
|
|
17
17
|
"""The messages to be sent to the agent."""
|
|
18
18
|
|
|
19
19
|
assistant_message_tool_kwarg: str
|
|
20
|
-
"""The name of the message argument in the designated message tool.
|
|
20
|
+
"""The name of the message argument in the designated message tool.
|
|
21
|
+
|
|
22
|
+
Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
23
|
+
onward.
|
|
24
|
+
"""
|
|
21
25
|
|
|
22
26
|
assistant_message_tool_name: str
|
|
23
|
-
"""The name of the designated message tool.
|
|
27
|
+
"""The name of the designated message tool.
|
|
28
|
+
|
|
29
|
+
Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
30
|
+
onward.
|
|
31
|
+
"""
|
|
24
32
|
|
|
25
33
|
callback_url: Optional[str]
|
|
26
34
|
"""Optional callback URL to POST to when the job completes"""
|
|
@@ -42,7 +50,8 @@ class MessageSendAsyncParams(TypedDict, total=False):
|
|
|
42
50
|
use_assistant_message: bool
|
|
43
51
|
"""
|
|
44
52
|
Whether the server should parse specific tool call arguments (default
|
|
45
|
-
`send_message`) as `AssistantMessage` objects.
|
|
53
|
+
`send_message`) as `AssistantMessage` objects. Still supported for legacy agent
|
|
54
|
+
types, but deprecated for letta_v1_agent onward.
|
|
46
55
|
"""
|
|
47
56
|
|
|
48
57
|
|
|
@@ -17,10 +17,18 @@ class MessageSendParams(TypedDict, total=False):
|
|
|
17
17
|
"""The messages to be sent to the agent."""
|
|
18
18
|
|
|
19
19
|
assistant_message_tool_kwarg: str
|
|
20
|
-
"""The name of the message argument in the designated message tool.
|
|
20
|
+
"""The name of the message argument in the designated message tool.
|
|
21
|
+
|
|
22
|
+
Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
23
|
+
onward.
|
|
24
|
+
"""
|
|
21
25
|
|
|
22
26
|
assistant_message_tool_name: str
|
|
23
|
-
"""The name of the designated message tool.
|
|
27
|
+
"""The name of the designated message tool.
|
|
28
|
+
|
|
29
|
+
Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
30
|
+
onward.
|
|
31
|
+
"""
|
|
24
32
|
|
|
25
33
|
enable_thinking: str
|
|
26
34
|
"""
|
|
@@ -39,7 +47,8 @@ class MessageSendParams(TypedDict, total=False):
|
|
|
39
47
|
use_assistant_message: bool
|
|
40
48
|
"""
|
|
41
49
|
Whether the server should parse specific tool call arguments (default
|
|
42
|
-
`send_message`) as `AssistantMessage` objects.
|
|
50
|
+
`send_message`) as `AssistantMessage` objects. Still supported for legacy agent
|
|
51
|
+
types, but deprecated for letta_v1_agent onward.
|
|
43
52
|
"""
|
|
44
53
|
|
|
45
54
|
|
|
@@ -9,18 +9,26 @@ from .message_type import MessageType
|
|
|
9
9
|
from ..message_create_param import MessageCreateParam
|
|
10
10
|
from .approval_create_param import ApprovalCreateParam
|
|
11
11
|
|
|
12
|
-
__all__ = ["
|
|
12
|
+
__all__ = ["MessageStreamParams", "Message"]
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class MessageStreamParams(TypedDict, total=False):
|
|
16
16
|
messages: Required[Iterable[Message]]
|
|
17
17
|
"""The messages to be sent to the agent."""
|
|
18
18
|
|
|
19
19
|
assistant_message_tool_kwarg: str
|
|
20
|
-
"""The name of the message argument in the designated message tool.
|
|
20
|
+
"""The name of the message argument in the designated message tool.
|
|
21
|
+
|
|
22
|
+
Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
23
|
+
onward.
|
|
24
|
+
"""
|
|
21
25
|
|
|
22
26
|
assistant_message_tool_name: str
|
|
23
|
-
"""The name of the designated message tool.
|
|
27
|
+
"""The name of the designated message tool.
|
|
28
|
+
|
|
29
|
+
Still supported for legacy agent types, but deprecated for letta_v1_agent
|
|
30
|
+
onward.
|
|
31
|
+
"""
|
|
24
32
|
|
|
25
33
|
background: bool
|
|
26
34
|
"""Whether to process the request in the background."""
|
|
@@ -54,7 +62,8 @@ class MessageSendStreamParams(TypedDict, total=False):
|
|
|
54
62
|
use_assistant_message: bool
|
|
55
63
|
"""
|
|
56
64
|
Whether the server should parse specific tool call arguments (default
|
|
57
|
-
`send_message`) as `AssistantMessage` objects.
|
|
65
|
+
`send_message`) as `AssistantMessage` objects. Still supported for legacy agent
|
|
66
|
+
types, but deprecated for letta_v1_agent onward.
|
|
58
67
|
"""
|
|
59
68
|
|
|
60
69
|
|
|
@@ -19,6 +19,7 @@ __all__ = [
|
|
|
19
19
|
|
|
20
20
|
class UpdateSystemMessage(TypedDict, total=False):
|
|
21
21
|
agent_id: Required[str]
|
|
22
|
+
"""The ID of the agent in the format 'agent-<uuid4>'"""
|
|
22
23
|
|
|
23
24
|
content: Required[str]
|
|
24
25
|
"""
|
|
@@ -31,6 +32,7 @@ class UpdateSystemMessage(TypedDict, total=False):
|
|
|
31
32
|
|
|
32
33
|
class UpdateUserMessage(TypedDict, total=False):
|
|
33
34
|
agent_id: Required[str]
|
|
35
|
+
"""The ID of the agent in the format 'agent-<uuid4>'"""
|
|
34
36
|
|
|
35
37
|
content: Required[Union[Iterable[LettaUserMessageContentUnionParam], str]]
|
|
36
38
|
"""
|
|
@@ -43,6 +45,7 @@ class UpdateUserMessage(TypedDict, total=False):
|
|
|
43
45
|
|
|
44
46
|
class UpdateReasoningMessage(TypedDict, total=False):
|
|
45
47
|
agent_id: Required[str]
|
|
48
|
+
"""The ID of the agent in the format 'agent-<uuid4>'"""
|
|
46
49
|
|
|
47
50
|
reasoning: Required[str]
|
|
48
51
|
|
|
@@ -51,6 +54,7 @@ class UpdateReasoningMessage(TypedDict, total=False):
|
|
|
51
54
|
|
|
52
55
|
class UpdateAssistantMessage(TypedDict, total=False):
|
|
53
56
|
agent_id: Required[str]
|
|
57
|
+
"""The ID of the agent in the format 'agent-<uuid4>'"""
|
|
54
58
|
|
|
55
59
|
content: Required[Union[Iterable[LettaAssistantMessageContentUnionParam], str]]
|
|
56
60
|
"""
|
|
@@ -9,5 +9,8 @@ __all__ = ["OmittedReasoningContent"]
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class OmittedReasoningContent(BaseModel):
|
|
12
|
+
signature: Optional[str] = None
|
|
13
|
+
"""A unique identifier for this reasoning step."""
|
|
14
|
+
|
|
12
15
|
type: Optional[Literal["omitted_reasoning"]] = None
|
|
13
16
|
"""Indicates this is an omitted reasoning step."""
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Optional
|
|
5
6
|
from typing_extensions import Literal, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["OmittedReasoningContentParam"]
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
class OmittedReasoningContentParam(TypedDict, total=False):
|
|
12
|
+
signature: Optional[str]
|
|
13
|
+
"""A unique identifier for this reasoning step."""
|
|
14
|
+
|
|
11
15
|
type: Literal["omitted_reasoning"]
|
|
12
16
|
"""Indicates this is an omitted reasoning step."""
|