letta-client 1.0.0a5__py3-none-any.whl → 1.0.0a6__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_client-1.0.0a6.dist-info/METADATA +456 -0
- letta_client-1.0.0a6.dist-info/RECORD +420 -0
- letta_client-1.0.0a6.dist-info/WHEEL +4 -0
- letta_client-1.0.0a6.dist-info/licenses/LICENSE +201 -0
- letta_sdk/__init__.py +104 -0
- letta_sdk/_base_client.py +1995 -0
- letta_sdk/_client.py +679 -0
- letta_sdk/_compat.py +219 -0
- letta_sdk/_constants.py +14 -0
- letta_sdk/_exceptions.py +108 -0
- letta_sdk/_files.py +123 -0
- letta_sdk/_models.py +835 -0
- letta_sdk/_qs.py +150 -0
- letta_sdk/_resource.py +43 -0
- letta_sdk/_response.py +830 -0
- letta_sdk/_streaming.py +333 -0
- letta_sdk/_types.py +260 -0
- letta_sdk/_utils/__init__.py +64 -0
- letta_sdk/_utils/_compat.py +45 -0
- letta_sdk/_utils/_datetime_parse.py +136 -0
- letta_sdk/_utils/_logs.py +25 -0
- letta_sdk/_utils/_proxy.py +65 -0
- letta_sdk/_utils/_reflection.py +42 -0
- letta_sdk/_utils/_resources_proxy.py +24 -0
- letta_sdk/_utils/_streams.py +12 -0
- letta_sdk/_utils/_sync.py +86 -0
- letta_sdk/_utils/_transform.py +457 -0
- letta_sdk/_utils/_typing.py +156 -0
- letta_sdk/_utils/_utils.py +421 -0
- letta_sdk/_version.py +4 -0
- letta_sdk/lib/.keep +4 -0
- letta_sdk/resources/__init__.py +327 -0
- letta_sdk/resources/_internal_templates/__init__.py +33 -0
- letta_sdk/resources/_internal_templates/_internal_templates.py +961 -0
- letta_sdk/resources/_internal_templates/deployment.py +268 -0
- letta_sdk/resources/agents/__init__.py +117 -0
- letta_sdk/resources/agents/agents.py +2501 -0
- letta_sdk/resources/agents/archival_memory.py +581 -0
- letta_sdk/resources/agents/core_memory/__init__.py +33 -0
- letta_sdk/resources/agents/core_memory/blocks.py +627 -0
- letta_sdk/resources/agents/core_memory/core_memory.py +278 -0
- letta_sdk/resources/agents/files.py +475 -0
- letta_sdk/resources/agents/folders.py +332 -0
- letta_sdk/resources/agents/messages.py +1712 -0
- letta_sdk/resources/agents/sources.py +332 -0
- letta_sdk/resources/agents/tools.py +432 -0
- letta_sdk/resources/archives.py +325 -0
- letta_sdk/resources/blocks.py +1087 -0
- letta_sdk/resources/client_side_access_tokens.py +402 -0
- letta_sdk/resources/embeddings.py +164 -0
- letta_sdk/resources/folders.py +1562 -0
- letta_sdk/resources/groups/__init__.py +33 -0
- letta_sdk/resources/groups/groups.py +833 -0
- letta_sdk/resources/groups/messages.py +949 -0
- letta_sdk/resources/health.py +135 -0
- letta_sdk/resources/identities.py +1254 -0
- letta_sdk/resources/jobs.py +610 -0
- letta_sdk/resources/messages/__init__.py +33 -0
- letta_sdk/resources/messages/batches.py +646 -0
- letta_sdk/resources/messages/messages.py +102 -0
- letta_sdk/resources/models.py +300 -0
- letta_sdk/resources/projects.py +189 -0
- letta_sdk/resources/providers.py +800 -0
- letta_sdk/resources/runs.py +1016 -0
- letta_sdk/resources/sources/__init__.py +33 -0
- letta_sdk/resources/sources/files.py +341 -0
- letta_sdk/resources/sources/sources.py +1371 -0
- letta_sdk/resources/steps.py +784 -0
- letta_sdk/resources/tags.py +240 -0
- letta_sdk/resources/telemetry.py +180 -0
- letta_sdk/resources/templates.py +1310 -0
- letta_sdk/resources/tools/__init__.py +47 -0
- letta_sdk/resources/tools/composio/__init__.py +33 -0
- letta_sdk/resources/tools/composio/apps.py +214 -0
- letta_sdk/resources/tools/composio/composio.py +201 -0
- letta_sdk/resources/tools/mcp/__init__.py +47 -0
- letta_sdk/resources/tools/mcp/mcp.py +134 -0
- letta_sdk/resources/tools/mcp/oauth.py +214 -0
- letta_sdk/resources/tools/mcp/servers/__init__.py +33 -0
- letta_sdk/resources/tools/mcp/servers/servers.py +1785 -0
- letta_sdk/resources/tools/mcp/servers/tools.py +263 -0
- letta_sdk/resources/tools/tools.py +1373 -0
- letta_sdk/resources/voice_beta/__init__.py +33 -0
- letta_sdk/resources/voice_beta/chat.py +170 -0
- letta_sdk/resources/voice_beta/voice_beta.py +102 -0
- letta_sdk/types/__init__.py +226 -0
- letta_sdk/types/_internal_templates/__init__.py +7 -0
- letta_sdk/types/_internal_templates/deployment_delete_response.py +17 -0
- letta_sdk/types/_internal_templates/deployment_list_entities_params.py +15 -0
- letta_sdk/types/_internal_templates/deployment_list_entities_response.py +31 -0
- letta_sdk/types/agent_count_response.py +7 -0
- letta_sdk/types/agent_create_params.py +215 -0
- letta_sdk/types/agent_environment_variable.py +37 -0
- letta_sdk/types/agent_export_params.py +17 -0
- letta_sdk/types/agent_export_response.py +7 -0
- letta_sdk/types/agent_import_params.py +39 -0
- letta_sdk/types/agent_import_response.py +12 -0
- letta_sdk/types/agent_list_groups_params.py +13 -0
- letta_sdk/types/agent_list_groups_response.py +10 -0
- letta_sdk/types/agent_list_params.py +78 -0
- letta_sdk/types/agent_list_response.py +10 -0
- letta_sdk/types/agent_migrate_params.py +19 -0
- letta_sdk/types/agent_migrate_response.py +11 -0
- letta_sdk/types/agent_reset_messages_params.py +12 -0
- letta_sdk/types/agent_retrieve_context_response.py +110 -0
- letta_sdk/types/agent_retrieve_params.py +19 -0
- letta_sdk/types/agent_search_params.py +78 -0
- letta_sdk/types/agent_search_response.py +16 -0
- letta_sdk/types/agent_state.py +170 -0
- letta_sdk/types/agent_summarize_params.py +12 -0
- letta_sdk/types/agent_type.py +16 -0
- letta_sdk/types/agent_update_params.py +149 -0
- letta_sdk/types/agents/__init__.py +85 -0
- letta_sdk/types/agents/approval_create_param.py +22 -0
- letta_sdk/types/agents/approval_request_message.py +39 -0
- letta_sdk/types/agents/approval_response_message.py +41 -0
- letta_sdk/types/agents/archival_memory_create_params.py +23 -0
- letta_sdk/types/agents/archival_memory_create_response.py +10 -0
- letta_sdk/types/agents/archival_memory_list_params.py +28 -0
- letta_sdk/types/agents/archival_memory_list_response.py +10 -0
- letta_sdk/types/agents/archival_memory_search_params.py +35 -0
- letta_sdk/types/agents/archival_memory_search_response.py +26 -0
- letta_sdk/types/agents/assistant_message.py +39 -0
- letta_sdk/types/agents/core_memory/__init__.py +7 -0
- letta_sdk/types/agents/core_memory/block.py +60 -0
- letta_sdk/types/agents/core_memory/block_list_response.py +10 -0
- letta_sdk/types/agents/core_memory/block_update_params.py +54 -0
- letta_sdk/types/agents/core_memory_retrieve_variables_response.py +11 -0
- letta_sdk/types/agents/file_close_all_response.py +8 -0
- letta_sdk/types/agents/file_list_params.py +19 -0
- letta_sdk/types/agents/file_list_response.py +51 -0
- letta_sdk/types/agents/file_open_response.py +8 -0
- letta_sdk/types/agents/folder_list_response.py +10 -0
- letta_sdk/types/agents/hidden_reasoning_message.py +36 -0
- letta_sdk/types/agents/image_content.py +67 -0
- letta_sdk/types/agents/image_content_param.py +64 -0
- letta_sdk/types/agents/job_status.py +7 -0
- letta_sdk/types/agents/job_type.py +7 -0
- letta_sdk/types/agents/letta_assistant_message_content_union.py +16 -0
- letta_sdk/types/agents/letta_assistant_message_content_union_param.py +15 -0
- letta_sdk/types/agents/letta_message_union.py +32 -0
- letta_sdk/types/agents/letta_request_param.py +45 -0
- letta_sdk/types/agents/letta_response.py +52 -0
- letta_sdk/types/agents/letta_streaming_request_param.py +60 -0
- letta_sdk/types/agents/letta_user_message_content_union.py +14 -0
- letta_sdk/types/agents/letta_user_message_content_union_param.py +13 -0
- letta_sdk/types/agents/memory.py +92 -0
- letta_sdk/types/agents/message.py +149 -0
- letta_sdk/types/agents/message_cancel_params.py +15 -0
- letta_sdk/types/agents/message_cancel_response.py +8 -0
- letta_sdk/types/agents/message_list_params.py +37 -0
- letta_sdk/types/agents/message_list_response.py +10 -0
- letta_sdk/types/agents/message_preview_raw_payload_params.py +103 -0
- letta_sdk/types/agents/message_preview_raw_payload_response.py +8 -0
- letta_sdk/types/agents/message_role.py +7 -0
- letta_sdk/types/agents/message_search_params.py +38 -0
- letta_sdk/types/agents/message_search_response.py +29 -0
- letta_sdk/types/agents/message_send_async_params.py +49 -0
- letta_sdk/types/agents/message_send_params.py +46 -0
- letta_sdk/types/agents/message_send_stream_params.py +61 -0
- letta_sdk/types/agents/message_type.py +17 -0
- letta_sdk/types/agents/message_update_params.py +66 -0
- letta_sdk/types/agents/message_update_response.py +32 -0
- letta_sdk/types/agents/omitted_reasoning_content.py +13 -0
- letta_sdk/types/agents/omitted_reasoning_content_param.py +12 -0
- letta_sdk/types/agents/reasoning_content.py +25 -0
- letta_sdk/types/agents/reasoning_content_param.py +25 -0
- letta_sdk/types/agents/reasoning_message.py +38 -0
- letta_sdk/types/agents/redacted_reasoning_content.py +16 -0
- letta_sdk/types/agents/redacted_reasoning_content_param.py +15 -0
- letta_sdk/types/agents/run.py +84 -0
- letta_sdk/types/agents/source_list_response.py +10 -0
- letta_sdk/types/agents/system_message.py +35 -0
- letta_sdk/types/agents/text_content.py +16 -0
- letta_sdk/types/agents/text_content_param.py +15 -0
- letta_sdk/types/agents/tool_call.py +13 -0
- letta_sdk/types/agents/tool_call_content.py +25 -0
- letta_sdk/types/agents/tool_call_content_param.py +25 -0
- letta_sdk/types/agents/tool_call_delta.py +15 -0
- letta_sdk/types/agents/tool_call_message.py +38 -0
- letta_sdk/types/agents/tool_list_response.py +10 -0
- letta_sdk/types/agents/tool_modify_approval_params.py +13 -0
- letta_sdk/types/agents/tool_return.py +19 -0
- letta_sdk/types/agents/tool_return_content.py +22 -0
- letta_sdk/types/agents/tool_return_content_param.py +21 -0
- letta_sdk/types/agents/update_assistant_message_param.py +20 -0
- letta_sdk/types/agents/update_reasoning_message_param.py +13 -0
- letta_sdk/types/agents/update_system_message_param.py +17 -0
- letta_sdk/types/agents/update_user_message_param.py +20 -0
- letta_sdk/types/agents/user_message.py +39 -0
- letta_sdk/types/archive.py +38 -0
- letta_sdk/types/archive_retrieve_params.py +37 -0
- letta_sdk/types/archive_retrieve_response.py +10 -0
- letta_sdk/types/archive_update_params.py +14 -0
- letta_sdk/types/block_count_response.py +7 -0
- letta_sdk/types/block_create_params.py +51 -0
- letta_sdk/types/block_list_agents_params.py +43 -0
- letta_sdk/types/block_list_agents_response.py +10 -0
- letta_sdk/types/block_list_params.py +89 -0
- letta_sdk/types/block_list_response.py +10 -0
- letta_sdk/types/block_update_params.py +52 -0
- letta_sdk/types/child_tool_rule.py +21 -0
- letta_sdk/types/child_tool_rule_param.py +23 -0
- letta_sdk/types/client_side_access_token_create_params.py +32 -0
- letta_sdk/types/client_side_access_token_create_response.py +34 -0
- letta_sdk/types/client_side_access_token_delete_params.py +11 -0
- letta_sdk/types/client_side_access_token_list_params.py +23 -0
- letta_sdk/types/client_side_access_token_list_response.py +40 -0
- letta_sdk/types/conditional_tool_rule.py +27 -0
- letta_sdk/types/conditional_tool_rule_param.py +27 -0
- letta_sdk/types/continue_tool_rule.py +18 -0
- letta_sdk/types/continue_tool_rule_param.py +18 -0
- letta_sdk/types/create_block_param.py +51 -0
- letta_sdk/types/duplicate_file_handling.py +7 -0
- letta_sdk/types/dynamic_manager_param.py +18 -0
- letta_sdk/types/embedding_config.py +60 -0
- letta_sdk/types/embedding_config_param.py +62 -0
- letta_sdk/types/embedding_get_total_storage_size_response.py +7 -0
- letta_sdk/types/file_metadata.py +65 -0
- letta_sdk/types/file_processing_status.py +7 -0
- letta_sdk/types/folder.py +41 -0
- letta_sdk/types/folder_count_response.py +7 -0
- letta_sdk/types/folder_create_params.py +33 -0
- letta_sdk/types/folder_get_by_name_response.py +7 -0
- letta_sdk/types/folder_list_agents_params.py +34 -0
- letta_sdk/types/folder_list_agents_response.py +8 -0
- letta_sdk/types/folder_list_files_params.py +37 -0
- letta_sdk/types/folder_list_files_response.py +10 -0
- letta_sdk/types/folder_list_params.py +37 -0
- letta_sdk/types/folder_list_passages_params.py +34 -0
- letta_sdk/types/folder_list_passages_response.py +10 -0
- letta_sdk/types/folder_list_response.py +10 -0
- letta_sdk/types/folder_retrieve_metadata_params.py +11 -0
- letta_sdk/types/folder_update_params.py +27 -0
- letta_sdk/types/folder_upload_file_params.py +21 -0
- letta_sdk/types/group.py +61 -0
- letta_sdk/types/group_count_response.py +7 -0
- letta_sdk/types/group_create_params.py +44 -0
- letta_sdk/types/group_list_params.py +42 -0
- letta_sdk/types/group_list_response.py +10 -0
- letta_sdk/types/group_update_params.py +93 -0
- letta_sdk/types/groups/__init__.py +10 -0
- letta_sdk/types/groups/message_list_params.py +43 -0
- letta_sdk/types/groups/message_list_response.py +10 -0
- letta_sdk/types/groups/message_send_params.py +46 -0
- letta_sdk/types/groups/message_send_stream_params.py +61 -0
- letta_sdk/types/groups/message_update_params.py +66 -0
- letta_sdk/types/groups/message_update_response.py +32 -0
- letta_sdk/types/health_check_response.py +11 -0
- letta_sdk/types/identity.py +35 -0
- letta_sdk/types/identity_count_response.py +7 -0
- letta_sdk/types/identity_create_params.py +39 -0
- letta_sdk/types/identity_list_agents_params.py +34 -0
- letta_sdk/types/identity_list_agents_response.py +10 -0
- letta_sdk/types/identity_list_blocks_params.py +34 -0
- letta_sdk/types/identity_list_blocks_response.py +10 -0
- letta_sdk/types/identity_list_params.py +45 -0
- letta_sdk/types/identity_list_response.py +10 -0
- letta_sdk/types/identity_modify_params.py +32 -0
- letta_sdk/types/identity_property.py +19 -0
- letta_sdk/types/identity_property_param.py +19 -0
- letta_sdk/types/identity_type.py +7 -0
- letta_sdk/types/identity_upsert_params.py +39 -0
- letta_sdk/types/identity_upsert_properties_params.py +14 -0
- letta_sdk/types/init_tool_rule.py +21 -0
- letta_sdk/types/init_tool_rule_param.py +21 -0
- letta_sdk/types/internal_template_create_agent_params.py +217 -0
- letta_sdk/types/internal_template_create_block_params.py +54 -0
- letta_sdk/types/internal_template_create_group_params.py +49 -0
- letta_sdk/types/job.py +61 -0
- letta_sdk/types/job_list_active_params.py +28 -0
- letta_sdk/types/job_list_active_response.py +10 -0
- letta_sdk/types/job_list_params.py +31 -0
- letta_sdk/types/job_list_response.py +10 -0
- letta_sdk/types/json_object_response_format.py +13 -0
- letta_sdk/types/json_object_response_format_param.py +12 -0
- letta_sdk/types/json_schema_response_format.py +16 -0
- letta_sdk/types/json_schema_response_format_param.py +16 -0
- letta_sdk/types/letta_message_content_union_param.py +26 -0
- letta_sdk/types/llm_config.py +110 -0
- letta_sdk/types/llm_config_param.py +111 -0
- letta_sdk/types/manager_type.py +7 -0
- letta_sdk/types/max_count_per_step_tool_rule.py +24 -0
- letta_sdk/types/max_count_per_step_tool_rule_param.py +24 -0
- letta_sdk/types/message_create_param.py +36 -0
- letta_sdk/types/messages/__init__.py +10 -0
- letta_sdk/types/messages/batch_create_params.py +64 -0
- letta_sdk/types/messages/batch_job.py +60 -0
- letta_sdk/types/messages/batch_list_messages_params.py +37 -0
- letta_sdk/types/messages/batch_list_messages_response.py +12 -0
- letta_sdk/types/messages/batch_list_params.py +34 -0
- letta_sdk/types/messages/batch_list_response.py +10 -0
- letta_sdk/types/model_list_embedding_response.py +10 -0
- letta_sdk/types/model_list_params.py +19 -0
- letta_sdk/types/model_list_response.py +10 -0
- letta_sdk/types/npm_requirement.py +15 -0
- letta_sdk/types/npm_requirement_param.py +16 -0
- letta_sdk/types/organization_sources_stats.py +49 -0
- letta_sdk/types/parent_tool_rule.py +21 -0
- letta_sdk/types/parent_tool_rule_param.py +23 -0
- letta_sdk/types/passage.py +56 -0
- letta_sdk/types/pip_requirement.py +15 -0
- letta_sdk/types/pip_requirement_param.py +16 -0
- letta_sdk/types/project_list_params.py +16 -0
- letta_sdk/types/project_list_response.py +23 -0
- letta_sdk/types/provider.py +42 -0
- letta_sdk/types/provider_category.py +7 -0
- letta_sdk/types/provider_check_params.py +30 -0
- letta_sdk/types/provider_create_params.py +33 -0
- letta_sdk/types/provider_list_params.py +42 -0
- letta_sdk/types/provider_list_response.py +10 -0
- letta_sdk/types/provider_trace.py +34 -0
- letta_sdk/types/provider_type.py +25 -0
- letta_sdk/types/provider_update_params.py +25 -0
- letta_sdk/types/required_before_exit_tool_rule.py +18 -0
- letta_sdk/types/required_before_exit_tool_rule_param.py +18 -0
- letta_sdk/types/requires_approval_tool_rule.py +21 -0
- letta_sdk/types/requires_approval_tool_rule_param.py +21 -0
- letta_sdk/types/round_robin_manager_param.py +14 -0
- letta_sdk/types/run_list_active_params.py +18 -0
- letta_sdk/types/run_list_active_response.py +10 -0
- letta_sdk/types/run_list_messages_params.py +31 -0
- letta_sdk/types/run_list_messages_response.py +10 -0
- letta_sdk/types/run_list_params.py +40 -0
- letta_sdk/types/run_list_response.py +10 -0
- letta_sdk/types/run_list_steps_params.py +25 -0
- letta_sdk/types/run_list_steps_response.py +10 -0
- letta_sdk/types/run_retrieve_stream_params.py +28 -0
- letta_sdk/types/run_retrieve_usage_response.py +27 -0
- letta_sdk/types/sleeptime_manager_param.py +16 -0
- letta_sdk/types/source.py +45 -0
- letta_sdk/types/source_count_response.py +7 -0
- letta_sdk/types/source_create_params.py +33 -0
- letta_sdk/types/source_get_agents_response.py +8 -0
- letta_sdk/types/source_get_by_name_response.py +7 -0
- letta_sdk/types/source_get_metadata_params.py +11 -0
- letta_sdk/types/source_list_passages_params.py +19 -0
- letta_sdk/types/source_list_passages_response.py +10 -0
- letta_sdk/types/source_list_response.py +10 -0
- letta_sdk/types/source_update_params.py +27 -0
- letta_sdk/types/source_upload_file_params.py +21 -0
- letta_sdk/types/sources/__init__.py +7 -0
- letta_sdk/types/sources/file_list_params.py +26 -0
- letta_sdk/types/sources/file_list_response.py +10 -0
- letta_sdk/types/sources/file_retrieve_params.py +14 -0
- letta_sdk/types/step.py +92 -0
- letta_sdk/types/step_list_messages_params.py +34 -0
- letta_sdk/types/step_list_messages_response.py +34 -0
- letta_sdk/types/step_list_params.py +61 -0
- letta_sdk/types/step_list_response.py +10 -0
- letta_sdk/types/step_retrieve_metrics_response.py +45 -0
- letta_sdk/types/step_update_feedback_params.py +18 -0
- letta_sdk/types/stop_reason_type.py +18 -0
- letta_sdk/types/supervisor_manager_param.py +13 -0
- letta_sdk/types/tag_list_params.py +40 -0
- letta_sdk/types/tag_list_response.py +8 -0
- letta_sdk/types/template_create_agents_params.py +52 -0
- letta_sdk/types/template_create_agents_response.py +12 -0
- letta_sdk/types/template_create_params.py +40 -0
- letta_sdk/types/template_create_response.py +29 -0
- letta_sdk/types/template_delete_response.py +9 -0
- letta_sdk/types/template_fork_params.py +17 -0
- letta_sdk/types/template_fork_response.py +29 -0
- letta_sdk/types/template_get_snapshot_response.py +258 -0
- letta_sdk/types/template_list_params.py +34 -0
- letta_sdk/types/template_list_response.py +35 -0
- letta_sdk/types/template_list_versions_params.py +16 -0
- letta_sdk/types/template_list_versions_response.py +29 -0
- letta_sdk/types/template_rename_params.py +14 -0
- letta_sdk/types/template_rename_response.py +9 -0
- letta_sdk/types/template_save_version_params.py +32 -0
- letta_sdk/types/template_save_version_response.py +29 -0
- letta_sdk/types/template_update_description_params.py +14 -0
- letta_sdk/types/template_update_description_response.py +9 -0
- letta_sdk/types/terminal_tool_rule.py +18 -0
- letta_sdk/types/terminal_tool_rule_param.py +18 -0
- letta_sdk/types/text_response_format.py +13 -0
- letta_sdk/types/text_response_format_param.py +12 -0
- letta_sdk/types/tool.py +62 -0
- letta_sdk/types/tool_count_params.py +35 -0
- letta_sdk/types/tool_count_response.py +7 -0
- letta_sdk/types/tool_create_params.py +47 -0
- letta_sdk/types/tool_list_params.py +57 -0
- letta_sdk/types/tool_list_response.py +10 -0
- letta_sdk/types/tool_modify_params.py +51 -0
- letta_sdk/types/tool_return_message.py +42 -0
- letta_sdk/types/tool_run_params.py +43 -0
- letta_sdk/types/tool_type.py +19 -0
- letta_sdk/types/tool_upsert_base_response.py +10 -0
- letta_sdk/types/tool_upsert_params.py +47 -0
- letta_sdk/types/tools/__init__.py +3 -0
- letta_sdk/types/tools/composio/__init__.py +6 -0
- letta_sdk/types/tools/composio/app_list_actions_response.py +70 -0
- letta_sdk/types/tools/composio/app_list_response.py +103 -0
- letta_sdk/types/tools/mcp/__init__.py +21 -0
- letta_sdk/types/tools/mcp/mcp_server_type.py +7 -0
- letta_sdk/types/tools/mcp/oauth_callback_params.py +22 -0
- letta_sdk/types/tools/mcp/server_add_params.py +68 -0
- letta_sdk/types/tools/mcp/server_add_response.py +14 -0
- letta_sdk/types/tools/mcp/server_connect_params.py +68 -0
- letta_sdk/types/tools/mcp/server_delete_response.py +14 -0
- letta_sdk/types/tools/mcp/server_list_response.py +14 -0
- letta_sdk/types/tools/mcp/server_resync_params.py +12 -0
- letta_sdk/types/tools/mcp/server_test_params.py +68 -0
- letta_sdk/types/tools/mcp/server_update_params.py +43 -0
- letta_sdk/types/tools/mcp/server_update_response.py +12 -0
- letta_sdk/types/tools/mcp/servers/__init__.py +6 -0
- letta_sdk/types/tools/mcp/servers/tool_execute_params.py +15 -0
- letta_sdk/types/tools/mcp/servers/tool_list_response.py +85 -0
- letta_sdk/types/tools/mcp/sse_server_config.py +27 -0
- letta_sdk/types/tools/mcp/sse_server_config_param.py +29 -0
- letta_sdk/types/tools/mcp/stdio_server_config.py +24 -0
- letta_sdk/types/tools/mcp/stdio_server_config_param.py +27 -0
- letta_sdk/types/tools/mcp/streamable_http_server_config.py +27 -0
- letta_sdk/types/tools/mcp/streamable_http_server_config_param.py +29 -0
- letta_sdk/types/vector_db_provider.py +7 -0
- letta_sdk/types/voice_beta/__init__.py +5 -0
- letta_sdk/types/voice_beta/chat_create_completion_params.py +12 -0
- letta_sdk/types/voice_sleeptime_manager_param.py +27 -0
- letta_client/__init__.py +0 -1802
- letta_client/agents/__init__.py +0 -83
- letta_client/agents/blocks/__init__.py +0 -7
- letta_client/agents/blocks/client.py +0 -679
- letta_client/agents/blocks/raw_client.py +0 -769
- letta_client/agents/blocks/types/__init__.py +0 -7
- letta_client/agents/blocks/types/blocks_list_request_order.py +0 -5
- letta_client/agents/client.py +0 -1945
- letta_client/agents/context/__init__.py +0 -4
- letta_client/agents/context/client.py +0 -116
- letta_client/agents/context/raw_client.py +0 -124
- letta_client/agents/core_memory/__init__.py +0 -4
- letta_client/agents/core_memory/client.py +0 -114
- letta_client/agents/core_memory/raw_client.py +0 -126
- letta_client/agents/files/__init__.py +0 -7
- letta_client/agents/files/client.py +0 -473
- letta_client/agents/files/raw_client.py +0 -541
- letta_client/agents/files/types/__init__.py +0 -7
- letta_client/agents/files/types/files_list_request_order.py +0 -5
- letta_client/agents/folders/__init__.py +0 -7
- letta_client/agents/folders/client.py +0 -356
- letta_client/agents/folders/raw_client.py +0 -398
- letta_client/agents/folders/types/__init__.py +0 -7
- letta_client/agents/folders/types/folders_list_request_order.py +0 -5
- letta_client/agents/groups/__init__.py +0 -7
- letta_client/agents/groups/client.py +0 -199
- letta_client/agents/groups/raw_client.py +0 -195
- letta_client/agents/groups/types/__init__.py +0 -7
- letta_client/agents/groups/types/groups_list_request_order.py +0 -5
- letta_client/agents/memory_variables/__init__.py +0 -7
- letta_client/agents/memory_variables/client.py +0 -118
- letta_client/agents/memory_variables/raw_client.py +0 -125
- letta_client/agents/memory_variables/types/__init__.py +0 -7
- letta_client/agents/memory_variables/types/memory_variables_list_response.py +0 -20
- letta_client/agents/messages/__init__.py +0 -23
- letta_client/agents/messages/client.py +0 -1514
- letta_client/agents/messages/raw_client.py +0 -1731
- letta_client/agents/messages/types/__init__.py +0 -21
- letta_client/agents/messages/types/letta_async_request_messages_item.py +0 -8
- letta_client/agents/messages/types/letta_streaming_response.py +0 -31
- letta_client/agents/messages/types/message_search_request_search_mode.py +0 -5
- letta_client/agents/messages/types/messages_list_request_order.py +0 -5
- letta_client/agents/messages/types/messages_modify_request.py +0 -12
- letta_client/agents/messages/types/messages_modify_response.py +0 -25
- letta_client/agents/messages/types/messages_preview_request.py +0 -8
- letta_client/agents/passages/__init__.py +0 -7
- letta_client/agents/passages/client.py +0 -637
- letta_client/agents/passages/raw_client.py +0 -685
- letta_client/agents/passages/types/__init__.py +0 -7
- letta_client/agents/passages/types/passages_search_request_tag_match_mode.py +0 -5
- letta_client/agents/raw_client.py +0 -2145
- letta_client/agents/sources/__init__.py +0 -7
- letta_client/agents/sources/client.py +0 -356
- letta_client/agents/sources/raw_client.py +0 -398
- letta_client/agents/sources/types/__init__.py +0 -7
- letta_client/agents/sources/types/sources_list_request_order.py +0 -5
- letta_client/agents/tools/__init__.py +0 -7
- letta_client/agents/tools/client.py +0 -458
- letta_client/agents/tools/raw_client.py +0 -522
- letta_client/agents/tools/types/__init__.py +0 -7
- letta_client/agents/tools/types/tools_list_request_order.py +0 -5
- letta_client/agents/types/__init__.py +0 -37
- letta_client/agents/types/agents_list_request_order.py +0 -5
- letta_client/agents/types/agents_list_request_order_by.py +0 -5
- letta_client/agents/types/agents_search_request_search_item.py +0 -17
- letta_client/agents/types/agents_search_request_search_item_field.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_one.py +0 -23
- letta_client/agents/types/agents_search_request_search_item_one_operator.py +0 -5
- letta_client/agents/types/agents_search_request_search_item_three.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_two.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_zero.py +0 -21
- letta_client/agents/types/agents_search_request_sort_by.py +0 -5
- letta_client/agents/types/agents_search_response.py +0 -24
- letta_client/agents/types/create_agent_request_response_format.py +0 -9
- letta_client/agents/types/create_agent_request_tool_rules_item.py +0 -25
- letta_client/agents/types/update_agent_response_format.py +0 -9
- letta_client/agents/types/update_agent_tool_rules_item.py +0 -25
- letta_client/archives/__init__.py +0 -7
- letta_client/archives/client.py +0 -378
- letta_client/archives/raw_client.py +0 -450
- letta_client/archives/types/__init__.py +0 -7
- letta_client/archives/types/list_archives_request_order.py +0 -5
- letta_client/base_client.py +0 -224
- letta_client/batches/__init__.py +0 -9
- letta_client/batches/client.py +0 -449
- letta_client/batches/messages/__init__.py +0 -7
- letta_client/batches/messages/client.py +0 -197
- letta_client/batches/messages/raw_client.py +0 -193
- letta_client/batches/messages/types/__init__.py +0 -7
- letta_client/batches/messages/types/messages_list_request_order.py +0 -5
- letta_client/batches/raw_client.py +0 -522
- letta_client/batches/types/__init__.py +0 -7
- letta_client/batches/types/batches_list_request_order.py +0 -5
- letta_client/blocks/__init__.py +0 -9
- letta_client/blocks/agents/__init__.py +0 -7
- letta_client/blocks/agents/client.py +0 -199
- letta_client/blocks/agents/raw_client.py +0 -197
- letta_client/blocks/agents/types/__init__.py +0 -7
- letta_client/blocks/agents/types/agents_list_request_order.py +0 -5
- letta_client/blocks/client.py +0 -957
- letta_client/blocks/raw_client.py +0 -1080
- letta_client/blocks/types/__init__.py +0 -7
- letta_client/blocks/types/blocks_list_request_order.py +0 -5
- letta_client/chat/__init__.py +0 -7
- letta_client/chat/client.py +0 -255
- letta_client/chat/raw_client.py +0 -269
- letta_client/chat/types/__init__.py +0 -8
- letta_client/chat/types/chat_completion_request_messages_item.py +0 -19
- letta_client/chat/types/chat_completion_request_stop.py +0 -5
- letta_client/client.py +0 -706
- letta_client/client_side_access_tokens/__init__.py +0 -31
- letta_client/client_side_access_tokens/client.py +0 -361
- letta_client/client_side_access_tokens/raw_client.py +0 -435
- letta_client/client_side_access_tokens/types/__init__.py +0 -45
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_request_policy_item.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_request_policy_item_access_item.py +0 -7
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response.py +0 -26
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy.py +0 -24
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py +0 -7
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response.py +0 -26
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item.py +0 -28
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy.py +0 -24
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py +0 -7
- letta_client/core/__init__.py +0 -56
- letta_client/core/api_error.py +0 -23
- letta_client/core/client_wrapper.py +0 -86
- letta_client/core/datetime_utils.py +0 -28
- letta_client/core/file.py +0 -67
- letta_client/core/force_multipart.py +0 -16
- letta_client/core/http_client.py +0 -543
- letta_client/core/http_response.py +0 -55
- letta_client/core/jsonable_encoder.py +0 -100
- letta_client/core/pydantic_utilities.py +0 -255
- letta_client/core/query_encoder.py +0 -58
- letta_client/core/remove_none_from_dict.py +0 -11
- letta_client/core/request_options.py +0 -35
- letta_client/core/serialization.py +0 -276
- letta_client/core/unchecked_base_model.py +0 -341
- letta_client/environment.py +0 -8
- letta_client/errors/__init__.py +0 -21
- letta_client/errors/bad_request_error.py +0 -10
- letta_client/errors/conflict_error.py +0 -11
- letta_client/errors/gone_error.py +0 -10
- letta_client/errors/internal_server_error.py +0 -10
- letta_client/errors/not_found_error.py +0 -10
- letta_client/errors/payment_required_error.py +0 -11
- letta_client/errors/unprocessable_entity_error.py +0 -11
- letta_client/folders/__init__.py +0 -19
- letta_client/folders/agents/__init__.py +0 -7
- letta_client/folders/agents/client.py +0 -184
- letta_client/folders/agents/raw_client.py +0 -182
- letta_client/folders/agents/types/__init__.py +0 -7
- letta_client/folders/agents/types/agents_list_request_order.py +0 -5
- letta_client/folders/client.py +0 -869
- letta_client/folders/files/__init__.py +0 -7
- letta_client/folders/files/client.py +0 -390
- letta_client/folders/files/raw_client.py +0 -432
- letta_client/folders/files/types/__init__.py +0 -7
- letta_client/folders/files/types/files_list_request_order.py +0 -5
- letta_client/folders/passages/__init__.py +0 -7
- letta_client/folders/passages/client.py +0 -185
- letta_client/folders/passages/raw_client.py +0 -183
- letta_client/folders/passages/types/__init__.py +0 -7
- letta_client/folders/passages/types/passages_list_request_order.py +0 -5
- letta_client/folders/raw_client.py +0 -1063
- letta_client/folders/types/__init__.py +0 -7
- letta_client/folders/types/folders_list_request_order.py +0 -5
- letta_client/groups/__init__.py +0 -18
- letta_client/groups/client.py +0 -696
- letta_client/groups/messages/__init__.py +0 -7
- letta_client/groups/messages/client.py +0 -812
- letta_client/groups/messages/raw_client.py +0 -925
- letta_client/groups/messages/types/__init__.py +0 -10
- letta_client/groups/messages/types/letta_streaming_response.py +0 -21
- letta_client/groups/messages/types/messages_list_request_order.py +0 -5
- letta_client/groups/messages/types/messages_modify_request.py +0 -12
- letta_client/groups/messages/types/messages_modify_response.py +0 -25
- letta_client/groups/raw_client.py +0 -844
- letta_client/groups/types/__init__.py +0 -9
- letta_client/groups/types/group_create_manager_config.py +0 -13
- letta_client/groups/types/group_update_manager_config.py +0 -17
- letta_client/groups/types/groups_list_request_order.py +0 -5
- letta_client/health/__init__.py +0 -4
- letta_client/health/client.py +0 -98
- letta_client/health/raw_client.py +0 -85
- letta_client/identities/__init__.py +0 -17
- letta_client/identities/agents/__init__.py +0 -7
- letta_client/identities/agents/client.py +0 -187
- letta_client/identities/agents/raw_client.py +0 -185
- letta_client/identities/agents/types/__init__.py +0 -7
- letta_client/identities/agents/types/agents_list_request_order.py +0 -5
- letta_client/identities/blocks/__init__.py +0 -7
- letta_client/identities/blocks/client.py +0 -187
- letta_client/identities/blocks/raw_client.py +0 -185
- letta_client/identities/blocks/types/__init__.py +0 -7
- letta_client/identities/blocks/types/blocks_list_request_order.py +0 -5
- letta_client/identities/client.py +0 -879
- letta_client/identities/properties/__init__.py +0 -4
- letta_client/identities/properties/client.py +0 -141
- letta_client/identities/properties/raw_client.py +0 -154
- letta_client/identities/raw_client.py +0 -1043
- letta_client/identities/types/__init__.py +0 -7
- letta_client/identities/types/identities_list_request_order.py +0 -5
- letta_client/jobs/__init__.py +0 -7
- letta_client/jobs/client.py +0 -569
- letta_client/jobs/raw_client.py +0 -659
- letta_client/jobs/types/__init__.py +0 -7
- letta_client/jobs/types/jobs_list_request_order.py +0 -5
- letta_client/models/__init__.py +0 -7
- letta_client/models/client.py +0 -205
- letta_client/models/embeddings/__init__.py +0 -4
- letta_client/models/embeddings/client.py +0 -102
- letta_client/models/embeddings/raw_client.py +0 -117
- letta_client/models/raw_client.py +0 -201
- letta_client/projects/__init__.py +0 -7
- letta_client/projects/client.py +0 -136
- letta_client/projects/raw_client.py +0 -125
- letta_client/projects/types/__init__.py +0 -8
- letta_client/projects/types/projects_list_response.py +0 -24
- letta_client/projects/types/projects_list_response_projects_item.py +0 -22
- letta_client/providers/__init__.py +0 -7
- letta_client/providers/client.py +0 -863
- letta_client/providers/raw_client.py +0 -1031
- letta_client/providers/types/__init__.py +0 -7
- letta_client/providers/types/providers_list_request_order.py +0 -5
- letta_client/runs/__init__.py +0 -18
- letta_client/runs/client.py +0 -711
- letta_client/runs/messages/__init__.py +0 -7
- letta_client/runs/messages/client.py +0 -185
- letta_client/runs/messages/raw_client.py +0 -183
- letta_client/runs/messages/types/__init__.py +0 -7
- letta_client/runs/messages/types/messages_list_request_order.py +0 -5
- letta_client/runs/raw_client.py +0 -858
- letta_client/runs/steps/__init__.py +0 -7
- letta_client/runs/steps/client.py +0 -185
- letta_client/runs/steps/raw_client.py +0 -183
- letta_client/runs/steps/types/__init__.py +0 -7
- letta_client/runs/steps/types/steps_list_request_order.py +0 -5
- letta_client/runs/types/__init__.py +0 -8
- letta_client/runs/types/letta_streaming_response.py +0 -31
- letta_client/runs/types/runs_list_request_order.py +0 -5
- letta_client/runs/usage/__init__.py +0 -4
- letta_client/runs/usage/client.py +0 -112
- letta_client/runs/usage/raw_client.py +0 -122
- letta_client/sources/__init__.py +0 -7
- letta_client/sources/client.py +0 -962
- letta_client/sources/files/__init__.py +0 -4
- letta_client/sources/files/client.py +0 -375
- letta_client/sources/files/raw_client.py +0 -419
- letta_client/sources/passages/__init__.py +0 -4
- letta_client/sources/passages/client.py +0 -156
- letta_client/sources/passages/raw_client.py +0 -164
- letta_client/sources/raw_client.py +0 -1221
- letta_client/steps/__init__.py +0 -18
- letta_client/steps/client.py +0 -370
- letta_client/steps/feedback/__init__.py +0 -4
- letta_client/steps/feedback/client.py +0 -144
- letta_client/steps/feedback/raw_client.py +0 -166
- letta_client/steps/messages/__init__.py +0 -7
- letta_client/steps/messages/client.py +0 -187
- letta_client/steps/messages/raw_client.py +0 -185
- letta_client/steps/messages/types/__init__.py +0 -8
- letta_client/steps/messages/types/messages_list_request_order.py +0 -5
- letta_client/steps/messages/types/messages_list_response_item.py +0 -25
- letta_client/steps/metrics/__init__.py +0 -4
- letta_client/steps/metrics/client.py +0 -112
- letta_client/steps/metrics/raw_client.py +0 -124
- letta_client/steps/raw_client.py +0 -366
- letta_client/steps/trace/__init__.py +0 -4
- letta_client/steps/trace/client.py +0 -112
- letta_client/steps/trace/raw_client.py +0 -124
- letta_client/steps/types/__init__.py +0 -8
- letta_client/steps/types/steps_list_request_feedback.py +0 -5
- letta_client/steps/types/steps_list_request_order.py +0 -5
- letta_client/tags/__init__.py +0 -7
- letta_client/tags/client.py +0 -198
- letta_client/tags/raw_client.py +0 -195
- letta_client/tags/types/__init__.py +0 -7
- letta_client/tags/types/tags_list_request_order.py +0 -5
- letta_client/telemetry/__init__.py +0 -4
- letta_client/telemetry/client.py +0 -118
- letta_client/telemetry/raw_client.py +0 -130
- letta_client/templates/__init__.py +0 -1019
- letta_client/templates/agents/__init__.py +0 -4
- letta_client/templates/agents/client.py +0 -113
- letta_client/templates/agents/raw_client.py +0 -80
- letta_client/templates/client.py +0 -1631
- letta_client/templates/raw_client.py +0 -2106
- letta_client/templates/types/__init__.py +0 -1977
- letta_client/templates/types/templates_create_agents_from_template_request_initial_message_sequence_item.py +0 -29
- letta_client/templates/types/templates_create_agents_from_template_request_initial_message_sequence_item_role.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response.py +0 -29
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py +0 -157
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_agent_type.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_deployment_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_deployment_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config.py +0 -63
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_batch_size.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_type.py +0 -28
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_enable_sleeptime.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_enable_sleeptime_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_entity_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_entity_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_hidden_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identity_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_completion.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_completion_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_duration_ms.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_duration_ms_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py +0 -107
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_compatibility_type.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_compatibility_type_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_display_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_display_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_enable_reasoner.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_frequency_penalty.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_frequency_penalty_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_reasoning_tokens.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_type.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_category.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_category_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_reasoning_effort.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_reasoning_effort_item.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_temperature.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_tier.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_tier_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_verbosity.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_verbosity_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_max_files_open.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_max_files_open_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory.py +0 -35
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_agent_type.py +0 -23
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_agent_type_item.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item.py +0 -94
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_base_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_deployment_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_entity_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_entity_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_hidden_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_id.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_is_template.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_limit.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_preserve_on_migration.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_preserve_on_migration_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_read_only.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item.py +0 -107
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_base_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_created_by_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_created_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_deployment_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_description.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_description_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_entity_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_entity_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_hidden_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_id.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_is_template.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_label.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_label_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_accessed_at.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_accessed_at_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_updated_by_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_limit.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_name_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_preserve_on_migration.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_preserve_on_migration_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_read_only.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_prompt_template.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_buffer_autoclear.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids.py +0 -108
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_base_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_deployment_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_hidden_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_last_processed_message_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_last_processed_message_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_agent_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_agent_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_turns.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_turns_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_min_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_min_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_project_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_shared_block_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_sleeptime_agent_frequency.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_sleeptime_agent_frequency_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_termination_token.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_termination_token_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_turns_counter.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_turns_counter_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids.py +0 -108
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_base_template_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_deployment_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_hidden.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_hidden_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_last_processed_message_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_last_processed_message_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_turns.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_turns_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_min_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_min_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_project_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_shared_block_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_sleeptime_agent_frequency.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_sleeptime_agent_frequency_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_termination_token.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_termination_token_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_turns_counter.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_turns_counter_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_per_file_view_window_char_limit.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_per_file_view_window_char_limit_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format.py +0 -25
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_json_schema.py +0 -24
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_json_schema_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_type.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_zero.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_json_schema.py +0 -24
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_json_schema_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_type.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_zero.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item.py +0 -58
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_id.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_last_updated_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_organization_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_organization_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_updated_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_updated_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_value_enc.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_value_enc_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item.py +0 -70
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config.py +0 -67
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_batch_size.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_type.py +0 -28
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_id.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_instructions.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_instructions_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_vector_db_provider.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_timezone.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_timezone_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item.py +0 -68
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_id.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_value_enc.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_value_enc_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args.py +0 -34
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_args.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes.py +0 -37
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_args.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_item.py +0 -28
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_item_args.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_item_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping.py +0 -43
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_require_output_mapping.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item.py +0 -43
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args.py +0 -34
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_args.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes.py +0 -37
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_args.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_item.py +0 -28
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_item_args.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_item_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping.py +0 -45
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_require_output_mapping.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_prompt_template.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_type.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item.py +0 -93
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_args_json_schema.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_args_json_schema_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_default_requires_approval.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_default_requires_approval_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item.py +0 -26
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item.py +0 -26
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_tool_type.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group.py +0 -90
- letta_client/templates/types/templates_create_agents_from_template_response_group_base_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_base_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_deployment_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_deployment_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_hidden_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_last_processed_message_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_last_processed_message_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_agent_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_agent_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_message_buffer_length.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_message_buffer_length_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_turns.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_turns_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_min_message_buffer_length.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_min_message_buffer_length_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_project_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_shared_block_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_group_sleeptime_agent_frequency.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_sleeptime_agent_frequency_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_termination_token.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_termination_token_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_turns_counter.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_turns_counter_item.py +0 -5
- letta_client/templates/types/templates_create_template_request.py +0 -10
- letta_client/templates/types/templates_create_template_request_agent_file.py +0 -38
- letta_client/templates/types/templates_create_template_request_agent_id.py +0 -33
- letta_client/templates/types/templates_create_template_response.py +0 -42
- letta_client/templates/types/templates_delete_template_response.py +0 -20
- letta_client/templates/types/templates_fork_template_response.py +0 -42
- letta_client/templates/types/templates_get_template_snapshot_response.py +0 -32
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item.py +0 -62
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_agent_type.py +0 -18
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables_data_item.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties.py +0 -36
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties_reasoning_effort.py +0 -7
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties_verbosity_level.py +0 -7
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item.py +0 -43
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_args.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_arg_nodes.py +0 -29
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item.py +0 -21
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_output_mapping.py +0 -25
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_five.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_four.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_max_count_limit.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_prompt_template.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_seven.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_two.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_variables.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_variables_data_item.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_blocks_item.py +0 -30
- letta_client/templates/types/templates_get_template_snapshot_response_configuration.py +0 -36
- letta_client/templates/types/templates_get_template_snapshot_response_relationships_item.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_type.py +0 -8
- letta_client/templates/types/templates_list_request_sort_by.py +0 -5
- letta_client/templates/types/templates_list_response.py +0 -22
- letta_client/templates/types/templates_list_response_templates_item.py +0 -42
- letta_client/templates/types/templates_list_template_versions_response.py +0 -23
- letta_client/templates/types/templates_list_template_versions_response_versions_item.py +0 -38
- letta_client/templates/types/templates_migrate_deployment_response.py +0 -21
- letta_client/templates/types/templates_rename_template_response.py +0 -20
- letta_client/templates/types/templates_save_template_version_response.py +0 -42
- letta_client/templates/types/templates_set_current_template_from_snapshot_response.py +0 -21
- letta_client/templates/types/templates_update_current_template_from_agent_file_response.py +0 -21
- letta_client/templates/types/templates_update_template_description_response.py +0 -20
- letta_client/tools/__init__.py +0 -31
- letta_client/tools/client.py +0 -2034
- letta_client/tools/raw_client.py +0 -2551
- letta_client/tools/types/__init__.py +0 -29
- letta_client/tools/types/add_mcp_server_request.py +0 -9
- letta_client/tools/types/add_mcp_server_response_item.py +0 -9
- letta_client/tools/types/connect_mcp_server_request.py +0 -9
- letta_client/tools/types/connect_mcp_server_response_event.py +0 -8
- letta_client/tools/types/delete_mcp_server_response_item.py +0 -9
- letta_client/tools/types/list_mcp_servers_response_value.py +0 -9
- letta_client/tools/types/streaming_response.py +0 -24
- letta_client/tools/types/test_mcp_server_request.py +0 -9
- letta_client/tools/types/tools_list_request_order.py +0 -5
- letta_client/tools/types/update_mcp_server_request.py +0 -9
- letta_client/tools/types/update_mcp_server_response.py +0 -9
- letta_client/types/__init__.py +0 -621
- letta_client/types/agent_environment_variable.py +0 -69
- letta_client/types/agent_file_attachment.py +0 -73
- letta_client/types/agent_file_schema.py +0 -75
- letta_client/types/agent_state.py +0 -226
- letta_client/types/agent_state_response_format.py +0 -9
- letta_client/types/agent_state_tool_rules_item.py +0 -25
- letta_client/types/agent_type.py +0 -18
- letta_client/types/annotation.py +0 -22
- letta_client/types/annotation_url_citation.py +0 -23
- letta_client/types/approval_create.py +0 -48
- letta_client/types/approval_create_approvals_item.py +0 -8
- letta_client/types/approval_request_message.py +0 -51
- letta_client/types/approval_request_message_tool_call.py +0 -8
- letta_client/types/approval_request_message_tool_calls.py +0 -8
- letta_client/types/approval_response_message.py +0 -62
- letta_client/types/approval_response_message_approvals_item.py +0 -8
- letta_client/types/approval_return.py +0 -34
- letta_client/types/archival_memory_search_response.py +0 -29
- letta_client/types/archival_memory_search_result.py +0 -33
- letta_client/types/archive.py +0 -77
- letta_client/types/assistant_message.py +0 -45
- letta_client/types/assistant_message_content.py +0 -7
- letta_client/types/audio.py +0 -20
- letta_client/types/auth_request.py +0 -23
- letta_client/types/auth_response.py +0 -30
- letta_client/types/bad_request_error_body.py +0 -20
- letta_client/types/base_64_image.py +0 -34
- letta_client/types/base_tool_rule_schema.py +0 -21
- letta_client/types/batch_job.py +0 -108
- letta_client/types/block.py +0 -118
- letta_client/types/block_schema.py +0 -93
- letta_client/types/block_update.py +0 -92
- letta_client/types/body_export_agent.py +0 -25
- letta_client/types/chat_completion.py +0 -30
- letta_client/types/chat_completion_assistant_message_param.py +0 -30
- letta_client/types/chat_completion_assistant_message_param_content.py +0 -9
- letta_client/types/chat_completion_assistant_message_param_content_item.py +0 -10
- letta_client/types/chat_completion_assistant_message_param_tool_calls_item.py +0 -10
- letta_client/types/chat_completion_audio.py +0 -23
- letta_client/types/chat_completion_content_part_image_param.py +0 -22
- letta_client/types/chat_completion_content_part_input_audio_param.py +0 -22
- letta_client/types/chat_completion_content_part_refusal_param.py +0 -21
- letta_client/types/chat_completion_content_part_text_param.py +0 -21
- letta_client/types/chat_completion_developer_message_param.py +0 -23
- letta_client/types/chat_completion_developer_message_param_content.py +0 -7
- letta_client/types/chat_completion_function_message_param.py +0 -22
- letta_client/types/chat_completion_message.py +0 -30
- letta_client/types/chat_completion_message_custom_tool_call.py +0 -23
- letta_client/types/chat_completion_message_custom_tool_call_param.py +0 -23
- letta_client/types/chat_completion_message_function_tool_call_input.py +0 -25
- letta_client/types/chat_completion_message_function_tool_call_output.py +0 -23
- letta_client/types/chat_completion_message_function_tool_call_param.py +0 -25
- letta_client/types/chat_completion_message_tool_calls_item.py +0 -10
- letta_client/types/chat_completion_service_tier.py +0 -5
- letta_client/types/chat_completion_system_message_param.py +0 -23
- letta_client/types/chat_completion_system_message_param_content.py +0 -7
- letta_client/types/chat_completion_token_logprob.py +0 -24
- letta_client/types/chat_completion_tool_message_param.py +0 -23
- letta_client/types/chat_completion_tool_message_param_content.py +0 -7
- letta_client/types/chat_completion_user_message_param.py +0 -23
- letta_client/types/chat_completion_user_message_param_content.py +0 -7
- letta_client/types/chat_completion_user_message_param_content_item.py +0 -15
- letta_client/types/child_tool_rule.py +0 -44
- letta_client/types/child_tool_rule_schema.py +0 -22
- letta_client/types/choice.py +0 -26
- letta_client/types/choice_finish_reason.py +0 -7
- letta_client/types/choice_logprobs.py +0 -22
- letta_client/types/code_input.py +0 -28
- letta_client/types/completion_tokens_details.py +0 -23
- letta_client/types/completion_usage.py +0 -26
- letta_client/types/components_schemas_text_content.py +0 -5
- letta_client/types/conditional_tool_rule.py +0 -48
- letta_client/types/conditional_tool_rule_schema.py +0 -24
- letta_client/types/conflict_error_body.py +0 -20
- letta_client/types/context_window_overview.py +0 -109
- letta_client/types/continue_tool_rule.py +0 -33
- letta_client/types/core_memory_block_schema.py +0 -32
- letta_client/types/create_block.py +0 -88
- letta_client/types/custom_input.py +0 -21
- letta_client/types/custom_output.py +0 -21
- letta_client/types/delete_deployment_response.py +0 -27
- letta_client/types/deployment_entity.py +0 -29
- letta_client/types/duplicate_file_handling.py +0 -5
- letta_client/types/dynamic_manager.py +0 -34
- letta_client/types/dynamic_manager_update.py +0 -34
- letta_client/types/e_2_b_sandbox_config.py +0 -33
- letta_client/types/embedding_config.py +0 -73
- letta_client/types/embedding_config_embedding_endpoint_type.py +0 -28
- letta_client/types/feedback_type.py +0 -5
- letta_client/types/file.py +0 -22
- letta_client/types/file_agent_schema.py +0 -73
- letta_client/types/file_block.py +0 -124
- letta_client/types/file_file.py +0 -22
- letta_client/types/file_metadata.py +0 -104
- letta_client/types/file_processing_status.py +0 -5
- letta_client/types/file_schema.py +0 -93
- letta_client/types/file_stats.py +0 -37
- letta_client/types/folder.py +0 -82
- letta_client/types/function_call_input.py +0 -21
- letta_client/types/function_call_output.py +0 -21
- letta_client/types/function_definition.py +0 -23
- letta_client/types/function_output.py +0 -21
- letta_client/types/function_tool.py +0 -22
- letta_client/types/generate_tool_input.py +0 -43
- letta_client/types/generate_tool_output.py +0 -34
- letta_client/types/group.py +0 -109
- letta_client/types/group_schema.py +0 -58
- letta_client/types/group_schema_manager_config.py +0 -13
- letta_client/types/health.py +0 -25
- letta_client/types/hidden_reasoning_message.py +0 -46
- letta_client/types/hidden_reasoning_message_state.py +0 -5
- letta_client/types/http_validation_error.py +0 -21
- letta_client/types/identity.py +0 -60
- letta_client/types/identity_property.py +0 -39
- letta_client/types/identity_property_type.py +0 -5
- letta_client/types/identity_property_value.py +0 -5
- letta_client/types/identity_type.py +0 -5
- letta_client/types/image_content.py +0 -25
- letta_client/types/image_content_source.py +0 -9
- letta_client/types/image_url.py +0 -22
- letta_client/types/image_url_detail.py +0 -5
- letta_client/types/imported_agents_response.py +0 -27
- letta_client/types/init_tool_rule.py +0 -38
- letta_client/types/input_audio.py +0 -22
- letta_client/types/input_audio_format.py +0 -5
- letta_client/types/internal_server_error_body.py +0 -20
- letta_client/types/internal_template_agent_create.py +0 -266
- letta_client/types/internal_template_agent_create_response_format.py +0 -11
- letta_client/types/internal_template_agent_create_tool_rules_item.py +0 -25
- letta_client/types/internal_template_block_create.py +0 -93
- letta_client/types/internal_template_group_create.py +0 -68
- letta_client/types/internal_template_group_create_manager_config.py +0 -13
- letta_client/types/job.py +0 -123
- letta_client/types/job_status.py +0 -7
- letta_client/types/job_type.py +0 -5
- letta_client/types/json_object_response_format.py +0 -24
- letta_client/types/json_schema_response_format.py +0 -28
- letta_client/types/letta_batch_messages.py +0 -21
- letta_client/types/letta_batch_request.py +0 -60
- letta_client/types/letta_batch_request_messages_item.py +0 -8
- letta_client/types/letta_image.py +0 -39
- letta_client/types/letta_message_content_union.py +0 -14
- letta_client/types/letta_message_union.py +0 -25
- letta_client/types/letta_ping.py +0 -27
- letta_client/types/letta_request.py +0 -55
- letta_client/types/letta_request_config.py +0 -39
- letta_client/types/letta_request_messages_item.py +0 -8
- letta_client/types/letta_response.py +0 -41
- letta_client/types/letta_schemas_agent_file_agent_schema.py +0 -285
- letta_client/types/letta_schemas_agent_file_agent_schema_response_format.py +0 -11
- letta_client/types/letta_schemas_agent_file_agent_schema_tool_rules_item.py +0 -25
- letta_client/types/letta_schemas_agent_file_message_schema.py +0 -125
- letta_client/types/letta_schemas_agent_file_message_schema_approvals_item.py +0 -8
- letta_client/types/letta_schemas_agent_file_message_schema_content.py +0 -7
- letta_client/types/letta_schemas_agent_file_tool_schema.py +0 -114
- letta_client/types/letta_schemas_letta_message_tool_return.py +0 -26
- letta_client/types/letta_schemas_letta_message_tool_return_status.py +0 -5
- letta_client/types/letta_schemas_message_tool_return.py +0 -40
- letta_client/types/letta_schemas_message_tool_return_status.py +0 -5
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_agent_schema.py +0 -56
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_agent_schema_tool_rules_item.py +0 -12
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_message_schema.py +0 -30
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_tool_schema.py +0 -36
- letta_client/types/letta_stop_reason.py +0 -33
- letta_client/types/letta_streaming_request.py +0 -70
- letta_client/types/letta_streaming_request_messages_item.py +0 -8
- letta_client/types/letta_usage_statistics.py +0 -60
- letta_client/types/letta_user_message_content_union.py +0 -8
- letta_client/types/list_deployment_entities_response.py +0 -28
- letta_client/types/llm_config.py +0 -127
- letta_client/types/llm_config_compatibility_type.py +0 -5
- letta_client/types/llm_config_model_endpoint_type.py +0 -30
- letta_client/types/llm_config_reasoning_effort.py +0 -5
- letta_client/types/llm_config_verbosity.py +0 -5
- letta_client/types/local_sandbox_config.py +0 -39
- letta_client/types/manager_type.py +0 -7
- letta_client/types/max_count_per_step_tool_rule.py +0 -38
- letta_client/types/max_count_per_step_tool_rule_schema.py +0 -22
- letta_client/types/mcp_server_schema.py +0 -37
- letta_client/types/mcp_server_type.py +0 -5
- letta_client/types/mcp_tool.py +0 -44
- letta_client/types/mcp_tool_execute_request.py +0 -23
- letta_client/types/mcp_tool_health.py +0 -32
- letta_client/types/memory.py +0 -45
- letta_client/types/memory_agent_type.py +0 -7
- letta_client/types/message.py +0 -166
- letta_client/types/message_approvals_item.py +0 -8
- letta_client/types/message_content_item.py +0 -23
- letta_client/types/message_create.py +0 -64
- letta_client/types/message_create_content.py +0 -7
- letta_client/types/message_create_role.py +0 -5
- letta_client/types/message_role.py +0 -5
- letta_client/types/message_search_result.py +0 -48
- letta_client/types/message_type.py +0 -18
- letta_client/types/modal_sandbox_config.py +0 -36
- letta_client/types/modal_sandbox_config_language.py +0 -5
- letta_client/types/not_found_error_body.py +0 -20
- letta_client/types/npm_requirement.py +0 -28
- letta_client/types/omitted_reasoning_content.py +0 -28
- letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_function.py +0 -21
- letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_param_function.py +0 -21
- letta_client/types/organization.py +0 -39
- letta_client/types/organization_create.py +0 -28
- letta_client/types/organization_sources_stats.py +0 -43
- letta_client/types/organization_update.py +0 -28
- letta_client/types/paginated_agent_files.py +0 -38
- letta_client/types/parameter_properties.py +0 -21
- letta_client/types/parameters_schema.py +0 -23
- letta_client/types/parent_tool_rule.py +0 -38
- letta_client/types/passage.py +0 -109
- letta_client/types/payment_required_error_body.py +0 -21
- letta_client/types/pip_requirement.py +0 -28
- letta_client/types/prompt_tokens_details.py +0 -21
- letta_client/types/provider.py +0 -81
- letta_client/types/provider_category.py +0 -5
- letta_client/types/provider_trace.py +0 -71
- letta_client/types/provider_type.py +0 -26
- letta_client/types/reasoning_content.py +0 -38
- letta_client/types/reasoning_message.py +0 -47
- letta_client/types/reasoning_message_source.py +0 -5
- letta_client/types/redacted_reasoning_content.py +0 -28
- letta_client/types/required_before_exit_tool_rule.py +0 -33
- letta_client/types/requires_approval_tool_rule.py +0 -33
- letta_client/types/round_robin_manager.py +0 -24
- letta_client/types/round_robin_manager_update.py +0 -24
- letta_client/types/run.py +0 -113
- letta_client/types/run_metrics.py +0 -63
- letta_client/types/run_status.py +0 -5
- letta_client/types/sandbox_config.py +0 -55
- letta_client/types/sandbox_config_create.py +0 -24
- letta_client/types/sandbox_config_create_config.py +0 -9
- letta_client/types/sandbox_config_update.py +0 -28
- letta_client/types/sandbox_config_update_config.py +0 -9
- letta_client/types/sandbox_environment_variable.py +0 -69
- letta_client/types/sandbox_environment_variable_create.py +0 -33
- letta_client/types/sandbox_environment_variable_update.py +0 -33
- letta_client/types/sandbox_type.py +0 -5
- letta_client/types/sleeptime_manager.py +0 -29
- letta_client/types/sleeptime_manager_update.py +0 -29
- letta_client/types/source.py +0 -88
- letta_client/types/source_create.py +0 -58
- letta_client/types/source_schema.py +0 -63
- letta_client/types/source_stats.py +0 -48
- letta_client/types/source_update.py +0 -48
- letta_client/types/sse_server_config.py +0 -56
- letta_client/types/stdio_server_config.py +0 -40
- letta_client/types/step.py +0 -144
- letta_client/types/step_feedback.py +0 -5
- letta_client/types/step_metrics.py +0 -78
- letta_client/types/step_status.py +0 -5
- letta_client/types/stop_reason_type.py +0 -19
- letta_client/types/streamable_http_server_config.py +0 -56
- letta_client/types/summarized_reasoning_content.py +0 -39
- letta_client/types/summarized_reasoning_content_part.py +0 -28
- letta_client/types/supervisor_manager.py +0 -24
- letta_client/types/supervisor_manager_update.py +0 -24
- letta_client/types/system_message.py +0 -44
- letta_client/types/tag_schema.py +0 -20
- letta_client/types/terminal_tool_rule.py +0 -33
- letta_client/types/text_content.py +0 -29
- letta_client/types/text_response_format.py +0 -24
- letta_client/types/tool.py +0 -121
- letta_client/types/tool_annotations.py +0 -37
- letta_client/types/tool_call.py +0 -22
- letta_client/types/tool_call_content.py +0 -39
- letta_client/types/tool_call_delta.py +0 -22
- letta_client/types/tool_call_message.py +0 -44
- letta_client/types/tool_call_message_tool_call.py +0 -8
- letta_client/types/tool_call_message_tool_calls.py +0 -8
- letta_client/types/tool_call_node.py +0 -35
- letta_client/types/tool_create.py +0 -75
- letta_client/types/tool_env_var_schema.py +0 -24
- letta_client/types/tool_json_schema.py +0 -25
- letta_client/types/tool_return_content.py +0 -34
- letta_client/types/tool_return_message.py +0 -53
- letta_client/types/tool_return_message_status.py +0 -5
- letta_client/types/tool_type.py +0 -20
- letta_client/types/top_logprob.py +0 -22
- letta_client/types/update_assistant_message.py +0 -25
- letta_client/types/update_assistant_message_content.py +0 -7
- letta_client/types/update_reasoning_message.py +0 -21
- letta_client/types/update_ssemcp_server.py +0 -37
- letta_client/types/update_stdio_mcp_server.py +0 -28
- letta_client/types/update_streamable_httpmcp_server.py +0 -42
- letta_client/types/update_system_message.py +0 -24
- letta_client/types/update_user_message.py +0 -25
- letta_client/types/update_user_message_content.py +0 -7
- letta_client/types/url_image.py +0 -24
- letta_client/types/usage_statistics.py +0 -26
- letta_client/types/usage_statistics_completion_token_details.py +0 -20
- letta_client/types/usage_statistics_prompt_token_details.py +0 -20
- letta_client/types/user.py +0 -53
- letta_client/types/user_create.py +0 -23
- letta_client/types/user_message.py +0 -45
- letta_client/types/user_message_content.py +0 -7
- letta_client/types/user_update.py +0 -28
- letta_client/types/validation_error.py +0 -23
- letta_client/types/validation_error_loc_item.py +0 -5
- letta_client/types/vector_db_provider.py +0 -5
- letta_client/types/voice_sleeptime_manager.py +0 -34
- letta_client/types/voice_sleeptime_manager_update.py +0 -34
- letta_client/version.py +0 -3
- letta_client/voice/__init__.py +0 -4
- letta_client/voice/client.py +0 -144
- letta_client/voice/raw_client.py +0 -183
- letta_client-1.0.0a5.dist-info/METADATA +0 -422
- letta_client-1.0.0a5.dist-info/RECORD +0 -1120
- letta_client-1.0.0a5.dist-info/WHEEL +0 -4
- {letta_client → letta_sdk}/py.typed +0 -0
|
@@ -0,0 +1,2501 @@
|
|
|
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 Dict, Union, Mapping, Iterable, Optional, cast
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Literal
|
|
8
|
+
|
|
9
|
+
import httpx
|
|
10
|
+
|
|
11
|
+
from .files import (
|
|
12
|
+
FilesResource,
|
|
13
|
+
AsyncFilesResource,
|
|
14
|
+
FilesResourceWithRawResponse,
|
|
15
|
+
AsyncFilesResourceWithRawResponse,
|
|
16
|
+
FilesResourceWithStreamingResponse,
|
|
17
|
+
AsyncFilesResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
from .tools import (
|
|
20
|
+
ToolsResource,
|
|
21
|
+
AsyncToolsResource,
|
|
22
|
+
ToolsResourceWithRawResponse,
|
|
23
|
+
AsyncToolsResourceWithRawResponse,
|
|
24
|
+
ToolsResourceWithStreamingResponse,
|
|
25
|
+
AsyncToolsResourceWithStreamingResponse,
|
|
26
|
+
)
|
|
27
|
+
from ...types import (
|
|
28
|
+
AgentType,
|
|
29
|
+
agent_list_params,
|
|
30
|
+
agent_create_params,
|
|
31
|
+
agent_export_params,
|
|
32
|
+
agent_import_params,
|
|
33
|
+
agent_search_params,
|
|
34
|
+
agent_update_params,
|
|
35
|
+
agent_migrate_params,
|
|
36
|
+
agent_retrieve_params,
|
|
37
|
+
agent_summarize_params,
|
|
38
|
+
agent_list_groups_params,
|
|
39
|
+
agent_reset_messages_params,
|
|
40
|
+
)
|
|
41
|
+
from .folders import (
|
|
42
|
+
FoldersResource,
|
|
43
|
+
AsyncFoldersResource,
|
|
44
|
+
FoldersResourceWithRawResponse,
|
|
45
|
+
AsyncFoldersResourceWithRawResponse,
|
|
46
|
+
FoldersResourceWithStreamingResponse,
|
|
47
|
+
AsyncFoldersResourceWithStreamingResponse,
|
|
48
|
+
)
|
|
49
|
+
from .sources import (
|
|
50
|
+
SourcesResource,
|
|
51
|
+
AsyncSourcesResource,
|
|
52
|
+
SourcesResourceWithRawResponse,
|
|
53
|
+
AsyncSourcesResourceWithRawResponse,
|
|
54
|
+
SourcesResourceWithStreamingResponse,
|
|
55
|
+
AsyncSourcesResourceWithStreamingResponse,
|
|
56
|
+
)
|
|
57
|
+
from ..._types import (
|
|
58
|
+
Body,
|
|
59
|
+
Omit,
|
|
60
|
+
Query,
|
|
61
|
+
Headers,
|
|
62
|
+
NoneType,
|
|
63
|
+
NotGiven,
|
|
64
|
+
FileTypes,
|
|
65
|
+
SequenceNotStr,
|
|
66
|
+
omit,
|
|
67
|
+
not_given,
|
|
68
|
+
)
|
|
69
|
+
from ..._utils import extract_files, maybe_transform, strip_not_given, deepcopy_minimal, async_maybe_transform
|
|
70
|
+
from .messages import (
|
|
71
|
+
MessagesResource,
|
|
72
|
+
AsyncMessagesResource,
|
|
73
|
+
MessagesResourceWithRawResponse,
|
|
74
|
+
AsyncMessagesResourceWithRawResponse,
|
|
75
|
+
MessagesResourceWithStreamingResponse,
|
|
76
|
+
AsyncMessagesResourceWithStreamingResponse,
|
|
77
|
+
)
|
|
78
|
+
from ..._compat import cached_property
|
|
79
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
80
|
+
from ..._response import (
|
|
81
|
+
to_raw_response_wrapper,
|
|
82
|
+
to_streamed_response_wrapper,
|
|
83
|
+
async_to_raw_response_wrapper,
|
|
84
|
+
async_to_streamed_response_wrapper,
|
|
85
|
+
)
|
|
86
|
+
from ..._base_client import make_request_options
|
|
87
|
+
from .archival_memory import (
|
|
88
|
+
ArchivalMemoryResource,
|
|
89
|
+
AsyncArchivalMemoryResource,
|
|
90
|
+
ArchivalMemoryResourceWithRawResponse,
|
|
91
|
+
AsyncArchivalMemoryResourceWithRawResponse,
|
|
92
|
+
ArchivalMemoryResourceWithStreamingResponse,
|
|
93
|
+
AsyncArchivalMemoryResourceWithStreamingResponse,
|
|
94
|
+
)
|
|
95
|
+
from ...types.agent_type import AgentType
|
|
96
|
+
from ...types.agent_state import AgentState
|
|
97
|
+
from .core_memory.core_memory import (
|
|
98
|
+
CoreMemoryResource,
|
|
99
|
+
AsyncCoreMemoryResource,
|
|
100
|
+
CoreMemoryResourceWithRawResponse,
|
|
101
|
+
AsyncCoreMemoryResourceWithRawResponse,
|
|
102
|
+
CoreMemoryResourceWithStreamingResponse,
|
|
103
|
+
AsyncCoreMemoryResourceWithStreamingResponse,
|
|
104
|
+
)
|
|
105
|
+
from ...types.llm_config_param import LlmConfigParam
|
|
106
|
+
from ...types.create_block_param import CreateBlockParam
|
|
107
|
+
from ...types.agent_list_response import AgentListResponse
|
|
108
|
+
from ...types.agent_count_response import AgentCountResponse
|
|
109
|
+
from ...types.message_create_param import MessageCreateParam
|
|
110
|
+
from ...types.agent_import_response import AgentImportResponse
|
|
111
|
+
from ...types.agent_search_response import AgentSearchResponse
|
|
112
|
+
from ...types.agent_migrate_response import AgentMigrateResponse
|
|
113
|
+
from ...types.embedding_config_param import EmbeddingConfigParam
|
|
114
|
+
from ...types.agent_list_groups_response import AgentListGroupsResponse
|
|
115
|
+
from ...types.agent_retrieve_context_response import AgentRetrieveContextResponse
|
|
116
|
+
|
|
117
|
+
__all__ = ["AgentsResource", "AsyncAgentsResource"]
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class AgentsResource(SyncAPIResource):
|
|
121
|
+
@cached_property
|
|
122
|
+
def tools(self) -> ToolsResource:
|
|
123
|
+
return ToolsResource(self._client)
|
|
124
|
+
|
|
125
|
+
@cached_property
|
|
126
|
+
def sources(self) -> SourcesResource:
|
|
127
|
+
return SourcesResource(self._client)
|
|
128
|
+
|
|
129
|
+
@cached_property
|
|
130
|
+
def folders(self) -> FoldersResource:
|
|
131
|
+
return FoldersResource(self._client)
|
|
132
|
+
|
|
133
|
+
@cached_property
|
|
134
|
+
def files(self) -> FilesResource:
|
|
135
|
+
return FilesResource(self._client)
|
|
136
|
+
|
|
137
|
+
@cached_property
|
|
138
|
+
def core_memory(self) -> CoreMemoryResource:
|
|
139
|
+
return CoreMemoryResource(self._client)
|
|
140
|
+
|
|
141
|
+
@cached_property
|
|
142
|
+
def archival_memory(self) -> ArchivalMemoryResource:
|
|
143
|
+
return ArchivalMemoryResource(self._client)
|
|
144
|
+
|
|
145
|
+
@cached_property
|
|
146
|
+
def messages(self) -> MessagesResource:
|
|
147
|
+
return MessagesResource(self._client)
|
|
148
|
+
|
|
149
|
+
@cached_property
|
|
150
|
+
def with_raw_response(self) -> AgentsResourceWithRawResponse:
|
|
151
|
+
"""
|
|
152
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
153
|
+
the raw response object instead of the parsed content.
|
|
154
|
+
|
|
155
|
+
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
156
|
+
"""
|
|
157
|
+
return AgentsResourceWithRawResponse(self)
|
|
158
|
+
|
|
159
|
+
@cached_property
|
|
160
|
+
def with_streaming_response(self) -> AgentsResourceWithStreamingResponse:
|
|
161
|
+
"""
|
|
162
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
163
|
+
|
|
164
|
+
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
165
|
+
"""
|
|
166
|
+
return AgentsResourceWithStreamingResponse(self)
|
|
167
|
+
|
|
168
|
+
def create(
|
|
169
|
+
self,
|
|
170
|
+
*,
|
|
171
|
+
agent_type: AgentType | Omit = omit,
|
|
172
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
173
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
174
|
+
context_window_limit: Optional[int] | Omit = omit,
|
|
175
|
+
description: Optional[str] | Omit = omit,
|
|
176
|
+
embedding: Optional[str] | Omit = omit,
|
|
177
|
+
embedding_chunk_size: Optional[int] | Omit = omit,
|
|
178
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
179
|
+
enable_reasoner: Optional[bool] | Omit = omit,
|
|
180
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
181
|
+
from_template: Optional[str] | Omit = omit,
|
|
182
|
+
hidden: Optional[bool] | Omit = omit,
|
|
183
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
184
|
+
include_base_tool_rules: Optional[bool] | Omit = omit,
|
|
185
|
+
include_base_tools: bool | Omit = omit,
|
|
186
|
+
include_default_source: bool | Omit = omit,
|
|
187
|
+
include_multi_agent_tools: bool | Omit = omit,
|
|
188
|
+
initial_message_sequence: Optional[Iterable[MessageCreateParam]] | Omit = omit,
|
|
189
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
190
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
191
|
+
max_reasoning_tokens: Optional[int] | Omit = omit,
|
|
192
|
+
max_tokens: Optional[int] | Omit = omit,
|
|
193
|
+
memory_blocks: Optional[Iterable[CreateBlockParam]] | Omit = omit,
|
|
194
|
+
memory_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
195
|
+
message_buffer_autoclear: bool | Omit = omit,
|
|
196
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
197
|
+
model: Optional[str] | Omit = omit,
|
|
198
|
+
name: str | Omit = omit,
|
|
199
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
200
|
+
project: Optional[str] | Omit = omit,
|
|
201
|
+
project_id: Optional[str] | Omit = omit,
|
|
202
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
203
|
+
response_format: Optional[agent_create_params.ResponseFormat] | Omit = omit,
|
|
204
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
205
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
206
|
+
system: Optional[str] | Omit = omit,
|
|
207
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
208
|
+
template: bool | Omit = omit,
|
|
209
|
+
template_id: Optional[str] | Omit = omit,
|
|
210
|
+
timezone: Optional[str] | Omit = omit,
|
|
211
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
212
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
213
|
+
tool_rules: Optional[Iterable[agent_create_params.ToolRule]] | Omit = omit,
|
|
214
|
+
tools: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
215
|
+
x_project: str | Omit = omit,
|
|
216
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
217
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
218
|
+
extra_headers: Headers | None = None,
|
|
219
|
+
extra_query: Query | None = None,
|
|
220
|
+
extra_body: Body | None = None,
|
|
221
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
222
|
+
) -> AgentState:
|
|
223
|
+
"""
|
|
224
|
+
Create an agent.
|
|
225
|
+
|
|
226
|
+
Args:
|
|
227
|
+
agent_type: The type of agent.
|
|
228
|
+
|
|
229
|
+
base_template_id: The base template id of the agent.
|
|
230
|
+
|
|
231
|
+
block_ids: The ids of the blocks used by the agent.
|
|
232
|
+
|
|
233
|
+
context_window_limit: The context window limit used by the agent.
|
|
234
|
+
|
|
235
|
+
description: The description of the agent.
|
|
236
|
+
|
|
237
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
238
|
+
provider/model-name.
|
|
239
|
+
|
|
240
|
+
embedding_chunk_size: The embedding chunk size used by the agent.
|
|
241
|
+
|
|
242
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
243
|
+
|
|
244
|
+
enable_reasoner: Whether to enable internal extended thinking step for a reasoner model.
|
|
245
|
+
|
|
246
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
247
|
+
|
|
248
|
+
from_template: The template id used to configure the agent
|
|
249
|
+
|
|
250
|
+
hidden: If set to True, the agent will be hidden.
|
|
251
|
+
|
|
252
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
253
|
+
|
|
254
|
+
include_base_tool_rules: If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly
|
|
255
|
+
allowed).
|
|
256
|
+
|
|
257
|
+
include_base_tools: If true, attaches the Letta core tools (e.g. core_memory related functions).
|
|
258
|
+
|
|
259
|
+
include_default_source: If true, automatically creates and attaches a default data source for this
|
|
260
|
+
agent.
|
|
261
|
+
|
|
262
|
+
include_multi_agent_tools: If true, attaches the Letta multi-agent tools (e.g. sending a message to another
|
|
263
|
+
agent).
|
|
264
|
+
|
|
265
|
+
initial_message_sequence: The initial set of messages to put in the agent's in-context memory.
|
|
266
|
+
|
|
267
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
268
|
+
|
|
269
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
270
|
+
too high may exceed the context window, which will break the agent.
|
|
271
|
+
|
|
272
|
+
max_reasoning_tokens: The maximum number of tokens to generate for reasoning step. If not set, the
|
|
273
|
+
model will use its default value.
|
|
274
|
+
|
|
275
|
+
max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
|
|
276
|
+
the model will use its default value.
|
|
277
|
+
|
|
278
|
+
memory_blocks: The blocks to create in the agent's in-context memory.
|
|
279
|
+
|
|
280
|
+
memory_variables: The variables that should be set for the agent.
|
|
281
|
+
|
|
282
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
283
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
284
|
+
recommended unless you have an advanced use case.
|
|
285
|
+
|
|
286
|
+
metadata: The metadata of the agent.
|
|
287
|
+
|
|
288
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
289
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
290
|
+
|
|
291
|
+
name: The name of the agent.
|
|
292
|
+
|
|
293
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
294
|
+
may exceed the context window, which will break the agent.
|
|
295
|
+
|
|
296
|
+
project: Deprecated: Project should now be passed via the X-Project header instead of in
|
|
297
|
+
the request body. If using the sdk, this can be done via the new x_project field
|
|
298
|
+
below.
|
|
299
|
+
|
|
300
|
+
project_id: The id of the project the agent belongs to.
|
|
301
|
+
|
|
302
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
303
|
+
|
|
304
|
+
response_format: The response format for the agent.
|
|
305
|
+
|
|
306
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
307
|
+
|
|
308
|
+
source_ids: The ids of the sources used by the agent.
|
|
309
|
+
|
|
310
|
+
system: The system prompt used by the agent.
|
|
311
|
+
|
|
312
|
+
tags: The tags associated with the agent.
|
|
313
|
+
|
|
314
|
+
template: Whether the agent is a template
|
|
315
|
+
|
|
316
|
+
template_id: The id of the template the agent belongs to.
|
|
317
|
+
|
|
318
|
+
timezone: The timezone of the agent (IANA format).
|
|
319
|
+
|
|
320
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead.
|
|
321
|
+
|
|
322
|
+
tool_ids: The ids of the tools used by the agent.
|
|
323
|
+
|
|
324
|
+
tool_rules: The tool rules governing the agent.
|
|
325
|
+
|
|
326
|
+
tools: The tools used by the agent.
|
|
327
|
+
|
|
328
|
+
x_project: The project slug to associate with the agent (cloud only).
|
|
329
|
+
|
|
330
|
+
extra_headers: Send extra headers
|
|
331
|
+
|
|
332
|
+
extra_query: Add additional query parameters to the request
|
|
333
|
+
|
|
334
|
+
extra_body: Add additional JSON properties to the request
|
|
335
|
+
|
|
336
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
337
|
+
"""
|
|
338
|
+
extra_headers = {**strip_not_given({"X-Project": x_project}), **(extra_headers or {})}
|
|
339
|
+
return self._post(
|
|
340
|
+
"/v1/agents/",
|
|
341
|
+
body=maybe_transform(
|
|
342
|
+
{
|
|
343
|
+
"agent_type": agent_type,
|
|
344
|
+
"base_template_id": base_template_id,
|
|
345
|
+
"block_ids": block_ids,
|
|
346
|
+
"context_window_limit": context_window_limit,
|
|
347
|
+
"description": description,
|
|
348
|
+
"embedding": embedding,
|
|
349
|
+
"embedding_chunk_size": embedding_chunk_size,
|
|
350
|
+
"embedding_config": embedding_config,
|
|
351
|
+
"enable_reasoner": enable_reasoner,
|
|
352
|
+
"enable_sleeptime": enable_sleeptime,
|
|
353
|
+
"from_template": from_template,
|
|
354
|
+
"hidden": hidden,
|
|
355
|
+
"identity_ids": identity_ids,
|
|
356
|
+
"include_base_tool_rules": include_base_tool_rules,
|
|
357
|
+
"include_base_tools": include_base_tools,
|
|
358
|
+
"include_default_source": include_default_source,
|
|
359
|
+
"include_multi_agent_tools": include_multi_agent_tools,
|
|
360
|
+
"initial_message_sequence": initial_message_sequence,
|
|
361
|
+
"llm_config": llm_config,
|
|
362
|
+
"max_files_open": max_files_open,
|
|
363
|
+
"max_reasoning_tokens": max_reasoning_tokens,
|
|
364
|
+
"max_tokens": max_tokens,
|
|
365
|
+
"memory_blocks": memory_blocks,
|
|
366
|
+
"memory_variables": memory_variables,
|
|
367
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
368
|
+
"metadata": metadata,
|
|
369
|
+
"model": model,
|
|
370
|
+
"name": name,
|
|
371
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
372
|
+
"project": project,
|
|
373
|
+
"project_id": project_id,
|
|
374
|
+
"reasoning": reasoning,
|
|
375
|
+
"response_format": response_format,
|
|
376
|
+
"secrets": secrets,
|
|
377
|
+
"source_ids": source_ids,
|
|
378
|
+
"system": system,
|
|
379
|
+
"tags": tags,
|
|
380
|
+
"template": template,
|
|
381
|
+
"template_id": template_id,
|
|
382
|
+
"timezone": timezone,
|
|
383
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
384
|
+
"tool_ids": tool_ids,
|
|
385
|
+
"tool_rules": tool_rules,
|
|
386
|
+
"tools": tools,
|
|
387
|
+
},
|
|
388
|
+
agent_create_params.AgentCreateParams,
|
|
389
|
+
),
|
|
390
|
+
options=make_request_options(
|
|
391
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
392
|
+
),
|
|
393
|
+
cast_to=AgentState,
|
|
394
|
+
)
|
|
395
|
+
|
|
396
|
+
def retrieve(
|
|
397
|
+
self,
|
|
398
|
+
agent_id: str,
|
|
399
|
+
*,
|
|
400
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
401
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
402
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
403
|
+
extra_headers: Headers | None = None,
|
|
404
|
+
extra_query: Query | None = None,
|
|
405
|
+
extra_body: Body | None = None,
|
|
406
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
407
|
+
) -> AgentState:
|
|
408
|
+
"""
|
|
409
|
+
Get the state of the agent.
|
|
410
|
+
|
|
411
|
+
Args:
|
|
412
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
413
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
414
|
+
this can optimize performance by reducing unnecessary joins.
|
|
415
|
+
|
|
416
|
+
extra_headers: Send extra headers
|
|
417
|
+
|
|
418
|
+
extra_query: Add additional query parameters to the request
|
|
419
|
+
|
|
420
|
+
extra_body: Add additional JSON properties to the request
|
|
421
|
+
|
|
422
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
423
|
+
"""
|
|
424
|
+
if not agent_id:
|
|
425
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
426
|
+
return self._get(
|
|
427
|
+
f"/v1/agents/{agent_id}",
|
|
428
|
+
options=make_request_options(
|
|
429
|
+
extra_headers=extra_headers,
|
|
430
|
+
extra_query=extra_query,
|
|
431
|
+
extra_body=extra_body,
|
|
432
|
+
timeout=timeout,
|
|
433
|
+
query=maybe_transform(
|
|
434
|
+
{"include_relationships": include_relationships}, agent_retrieve_params.AgentRetrieveParams
|
|
435
|
+
),
|
|
436
|
+
),
|
|
437
|
+
cast_to=AgentState,
|
|
438
|
+
)
|
|
439
|
+
|
|
440
|
+
def update(
|
|
441
|
+
self,
|
|
442
|
+
agent_id: str,
|
|
443
|
+
*,
|
|
444
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
445
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
446
|
+
description: Optional[str] | Omit = omit,
|
|
447
|
+
embedding: Optional[str] | Omit = omit,
|
|
448
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
449
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
450
|
+
hidden: Optional[bool] | Omit = omit,
|
|
451
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
452
|
+
last_run_completion: Union[str, datetime, None] | Omit = omit,
|
|
453
|
+
last_run_duration_ms: Optional[int] | Omit = omit,
|
|
454
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
455
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
456
|
+
message_buffer_autoclear: Optional[bool] | Omit = omit,
|
|
457
|
+
message_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
458
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
459
|
+
model: Optional[str] | Omit = omit,
|
|
460
|
+
name: Optional[str] | Omit = omit,
|
|
461
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
462
|
+
project_id: Optional[str] | Omit = omit,
|
|
463
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
464
|
+
response_format: Optional[agent_update_params.ResponseFormat] | Omit = omit,
|
|
465
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
466
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
467
|
+
system: Optional[str] | Omit = omit,
|
|
468
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
469
|
+
template_id: Optional[str] | Omit = omit,
|
|
470
|
+
timezone: Optional[str] | Omit = omit,
|
|
471
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
472
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
473
|
+
tool_rules: Optional[Iterable[agent_update_params.ToolRule]] | Omit = omit,
|
|
474
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
475
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
476
|
+
extra_headers: Headers | None = None,
|
|
477
|
+
extra_query: Query | None = None,
|
|
478
|
+
extra_body: Body | None = None,
|
|
479
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
480
|
+
) -> AgentState:
|
|
481
|
+
"""
|
|
482
|
+
Update an existing agent.
|
|
483
|
+
|
|
484
|
+
Args:
|
|
485
|
+
base_template_id: The base template id of the agent.
|
|
486
|
+
|
|
487
|
+
block_ids: The ids of the blocks used by the agent.
|
|
488
|
+
|
|
489
|
+
description: The description of the agent.
|
|
490
|
+
|
|
491
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
492
|
+
provider/model-name.
|
|
493
|
+
|
|
494
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
495
|
+
|
|
496
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
497
|
+
|
|
498
|
+
hidden: If set to True, the agent will be hidden.
|
|
499
|
+
|
|
500
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
501
|
+
|
|
502
|
+
last_run_completion: The timestamp when the agent last completed a run.
|
|
503
|
+
|
|
504
|
+
last_run_duration_ms: The duration in milliseconds of the agent's last run.
|
|
505
|
+
|
|
506
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
507
|
+
|
|
508
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
509
|
+
too high may exceed the context window, which will break the agent.
|
|
510
|
+
|
|
511
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
512
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
513
|
+
recommended unless you have an advanced use case.
|
|
514
|
+
|
|
515
|
+
message_ids: The ids of the messages in the agent's in-context memory.
|
|
516
|
+
|
|
517
|
+
metadata: The metadata of the agent.
|
|
518
|
+
|
|
519
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
520
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
521
|
+
|
|
522
|
+
name: The name of the agent.
|
|
523
|
+
|
|
524
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
525
|
+
may exceed the context window, which will break the agent.
|
|
526
|
+
|
|
527
|
+
project_id: The id of the project the agent belongs to.
|
|
528
|
+
|
|
529
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
530
|
+
|
|
531
|
+
response_format: The response format for the agent.
|
|
532
|
+
|
|
533
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
534
|
+
|
|
535
|
+
source_ids: The ids of the sources used by the agent.
|
|
536
|
+
|
|
537
|
+
system: The system prompt used by the agent.
|
|
538
|
+
|
|
539
|
+
tags: The tags associated with the agent.
|
|
540
|
+
|
|
541
|
+
template_id: The id of the template the agent belongs to.
|
|
542
|
+
|
|
543
|
+
timezone: The timezone of the agent (IANA format).
|
|
544
|
+
|
|
545
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead
|
|
546
|
+
|
|
547
|
+
tool_ids: The ids of the tools used by the agent.
|
|
548
|
+
|
|
549
|
+
tool_rules: The tool rules governing the agent.
|
|
550
|
+
|
|
551
|
+
extra_headers: Send extra headers
|
|
552
|
+
|
|
553
|
+
extra_query: Add additional query parameters to the request
|
|
554
|
+
|
|
555
|
+
extra_body: Add additional JSON properties to the request
|
|
556
|
+
|
|
557
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
558
|
+
"""
|
|
559
|
+
if not agent_id:
|
|
560
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
561
|
+
return self._patch(
|
|
562
|
+
f"/v1/agents/{agent_id}",
|
|
563
|
+
body=maybe_transform(
|
|
564
|
+
{
|
|
565
|
+
"base_template_id": base_template_id,
|
|
566
|
+
"block_ids": block_ids,
|
|
567
|
+
"description": description,
|
|
568
|
+
"embedding": embedding,
|
|
569
|
+
"embedding_config": embedding_config,
|
|
570
|
+
"enable_sleeptime": enable_sleeptime,
|
|
571
|
+
"hidden": hidden,
|
|
572
|
+
"identity_ids": identity_ids,
|
|
573
|
+
"last_run_completion": last_run_completion,
|
|
574
|
+
"last_run_duration_ms": last_run_duration_ms,
|
|
575
|
+
"llm_config": llm_config,
|
|
576
|
+
"max_files_open": max_files_open,
|
|
577
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
578
|
+
"message_ids": message_ids,
|
|
579
|
+
"metadata": metadata,
|
|
580
|
+
"model": model,
|
|
581
|
+
"name": name,
|
|
582
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
583
|
+
"project_id": project_id,
|
|
584
|
+
"reasoning": reasoning,
|
|
585
|
+
"response_format": response_format,
|
|
586
|
+
"secrets": secrets,
|
|
587
|
+
"source_ids": source_ids,
|
|
588
|
+
"system": system,
|
|
589
|
+
"tags": tags,
|
|
590
|
+
"template_id": template_id,
|
|
591
|
+
"timezone": timezone,
|
|
592
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
593
|
+
"tool_ids": tool_ids,
|
|
594
|
+
"tool_rules": tool_rules,
|
|
595
|
+
},
|
|
596
|
+
agent_update_params.AgentUpdateParams,
|
|
597
|
+
),
|
|
598
|
+
options=make_request_options(
|
|
599
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
600
|
+
),
|
|
601
|
+
cast_to=AgentState,
|
|
602
|
+
)
|
|
603
|
+
|
|
604
|
+
def list(
|
|
605
|
+
self,
|
|
606
|
+
*,
|
|
607
|
+
after: Optional[str] | Omit = omit,
|
|
608
|
+
ascending: bool | Omit = omit,
|
|
609
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
610
|
+
before: Optional[str] | Omit = omit,
|
|
611
|
+
identifier_keys: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
612
|
+
identity_id: Optional[str] | Omit = omit,
|
|
613
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
614
|
+
limit: Optional[int] | Omit = omit,
|
|
615
|
+
match_all_tags: bool | Omit = omit,
|
|
616
|
+
name: Optional[str] | Omit = omit,
|
|
617
|
+
order: Literal["asc", "desc"] | Omit = omit,
|
|
618
|
+
order_by: Literal["created_at", "last_run_completion"] | Omit = omit,
|
|
619
|
+
project_id: Optional[str] | Omit = omit,
|
|
620
|
+
query_text: Optional[str] | Omit = omit,
|
|
621
|
+
sort_by: Optional[str] | Omit = omit,
|
|
622
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
623
|
+
template_id: Optional[str] | Omit = omit,
|
|
624
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
625
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
626
|
+
extra_headers: Headers | None = None,
|
|
627
|
+
extra_query: Query | None = None,
|
|
628
|
+
extra_body: Body | None = None,
|
|
629
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
630
|
+
) -> AgentListResponse:
|
|
631
|
+
"""
|
|
632
|
+
Get a list of all agents.
|
|
633
|
+
|
|
634
|
+
Args:
|
|
635
|
+
after: Cursor for pagination
|
|
636
|
+
|
|
637
|
+
ascending: Whether to sort agents oldest to newest (True) or newest to oldest (False,
|
|
638
|
+
default)
|
|
639
|
+
|
|
640
|
+
base_template_id: Search agents by base template ID
|
|
641
|
+
|
|
642
|
+
before: Cursor for pagination
|
|
643
|
+
|
|
644
|
+
identifier_keys: Search agents by identifier keys
|
|
645
|
+
|
|
646
|
+
identity_id: Search agents by identity ID
|
|
647
|
+
|
|
648
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
649
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
650
|
+
this can optimize performance by reducing unnecessary joins.
|
|
651
|
+
|
|
652
|
+
limit: Limit for pagination
|
|
653
|
+
|
|
654
|
+
match_all_tags: If True, only returns agents that match ALL given tags. Otherwise, return agents
|
|
655
|
+
that have ANY of the passed-in tags.
|
|
656
|
+
|
|
657
|
+
name: Name of the agent
|
|
658
|
+
|
|
659
|
+
order: Sort order for agents by creation time. 'asc' for oldest first, 'desc' for
|
|
660
|
+
newest first
|
|
661
|
+
|
|
662
|
+
order_by: Field to sort by
|
|
663
|
+
|
|
664
|
+
project_id: Search agents by project ID - this will default to your default project on cloud
|
|
665
|
+
|
|
666
|
+
query_text: Search agents by name
|
|
667
|
+
|
|
668
|
+
sort_by: Field to sort by. Options: 'created_at' (default), 'last_run_completion'
|
|
669
|
+
|
|
670
|
+
tags: List of tags to filter agents by
|
|
671
|
+
|
|
672
|
+
template_id: Search agents by template ID
|
|
673
|
+
|
|
674
|
+
extra_headers: Send extra headers
|
|
675
|
+
|
|
676
|
+
extra_query: Add additional query parameters to the request
|
|
677
|
+
|
|
678
|
+
extra_body: Add additional JSON properties to the request
|
|
679
|
+
|
|
680
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
681
|
+
"""
|
|
682
|
+
return self._get(
|
|
683
|
+
"/v1/agents/",
|
|
684
|
+
options=make_request_options(
|
|
685
|
+
extra_headers=extra_headers,
|
|
686
|
+
extra_query=extra_query,
|
|
687
|
+
extra_body=extra_body,
|
|
688
|
+
timeout=timeout,
|
|
689
|
+
query=maybe_transform(
|
|
690
|
+
{
|
|
691
|
+
"after": after,
|
|
692
|
+
"ascending": ascending,
|
|
693
|
+
"base_template_id": base_template_id,
|
|
694
|
+
"before": before,
|
|
695
|
+
"identifier_keys": identifier_keys,
|
|
696
|
+
"identity_id": identity_id,
|
|
697
|
+
"include_relationships": include_relationships,
|
|
698
|
+
"limit": limit,
|
|
699
|
+
"match_all_tags": match_all_tags,
|
|
700
|
+
"name": name,
|
|
701
|
+
"order": order,
|
|
702
|
+
"order_by": order_by,
|
|
703
|
+
"project_id": project_id,
|
|
704
|
+
"query_text": query_text,
|
|
705
|
+
"sort_by": sort_by,
|
|
706
|
+
"tags": tags,
|
|
707
|
+
"template_id": template_id,
|
|
708
|
+
},
|
|
709
|
+
agent_list_params.AgentListParams,
|
|
710
|
+
),
|
|
711
|
+
),
|
|
712
|
+
cast_to=AgentListResponse,
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
def delete(
|
|
716
|
+
self,
|
|
717
|
+
agent_id: str,
|
|
718
|
+
*,
|
|
719
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
720
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
721
|
+
extra_headers: Headers | None = None,
|
|
722
|
+
extra_query: Query | None = None,
|
|
723
|
+
extra_body: Body | None = None,
|
|
724
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
725
|
+
) -> object:
|
|
726
|
+
"""
|
|
727
|
+
Delete an agent.
|
|
728
|
+
|
|
729
|
+
Args:
|
|
730
|
+
extra_headers: Send extra headers
|
|
731
|
+
|
|
732
|
+
extra_query: Add additional query parameters to the request
|
|
733
|
+
|
|
734
|
+
extra_body: Add additional JSON properties to the request
|
|
735
|
+
|
|
736
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
737
|
+
"""
|
|
738
|
+
if not agent_id:
|
|
739
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
740
|
+
return self._delete(
|
|
741
|
+
f"/v1/agents/{agent_id}",
|
|
742
|
+
options=make_request_options(
|
|
743
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
744
|
+
),
|
|
745
|
+
cast_to=object,
|
|
746
|
+
)
|
|
747
|
+
|
|
748
|
+
def count(
|
|
749
|
+
self,
|
|
750
|
+
*,
|
|
751
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
752
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
753
|
+
extra_headers: Headers | None = None,
|
|
754
|
+
extra_query: Query | None = None,
|
|
755
|
+
extra_body: Body | None = None,
|
|
756
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
757
|
+
) -> AgentCountResponse:
|
|
758
|
+
"""Get the total number of agents."""
|
|
759
|
+
return self._get(
|
|
760
|
+
"/v1/agents/count",
|
|
761
|
+
options=make_request_options(
|
|
762
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
763
|
+
),
|
|
764
|
+
cast_to=int,
|
|
765
|
+
)
|
|
766
|
+
|
|
767
|
+
def export(
|
|
768
|
+
self,
|
|
769
|
+
agent_id: str,
|
|
770
|
+
*,
|
|
771
|
+
max_steps: int | Omit = omit,
|
|
772
|
+
use_legacy_format: bool | Omit = omit,
|
|
773
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
774
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
775
|
+
extra_headers: Headers | None = None,
|
|
776
|
+
extra_query: Query | None = None,
|
|
777
|
+
extra_body: Body | None = None,
|
|
778
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
779
|
+
) -> str:
|
|
780
|
+
"""
|
|
781
|
+
Export the serialized JSON representation of an agent, formatted with
|
|
782
|
+
indentation.
|
|
783
|
+
|
|
784
|
+
Supports two export formats:
|
|
785
|
+
|
|
786
|
+
- Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
|
|
787
|
+
- New format (default): Multi-entity format with separate agents, tools, blocks,
|
|
788
|
+
files, etc.
|
|
789
|
+
|
|
790
|
+
Args:
|
|
791
|
+
use_legacy_format: If true, exports using the legacy single-agent format (v1). If false, exports
|
|
792
|
+
using the new multi-entity format (v2).
|
|
793
|
+
|
|
794
|
+
extra_headers: Send extra headers
|
|
795
|
+
|
|
796
|
+
extra_query: Add additional query parameters to the request
|
|
797
|
+
|
|
798
|
+
extra_body: Add additional JSON properties to the request
|
|
799
|
+
|
|
800
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
801
|
+
"""
|
|
802
|
+
if not agent_id:
|
|
803
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
804
|
+
return self._get(
|
|
805
|
+
f"/v1/agents/{agent_id}/export",
|
|
806
|
+
options=make_request_options(
|
|
807
|
+
extra_headers=extra_headers,
|
|
808
|
+
extra_query=extra_query,
|
|
809
|
+
extra_body=extra_body,
|
|
810
|
+
timeout=timeout,
|
|
811
|
+
query=maybe_transform(
|
|
812
|
+
{
|
|
813
|
+
"max_steps": max_steps,
|
|
814
|
+
"use_legacy_format": use_legacy_format,
|
|
815
|
+
},
|
|
816
|
+
agent_export_params.AgentExportParams,
|
|
817
|
+
),
|
|
818
|
+
),
|
|
819
|
+
cast_to=str,
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
def import_(
|
|
823
|
+
self,
|
|
824
|
+
*,
|
|
825
|
+
file: FileTypes,
|
|
826
|
+
append_copy_suffix: bool | Omit = omit,
|
|
827
|
+
env_vars_json: Optional[str] | Omit = omit,
|
|
828
|
+
override_embedding_handle: Optional[str] | Omit = omit,
|
|
829
|
+
override_existing_tools: bool | Omit = omit,
|
|
830
|
+
project_id: Optional[str] | Omit = omit,
|
|
831
|
+
strip_messages: bool | Omit = omit,
|
|
832
|
+
x_override_embedding_model: str | Omit = omit,
|
|
833
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
834
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
835
|
+
extra_headers: Headers | None = None,
|
|
836
|
+
extra_query: Query | None = None,
|
|
837
|
+
extra_body: Body | None = None,
|
|
838
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
839
|
+
) -> AgentImportResponse:
|
|
840
|
+
"""Import a serialized agent file and recreate the agent(s) in the system.
|
|
841
|
+
|
|
842
|
+
Returns
|
|
843
|
+
the IDs of all imported agents.
|
|
844
|
+
|
|
845
|
+
Args:
|
|
846
|
+
append_copy_suffix: If set to True, appends "\\__copy" to the end of the agent name.
|
|
847
|
+
|
|
848
|
+
env_vars_json: Environment variables as a JSON string to pass to the agent for tool execution.
|
|
849
|
+
|
|
850
|
+
override_embedding_handle: Override import with specific embedding handle.
|
|
851
|
+
|
|
852
|
+
override_existing_tools: If set to True, existing tools can get their source code overwritten by the
|
|
853
|
+
uploaded tool definitions. Note that Letta core tools can never be updated
|
|
854
|
+
externally.
|
|
855
|
+
|
|
856
|
+
project_id: The project ID to associate the uploaded agent with.
|
|
857
|
+
|
|
858
|
+
strip_messages: If set to True, strips all messages from the agent before importing.
|
|
859
|
+
|
|
860
|
+
extra_headers: Send extra headers
|
|
861
|
+
|
|
862
|
+
extra_query: Add additional query parameters to the request
|
|
863
|
+
|
|
864
|
+
extra_body: Add additional JSON properties to the request
|
|
865
|
+
|
|
866
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
867
|
+
"""
|
|
868
|
+
extra_headers = {
|
|
869
|
+
**strip_not_given({"x-override-embedding-model": x_override_embedding_model}),
|
|
870
|
+
**(extra_headers or {}),
|
|
871
|
+
}
|
|
872
|
+
body = deepcopy_minimal(
|
|
873
|
+
{
|
|
874
|
+
"file": file,
|
|
875
|
+
"append_copy_suffix": append_copy_suffix,
|
|
876
|
+
"env_vars_json": env_vars_json,
|
|
877
|
+
"override_embedding_handle": override_embedding_handle,
|
|
878
|
+
"override_existing_tools": override_existing_tools,
|
|
879
|
+
"project_id": project_id,
|
|
880
|
+
"strip_messages": strip_messages,
|
|
881
|
+
}
|
|
882
|
+
)
|
|
883
|
+
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
|
884
|
+
# It should be noted that the actual Content-Type header that will be
|
|
885
|
+
# sent to the server will contain a `boundary` parameter, e.g.
|
|
886
|
+
# multipart/form-data; boundary=---abc--
|
|
887
|
+
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
|
888
|
+
return self._post(
|
|
889
|
+
"/v1/agents/import",
|
|
890
|
+
body=maybe_transform(body, agent_import_params.AgentImportParams),
|
|
891
|
+
files=files,
|
|
892
|
+
options=make_request_options(
|
|
893
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
894
|
+
),
|
|
895
|
+
cast_to=AgentImportResponse,
|
|
896
|
+
)
|
|
897
|
+
|
|
898
|
+
def list_groups(
|
|
899
|
+
self,
|
|
900
|
+
agent_id: str,
|
|
901
|
+
*,
|
|
902
|
+
manager_type: Optional[str] | Omit = omit,
|
|
903
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
904
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
905
|
+
extra_headers: Headers | None = None,
|
|
906
|
+
extra_query: Query | None = None,
|
|
907
|
+
extra_body: Body | None = None,
|
|
908
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
909
|
+
) -> AgentListGroupsResponse:
|
|
910
|
+
"""
|
|
911
|
+
Lists the groups for an agent
|
|
912
|
+
|
|
913
|
+
Args:
|
|
914
|
+
manager_type: Manager type to filter groups by
|
|
915
|
+
|
|
916
|
+
extra_headers: Send extra headers
|
|
917
|
+
|
|
918
|
+
extra_query: Add additional query parameters to the request
|
|
919
|
+
|
|
920
|
+
extra_body: Add additional JSON properties to the request
|
|
921
|
+
|
|
922
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
923
|
+
"""
|
|
924
|
+
if not agent_id:
|
|
925
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
926
|
+
return self._get(
|
|
927
|
+
f"/v1/agents/{agent_id}/groups",
|
|
928
|
+
options=make_request_options(
|
|
929
|
+
extra_headers=extra_headers,
|
|
930
|
+
extra_query=extra_query,
|
|
931
|
+
extra_body=extra_body,
|
|
932
|
+
timeout=timeout,
|
|
933
|
+
query=maybe_transform({"manager_type": manager_type}, agent_list_groups_params.AgentListGroupsParams),
|
|
934
|
+
),
|
|
935
|
+
cast_to=AgentListGroupsResponse,
|
|
936
|
+
)
|
|
937
|
+
|
|
938
|
+
def migrate(
|
|
939
|
+
self,
|
|
940
|
+
agent_id: str,
|
|
941
|
+
*,
|
|
942
|
+
preserve_core_memories: bool,
|
|
943
|
+
to_template: str,
|
|
944
|
+
preserve_tool_variables: bool | Omit = omit,
|
|
945
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
946
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
947
|
+
extra_headers: Headers | None = None,
|
|
948
|
+
extra_query: Query | None = None,
|
|
949
|
+
extra_body: Body | None = None,
|
|
950
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
951
|
+
) -> AgentMigrateResponse:
|
|
952
|
+
"""Migrate an agent to a new versioned agent template.
|
|
953
|
+
|
|
954
|
+
This will only work for
|
|
955
|
+
"classic" and non-multiagent agent templates.
|
|
956
|
+
|
|
957
|
+
Args:
|
|
958
|
+
preserve_tool_variables: If true, preserves the existing agent's tool environment variables instead of
|
|
959
|
+
using the template's variables
|
|
960
|
+
|
|
961
|
+
extra_headers: Send extra headers
|
|
962
|
+
|
|
963
|
+
extra_query: Add additional query parameters to the request
|
|
964
|
+
|
|
965
|
+
extra_body: Add additional JSON properties to the request
|
|
966
|
+
|
|
967
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
968
|
+
"""
|
|
969
|
+
if not agent_id:
|
|
970
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
971
|
+
return self._post(
|
|
972
|
+
f"/v1/agents/{agent_id}/migrate",
|
|
973
|
+
body=maybe_transform(
|
|
974
|
+
{
|
|
975
|
+
"preserve_core_memories": preserve_core_memories,
|
|
976
|
+
"to_template": to_template,
|
|
977
|
+
"preserve_tool_variables": preserve_tool_variables,
|
|
978
|
+
},
|
|
979
|
+
agent_migrate_params.AgentMigrateParams,
|
|
980
|
+
),
|
|
981
|
+
options=make_request_options(
|
|
982
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
983
|
+
),
|
|
984
|
+
cast_to=AgentMigrateResponse,
|
|
985
|
+
)
|
|
986
|
+
|
|
987
|
+
def reset_messages(
|
|
988
|
+
self,
|
|
989
|
+
agent_id: str,
|
|
990
|
+
*,
|
|
991
|
+
add_default_initial_messages: bool | Omit = omit,
|
|
992
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
993
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
994
|
+
extra_headers: Headers | None = None,
|
|
995
|
+
extra_query: Query | None = None,
|
|
996
|
+
extra_body: Body | None = None,
|
|
997
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
998
|
+
) -> AgentState:
|
|
999
|
+
"""
|
|
1000
|
+
Resets the messages for an agent
|
|
1001
|
+
|
|
1002
|
+
Args:
|
|
1003
|
+
add_default_initial_messages: If true, adds the default initial messages after resetting.
|
|
1004
|
+
|
|
1005
|
+
extra_headers: Send extra headers
|
|
1006
|
+
|
|
1007
|
+
extra_query: Add additional query parameters to the request
|
|
1008
|
+
|
|
1009
|
+
extra_body: Add additional JSON properties to the request
|
|
1010
|
+
|
|
1011
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1012
|
+
"""
|
|
1013
|
+
if not agent_id:
|
|
1014
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1015
|
+
return self._patch(
|
|
1016
|
+
f"/v1/agents/{agent_id}/reset-messages",
|
|
1017
|
+
options=make_request_options(
|
|
1018
|
+
extra_headers=extra_headers,
|
|
1019
|
+
extra_query=extra_query,
|
|
1020
|
+
extra_body=extra_body,
|
|
1021
|
+
timeout=timeout,
|
|
1022
|
+
query=maybe_transform(
|
|
1023
|
+
{"add_default_initial_messages": add_default_initial_messages},
|
|
1024
|
+
agent_reset_messages_params.AgentResetMessagesParams,
|
|
1025
|
+
),
|
|
1026
|
+
),
|
|
1027
|
+
cast_to=AgentState,
|
|
1028
|
+
)
|
|
1029
|
+
|
|
1030
|
+
def retrieve_context(
|
|
1031
|
+
self,
|
|
1032
|
+
agent_id: str,
|
|
1033
|
+
*,
|
|
1034
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1035
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1036
|
+
extra_headers: Headers | None = None,
|
|
1037
|
+
extra_query: Query | None = None,
|
|
1038
|
+
extra_body: Body | None = None,
|
|
1039
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1040
|
+
) -> AgentRetrieveContextResponse:
|
|
1041
|
+
"""
|
|
1042
|
+
Retrieve the context window of a specific agent.
|
|
1043
|
+
|
|
1044
|
+
Args:
|
|
1045
|
+
extra_headers: Send extra headers
|
|
1046
|
+
|
|
1047
|
+
extra_query: Add additional query parameters to the request
|
|
1048
|
+
|
|
1049
|
+
extra_body: Add additional JSON properties to the request
|
|
1050
|
+
|
|
1051
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1052
|
+
"""
|
|
1053
|
+
if not agent_id:
|
|
1054
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1055
|
+
return self._get(
|
|
1056
|
+
f"/v1/agents/{agent_id}/context",
|
|
1057
|
+
options=make_request_options(
|
|
1058
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1059
|
+
),
|
|
1060
|
+
cast_to=AgentRetrieveContextResponse,
|
|
1061
|
+
)
|
|
1062
|
+
|
|
1063
|
+
def search(
|
|
1064
|
+
self,
|
|
1065
|
+
*,
|
|
1066
|
+
after: Optional[str] | Omit = omit,
|
|
1067
|
+
ascending: bool | Omit = omit,
|
|
1068
|
+
combinator: Literal["AND"] | Omit = omit,
|
|
1069
|
+
limit: float | Omit = omit,
|
|
1070
|
+
project_id: str | Omit = omit,
|
|
1071
|
+
search: Iterable[agent_search_params.Search] | Omit = omit,
|
|
1072
|
+
sort_by: Literal["created_at", "last_run_completion"] | Omit = omit,
|
|
1073
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1074
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1075
|
+
extra_headers: Headers | None = None,
|
|
1076
|
+
extra_query: Query | None = None,
|
|
1077
|
+
extra_body: Body | None = None,
|
|
1078
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1079
|
+
) -> AgentSearchResponse:
|
|
1080
|
+
"""
|
|
1081
|
+
Search deployed agents
|
|
1082
|
+
|
|
1083
|
+
Args:
|
|
1084
|
+
extra_headers: Send extra headers
|
|
1085
|
+
|
|
1086
|
+
extra_query: Add additional query parameters to the request
|
|
1087
|
+
|
|
1088
|
+
extra_body: Add additional JSON properties to the request
|
|
1089
|
+
|
|
1090
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1091
|
+
"""
|
|
1092
|
+
return self._post(
|
|
1093
|
+
"/v1/agents/search",
|
|
1094
|
+
body=maybe_transform(
|
|
1095
|
+
{
|
|
1096
|
+
"after": after,
|
|
1097
|
+
"ascending": ascending,
|
|
1098
|
+
"combinator": combinator,
|
|
1099
|
+
"limit": limit,
|
|
1100
|
+
"project_id": project_id,
|
|
1101
|
+
"search": search,
|
|
1102
|
+
"sort_by": sort_by,
|
|
1103
|
+
},
|
|
1104
|
+
agent_search_params.AgentSearchParams,
|
|
1105
|
+
),
|
|
1106
|
+
options=make_request_options(
|
|
1107
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1108
|
+
),
|
|
1109
|
+
cast_to=AgentSearchResponse,
|
|
1110
|
+
)
|
|
1111
|
+
|
|
1112
|
+
def summarize(
|
|
1113
|
+
self,
|
|
1114
|
+
agent_id: str,
|
|
1115
|
+
*,
|
|
1116
|
+
max_message_length: int,
|
|
1117
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1118
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1119
|
+
extra_headers: Headers | None = None,
|
|
1120
|
+
extra_query: Query | None = None,
|
|
1121
|
+
extra_body: Body | None = None,
|
|
1122
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1123
|
+
) -> None:
|
|
1124
|
+
"""
|
|
1125
|
+
Summarize an agent's conversation history to a target message length.
|
|
1126
|
+
|
|
1127
|
+
This endpoint summarizes the current message history for a given agent,
|
|
1128
|
+
truncating and compressing it down to the specified `max_message_length`.
|
|
1129
|
+
|
|
1130
|
+
Args:
|
|
1131
|
+
max_message_length: Maximum number of messages to retain after summarization.
|
|
1132
|
+
|
|
1133
|
+
extra_headers: Send extra headers
|
|
1134
|
+
|
|
1135
|
+
extra_query: Add additional query parameters to the request
|
|
1136
|
+
|
|
1137
|
+
extra_body: Add additional JSON properties to the request
|
|
1138
|
+
|
|
1139
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1140
|
+
"""
|
|
1141
|
+
if not agent_id:
|
|
1142
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1143
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
1144
|
+
return self._post(
|
|
1145
|
+
f"/v1/agents/{agent_id}/summarize",
|
|
1146
|
+
options=make_request_options(
|
|
1147
|
+
extra_headers=extra_headers,
|
|
1148
|
+
extra_query=extra_query,
|
|
1149
|
+
extra_body=extra_body,
|
|
1150
|
+
timeout=timeout,
|
|
1151
|
+
query=maybe_transform(
|
|
1152
|
+
{"max_message_length": max_message_length}, agent_summarize_params.AgentSummarizeParams
|
|
1153
|
+
),
|
|
1154
|
+
),
|
|
1155
|
+
cast_to=NoneType,
|
|
1156
|
+
)
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
class AsyncAgentsResource(AsyncAPIResource):
|
|
1160
|
+
@cached_property
|
|
1161
|
+
def tools(self) -> AsyncToolsResource:
|
|
1162
|
+
return AsyncToolsResource(self._client)
|
|
1163
|
+
|
|
1164
|
+
@cached_property
|
|
1165
|
+
def sources(self) -> AsyncSourcesResource:
|
|
1166
|
+
return AsyncSourcesResource(self._client)
|
|
1167
|
+
|
|
1168
|
+
@cached_property
|
|
1169
|
+
def folders(self) -> AsyncFoldersResource:
|
|
1170
|
+
return AsyncFoldersResource(self._client)
|
|
1171
|
+
|
|
1172
|
+
@cached_property
|
|
1173
|
+
def files(self) -> AsyncFilesResource:
|
|
1174
|
+
return AsyncFilesResource(self._client)
|
|
1175
|
+
|
|
1176
|
+
@cached_property
|
|
1177
|
+
def core_memory(self) -> AsyncCoreMemoryResource:
|
|
1178
|
+
return AsyncCoreMemoryResource(self._client)
|
|
1179
|
+
|
|
1180
|
+
@cached_property
|
|
1181
|
+
def archival_memory(self) -> AsyncArchivalMemoryResource:
|
|
1182
|
+
return AsyncArchivalMemoryResource(self._client)
|
|
1183
|
+
|
|
1184
|
+
@cached_property
|
|
1185
|
+
def messages(self) -> AsyncMessagesResource:
|
|
1186
|
+
return AsyncMessagesResource(self._client)
|
|
1187
|
+
|
|
1188
|
+
@cached_property
|
|
1189
|
+
def with_raw_response(self) -> AsyncAgentsResourceWithRawResponse:
|
|
1190
|
+
"""
|
|
1191
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
1192
|
+
the raw response object instead of the parsed content.
|
|
1193
|
+
|
|
1194
|
+
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
1195
|
+
"""
|
|
1196
|
+
return AsyncAgentsResourceWithRawResponse(self)
|
|
1197
|
+
|
|
1198
|
+
@cached_property
|
|
1199
|
+
def with_streaming_response(self) -> AsyncAgentsResourceWithStreamingResponse:
|
|
1200
|
+
"""
|
|
1201
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
1202
|
+
|
|
1203
|
+
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
1204
|
+
"""
|
|
1205
|
+
return AsyncAgentsResourceWithStreamingResponse(self)
|
|
1206
|
+
|
|
1207
|
+
async def create(
|
|
1208
|
+
self,
|
|
1209
|
+
*,
|
|
1210
|
+
agent_type: AgentType | Omit = omit,
|
|
1211
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
1212
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1213
|
+
context_window_limit: Optional[int] | Omit = omit,
|
|
1214
|
+
description: Optional[str] | Omit = omit,
|
|
1215
|
+
embedding: Optional[str] | Omit = omit,
|
|
1216
|
+
embedding_chunk_size: Optional[int] | Omit = omit,
|
|
1217
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
1218
|
+
enable_reasoner: Optional[bool] | Omit = omit,
|
|
1219
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
1220
|
+
from_template: Optional[str] | Omit = omit,
|
|
1221
|
+
hidden: Optional[bool] | Omit = omit,
|
|
1222
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1223
|
+
include_base_tool_rules: Optional[bool] | Omit = omit,
|
|
1224
|
+
include_base_tools: bool | Omit = omit,
|
|
1225
|
+
include_default_source: bool | Omit = omit,
|
|
1226
|
+
include_multi_agent_tools: bool | Omit = omit,
|
|
1227
|
+
initial_message_sequence: Optional[Iterable[MessageCreateParam]] | Omit = omit,
|
|
1228
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
1229
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
1230
|
+
max_reasoning_tokens: Optional[int] | Omit = omit,
|
|
1231
|
+
max_tokens: Optional[int] | Omit = omit,
|
|
1232
|
+
memory_blocks: Optional[Iterable[CreateBlockParam]] | Omit = omit,
|
|
1233
|
+
memory_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
1234
|
+
message_buffer_autoclear: bool | Omit = omit,
|
|
1235
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
1236
|
+
model: Optional[str] | Omit = omit,
|
|
1237
|
+
name: str | Omit = omit,
|
|
1238
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
1239
|
+
project: Optional[str] | Omit = omit,
|
|
1240
|
+
project_id: Optional[str] | Omit = omit,
|
|
1241
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
1242
|
+
response_format: Optional[agent_create_params.ResponseFormat] | Omit = omit,
|
|
1243
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
1244
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1245
|
+
system: Optional[str] | Omit = omit,
|
|
1246
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1247
|
+
template: bool | Omit = omit,
|
|
1248
|
+
template_id: Optional[str] | Omit = omit,
|
|
1249
|
+
timezone: Optional[str] | Omit = omit,
|
|
1250
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
1251
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1252
|
+
tool_rules: Optional[Iterable[agent_create_params.ToolRule]] | Omit = omit,
|
|
1253
|
+
tools: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1254
|
+
x_project: str | Omit = omit,
|
|
1255
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1256
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1257
|
+
extra_headers: Headers | None = None,
|
|
1258
|
+
extra_query: Query | None = None,
|
|
1259
|
+
extra_body: Body | None = None,
|
|
1260
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1261
|
+
) -> AgentState:
|
|
1262
|
+
"""
|
|
1263
|
+
Create an agent.
|
|
1264
|
+
|
|
1265
|
+
Args:
|
|
1266
|
+
agent_type: The type of agent.
|
|
1267
|
+
|
|
1268
|
+
base_template_id: The base template id of the agent.
|
|
1269
|
+
|
|
1270
|
+
block_ids: The ids of the blocks used by the agent.
|
|
1271
|
+
|
|
1272
|
+
context_window_limit: The context window limit used by the agent.
|
|
1273
|
+
|
|
1274
|
+
description: The description of the agent.
|
|
1275
|
+
|
|
1276
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
1277
|
+
provider/model-name.
|
|
1278
|
+
|
|
1279
|
+
embedding_chunk_size: The embedding chunk size used by the agent.
|
|
1280
|
+
|
|
1281
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
1282
|
+
|
|
1283
|
+
enable_reasoner: Whether to enable internal extended thinking step for a reasoner model.
|
|
1284
|
+
|
|
1285
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
1286
|
+
|
|
1287
|
+
from_template: The template id used to configure the agent
|
|
1288
|
+
|
|
1289
|
+
hidden: If set to True, the agent will be hidden.
|
|
1290
|
+
|
|
1291
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
1292
|
+
|
|
1293
|
+
include_base_tool_rules: If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly
|
|
1294
|
+
allowed).
|
|
1295
|
+
|
|
1296
|
+
include_base_tools: If true, attaches the Letta core tools (e.g. core_memory related functions).
|
|
1297
|
+
|
|
1298
|
+
include_default_source: If true, automatically creates and attaches a default data source for this
|
|
1299
|
+
agent.
|
|
1300
|
+
|
|
1301
|
+
include_multi_agent_tools: If true, attaches the Letta multi-agent tools (e.g. sending a message to another
|
|
1302
|
+
agent).
|
|
1303
|
+
|
|
1304
|
+
initial_message_sequence: The initial set of messages to put in the agent's in-context memory.
|
|
1305
|
+
|
|
1306
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
1307
|
+
|
|
1308
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
1309
|
+
too high may exceed the context window, which will break the agent.
|
|
1310
|
+
|
|
1311
|
+
max_reasoning_tokens: The maximum number of tokens to generate for reasoning step. If not set, the
|
|
1312
|
+
model will use its default value.
|
|
1313
|
+
|
|
1314
|
+
max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
|
|
1315
|
+
the model will use its default value.
|
|
1316
|
+
|
|
1317
|
+
memory_blocks: The blocks to create in the agent's in-context memory.
|
|
1318
|
+
|
|
1319
|
+
memory_variables: The variables that should be set for the agent.
|
|
1320
|
+
|
|
1321
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
1322
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
1323
|
+
recommended unless you have an advanced use case.
|
|
1324
|
+
|
|
1325
|
+
metadata: The metadata of the agent.
|
|
1326
|
+
|
|
1327
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
1328
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
1329
|
+
|
|
1330
|
+
name: The name of the agent.
|
|
1331
|
+
|
|
1332
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
1333
|
+
may exceed the context window, which will break the agent.
|
|
1334
|
+
|
|
1335
|
+
project: Deprecated: Project should now be passed via the X-Project header instead of in
|
|
1336
|
+
the request body. If using the sdk, this can be done via the new x_project field
|
|
1337
|
+
below.
|
|
1338
|
+
|
|
1339
|
+
project_id: The id of the project the agent belongs to.
|
|
1340
|
+
|
|
1341
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
1342
|
+
|
|
1343
|
+
response_format: The response format for the agent.
|
|
1344
|
+
|
|
1345
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
1346
|
+
|
|
1347
|
+
source_ids: The ids of the sources used by the agent.
|
|
1348
|
+
|
|
1349
|
+
system: The system prompt used by the agent.
|
|
1350
|
+
|
|
1351
|
+
tags: The tags associated with the agent.
|
|
1352
|
+
|
|
1353
|
+
template: Whether the agent is a template
|
|
1354
|
+
|
|
1355
|
+
template_id: The id of the template the agent belongs to.
|
|
1356
|
+
|
|
1357
|
+
timezone: The timezone of the agent (IANA format).
|
|
1358
|
+
|
|
1359
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead.
|
|
1360
|
+
|
|
1361
|
+
tool_ids: The ids of the tools used by the agent.
|
|
1362
|
+
|
|
1363
|
+
tool_rules: The tool rules governing the agent.
|
|
1364
|
+
|
|
1365
|
+
tools: The tools used by the agent.
|
|
1366
|
+
|
|
1367
|
+
x_project: The project slug to associate with the agent (cloud only).
|
|
1368
|
+
|
|
1369
|
+
extra_headers: Send extra headers
|
|
1370
|
+
|
|
1371
|
+
extra_query: Add additional query parameters to the request
|
|
1372
|
+
|
|
1373
|
+
extra_body: Add additional JSON properties to the request
|
|
1374
|
+
|
|
1375
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1376
|
+
"""
|
|
1377
|
+
extra_headers = {**strip_not_given({"X-Project": x_project}), **(extra_headers or {})}
|
|
1378
|
+
return await self._post(
|
|
1379
|
+
"/v1/agents/",
|
|
1380
|
+
body=await async_maybe_transform(
|
|
1381
|
+
{
|
|
1382
|
+
"agent_type": agent_type,
|
|
1383
|
+
"base_template_id": base_template_id,
|
|
1384
|
+
"block_ids": block_ids,
|
|
1385
|
+
"context_window_limit": context_window_limit,
|
|
1386
|
+
"description": description,
|
|
1387
|
+
"embedding": embedding,
|
|
1388
|
+
"embedding_chunk_size": embedding_chunk_size,
|
|
1389
|
+
"embedding_config": embedding_config,
|
|
1390
|
+
"enable_reasoner": enable_reasoner,
|
|
1391
|
+
"enable_sleeptime": enable_sleeptime,
|
|
1392
|
+
"from_template": from_template,
|
|
1393
|
+
"hidden": hidden,
|
|
1394
|
+
"identity_ids": identity_ids,
|
|
1395
|
+
"include_base_tool_rules": include_base_tool_rules,
|
|
1396
|
+
"include_base_tools": include_base_tools,
|
|
1397
|
+
"include_default_source": include_default_source,
|
|
1398
|
+
"include_multi_agent_tools": include_multi_agent_tools,
|
|
1399
|
+
"initial_message_sequence": initial_message_sequence,
|
|
1400
|
+
"llm_config": llm_config,
|
|
1401
|
+
"max_files_open": max_files_open,
|
|
1402
|
+
"max_reasoning_tokens": max_reasoning_tokens,
|
|
1403
|
+
"max_tokens": max_tokens,
|
|
1404
|
+
"memory_blocks": memory_blocks,
|
|
1405
|
+
"memory_variables": memory_variables,
|
|
1406
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1407
|
+
"metadata": metadata,
|
|
1408
|
+
"model": model,
|
|
1409
|
+
"name": name,
|
|
1410
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
1411
|
+
"project": project,
|
|
1412
|
+
"project_id": project_id,
|
|
1413
|
+
"reasoning": reasoning,
|
|
1414
|
+
"response_format": response_format,
|
|
1415
|
+
"secrets": secrets,
|
|
1416
|
+
"source_ids": source_ids,
|
|
1417
|
+
"system": system,
|
|
1418
|
+
"tags": tags,
|
|
1419
|
+
"template": template,
|
|
1420
|
+
"template_id": template_id,
|
|
1421
|
+
"timezone": timezone,
|
|
1422
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
1423
|
+
"tool_ids": tool_ids,
|
|
1424
|
+
"tool_rules": tool_rules,
|
|
1425
|
+
"tools": tools,
|
|
1426
|
+
},
|
|
1427
|
+
agent_create_params.AgentCreateParams,
|
|
1428
|
+
),
|
|
1429
|
+
options=make_request_options(
|
|
1430
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1431
|
+
),
|
|
1432
|
+
cast_to=AgentState,
|
|
1433
|
+
)
|
|
1434
|
+
|
|
1435
|
+
async def retrieve(
|
|
1436
|
+
self,
|
|
1437
|
+
agent_id: str,
|
|
1438
|
+
*,
|
|
1439
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1440
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1441
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1442
|
+
extra_headers: Headers | None = None,
|
|
1443
|
+
extra_query: Query | None = None,
|
|
1444
|
+
extra_body: Body | None = None,
|
|
1445
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1446
|
+
) -> AgentState:
|
|
1447
|
+
"""
|
|
1448
|
+
Get the state of the agent.
|
|
1449
|
+
|
|
1450
|
+
Args:
|
|
1451
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
1452
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
1453
|
+
this can optimize performance by reducing unnecessary joins.
|
|
1454
|
+
|
|
1455
|
+
extra_headers: Send extra headers
|
|
1456
|
+
|
|
1457
|
+
extra_query: Add additional query parameters to the request
|
|
1458
|
+
|
|
1459
|
+
extra_body: Add additional JSON properties to the request
|
|
1460
|
+
|
|
1461
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1462
|
+
"""
|
|
1463
|
+
if not agent_id:
|
|
1464
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1465
|
+
return await self._get(
|
|
1466
|
+
f"/v1/agents/{agent_id}",
|
|
1467
|
+
options=make_request_options(
|
|
1468
|
+
extra_headers=extra_headers,
|
|
1469
|
+
extra_query=extra_query,
|
|
1470
|
+
extra_body=extra_body,
|
|
1471
|
+
timeout=timeout,
|
|
1472
|
+
query=await async_maybe_transform(
|
|
1473
|
+
{"include_relationships": include_relationships}, agent_retrieve_params.AgentRetrieveParams
|
|
1474
|
+
),
|
|
1475
|
+
),
|
|
1476
|
+
cast_to=AgentState,
|
|
1477
|
+
)
|
|
1478
|
+
|
|
1479
|
+
async def update(
|
|
1480
|
+
self,
|
|
1481
|
+
agent_id: str,
|
|
1482
|
+
*,
|
|
1483
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
1484
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1485
|
+
description: Optional[str] | Omit = omit,
|
|
1486
|
+
embedding: Optional[str] | Omit = omit,
|
|
1487
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
1488
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
1489
|
+
hidden: Optional[bool] | Omit = omit,
|
|
1490
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1491
|
+
last_run_completion: Union[str, datetime, None] | Omit = omit,
|
|
1492
|
+
last_run_duration_ms: Optional[int] | Omit = omit,
|
|
1493
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
1494
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
1495
|
+
message_buffer_autoclear: Optional[bool] | Omit = omit,
|
|
1496
|
+
message_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1497
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
1498
|
+
model: Optional[str] | Omit = omit,
|
|
1499
|
+
name: Optional[str] | Omit = omit,
|
|
1500
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
1501
|
+
project_id: Optional[str] | Omit = omit,
|
|
1502
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
1503
|
+
response_format: Optional[agent_update_params.ResponseFormat] | Omit = omit,
|
|
1504
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
1505
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1506
|
+
system: Optional[str] | Omit = omit,
|
|
1507
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1508
|
+
template_id: Optional[str] | Omit = omit,
|
|
1509
|
+
timezone: Optional[str] | Omit = omit,
|
|
1510
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
1511
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1512
|
+
tool_rules: Optional[Iterable[agent_update_params.ToolRule]] | Omit = omit,
|
|
1513
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1514
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1515
|
+
extra_headers: Headers | None = None,
|
|
1516
|
+
extra_query: Query | None = None,
|
|
1517
|
+
extra_body: Body | None = None,
|
|
1518
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1519
|
+
) -> AgentState:
|
|
1520
|
+
"""
|
|
1521
|
+
Update an existing agent.
|
|
1522
|
+
|
|
1523
|
+
Args:
|
|
1524
|
+
base_template_id: The base template id of the agent.
|
|
1525
|
+
|
|
1526
|
+
block_ids: The ids of the blocks used by the agent.
|
|
1527
|
+
|
|
1528
|
+
description: The description of the agent.
|
|
1529
|
+
|
|
1530
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
1531
|
+
provider/model-name.
|
|
1532
|
+
|
|
1533
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
1534
|
+
|
|
1535
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
1536
|
+
|
|
1537
|
+
hidden: If set to True, the agent will be hidden.
|
|
1538
|
+
|
|
1539
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
1540
|
+
|
|
1541
|
+
last_run_completion: The timestamp when the agent last completed a run.
|
|
1542
|
+
|
|
1543
|
+
last_run_duration_ms: The duration in milliseconds of the agent's last run.
|
|
1544
|
+
|
|
1545
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
1546
|
+
|
|
1547
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
1548
|
+
too high may exceed the context window, which will break the agent.
|
|
1549
|
+
|
|
1550
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
1551
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
1552
|
+
recommended unless you have an advanced use case.
|
|
1553
|
+
|
|
1554
|
+
message_ids: The ids of the messages in the agent's in-context memory.
|
|
1555
|
+
|
|
1556
|
+
metadata: The metadata of the agent.
|
|
1557
|
+
|
|
1558
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
1559
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
1560
|
+
|
|
1561
|
+
name: The name of the agent.
|
|
1562
|
+
|
|
1563
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
1564
|
+
may exceed the context window, which will break the agent.
|
|
1565
|
+
|
|
1566
|
+
project_id: The id of the project the agent belongs to.
|
|
1567
|
+
|
|
1568
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
1569
|
+
|
|
1570
|
+
response_format: The response format for the agent.
|
|
1571
|
+
|
|
1572
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
1573
|
+
|
|
1574
|
+
source_ids: The ids of the sources used by the agent.
|
|
1575
|
+
|
|
1576
|
+
system: The system prompt used by the agent.
|
|
1577
|
+
|
|
1578
|
+
tags: The tags associated with the agent.
|
|
1579
|
+
|
|
1580
|
+
template_id: The id of the template the agent belongs to.
|
|
1581
|
+
|
|
1582
|
+
timezone: The timezone of the agent (IANA format).
|
|
1583
|
+
|
|
1584
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead
|
|
1585
|
+
|
|
1586
|
+
tool_ids: The ids of the tools used by the agent.
|
|
1587
|
+
|
|
1588
|
+
tool_rules: The tool rules governing the agent.
|
|
1589
|
+
|
|
1590
|
+
extra_headers: Send extra headers
|
|
1591
|
+
|
|
1592
|
+
extra_query: Add additional query parameters to the request
|
|
1593
|
+
|
|
1594
|
+
extra_body: Add additional JSON properties to the request
|
|
1595
|
+
|
|
1596
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1597
|
+
"""
|
|
1598
|
+
if not agent_id:
|
|
1599
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1600
|
+
return await self._patch(
|
|
1601
|
+
f"/v1/agents/{agent_id}",
|
|
1602
|
+
body=await async_maybe_transform(
|
|
1603
|
+
{
|
|
1604
|
+
"base_template_id": base_template_id,
|
|
1605
|
+
"block_ids": block_ids,
|
|
1606
|
+
"description": description,
|
|
1607
|
+
"embedding": embedding,
|
|
1608
|
+
"embedding_config": embedding_config,
|
|
1609
|
+
"enable_sleeptime": enable_sleeptime,
|
|
1610
|
+
"hidden": hidden,
|
|
1611
|
+
"identity_ids": identity_ids,
|
|
1612
|
+
"last_run_completion": last_run_completion,
|
|
1613
|
+
"last_run_duration_ms": last_run_duration_ms,
|
|
1614
|
+
"llm_config": llm_config,
|
|
1615
|
+
"max_files_open": max_files_open,
|
|
1616
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1617
|
+
"message_ids": message_ids,
|
|
1618
|
+
"metadata": metadata,
|
|
1619
|
+
"model": model,
|
|
1620
|
+
"name": name,
|
|
1621
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
1622
|
+
"project_id": project_id,
|
|
1623
|
+
"reasoning": reasoning,
|
|
1624
|
+
"response_format": response_format,
|
|
1625
|
+
"secrets": secrets,
|
|
1626
|
+
"source_ids": source_ids,
|
|
1627
|
+
"system": system,
|
|
1628
|
+
"tags": tags,
|
|
1629
|
+
"template_id": template_id,
|
|
1630
|
+
"timezone": timezone,
|
|
1631
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
1632
|
+
"tool_ids": tool_ids,
|
|
1633
|
+
"tool_rules": tool_rules,
|
|
1634
|
+
},
|
|
1635
|
+
agent_update_params.AgentUpdateParams,
|
|
1636
|
+
),
|
|
1637
|
+
options=make_request_options(
|
|
1638
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1639
|
+
),
|
|
1640
|
+
cast_to=AgentState,
|
|
1641
|
+
)
|
|
1642
|
+
|
|
1643
|
+
async def list(
|
|
1644
|
+
self,
|
|
1645
|
+
*,
|
|
1646
|
+
after: Optional[str] | Omit = omit,
|
|
1647
|
+
ascending: bool | Omit = omit,
|
|
1648
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
1649
|
+
before: Optional[str] | Omit = omit,
|
|
1650
|
+
identifier_keys: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1651
|
+
identity_id: Optional[str] | Omit = omit,
|
|
1652
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1653
|
+
limit: Optional[int] | Omit = omit,
|
|
1654
|
+
match_all_tags: bool | Omit = omit,
|
|
1655
|
+
name: Optional[str] | Omit = omit,
|
|
1656
|
+
order: Literal["asc", "desc"] | Omit = omit,
|
|
1657
|
+
order_by: Literal["created_at", "last_run_completion"] | Omit = omit,
|
|
1658
|
+
project_id: Optional[str] | Omit = omit,
|
|
1659
|
+
query_text: Optional[str] | Omit = omit,
|
|
1660
|
+
sort_by: Optional[str] | Omit = omit,
|
|
1661
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1662
|
+
template_id: Optional[str] | Omit = omit,
|
|
1663
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1664
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1665
|
+
extra_headers: Headers | None = None,
|
|
1666
|
+
extra_query: Query | None = None,
|
|
1667
|
+
extra_body: Body | None = None,
|
|
1668
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1669
|
+
) -> AgentListResponse:
|
|
1670
|
+
"""
|
|
1671
|
+
Get a list of all agents.
|
|
1672
|
+
|
|
1673
|
+
Args:
|
|
1674
|
+
after: Cursor for pagination
|
|
1675
|
+
|
|
1676
|
+
ascending: Whether to sort agents oldest to newest (True) or newest to oldest (False,
|
|
1677
|
+
default)
|
|
1678
|
+
|
|
1679
|
+
base_template_id: Search agents by base template ID
|
|
1680
|
+
|
|
1681
|
+
before: Cursor for pagination
|
|
1682
|
+
|
|
1683
|
+
identifier_keys: Search agents by identifier keys
|
|
1684
|
+
|
|
1685
|
+
identity_id: Search agents by identity ID
|
|
1686
|
+
|
|
1687
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
1688
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
1689
|
+
this can optimize performance by reducing unnecessary joins.
|
|
1690
|
+
|
|
1691
|
+
limit: Limit for pagination
|
|
1692
|
+
|
|
1693
|
+
match_all_tags: If True, only returns agents that match ALL given tags. Otherwise, return agents
|
|
1694
|
+
that have ANY of the passed-in tags.
|
|
1695
|
+
|
|
1696
|
+
name: Name of the agent
|
|
1697
|
+
|
|
1698
|
+
order: Sort order for agents by creation time. 'asc' for oldest first, 'desc' for
|
|
1699
|
+
newest first
|
|
1700
|
+
|
|
1701
|
+
order_by: Field to sort by
|
|
1702
|
+
|
|
1703
|
+
project_id: Search agents by project ID - this will default to your default project on cloud
|
|
1704
|
+
|
|
1705
|
+
query_text: Search agents by name
|
|
1706
|
+
|
|
1707
|
+
sort_by: Field to sort by. Options: 'created_at' (default), 'last_run_completion'
|
|
1708
|
+
|
|
1709
|
+
tags: List of tags to filter agents by
|
|
1710
|
+
|
|
1711
|
+
template_id: Search agents by template ID
|
|
1712
|
+
|
|
1713
|
+
extra_headers: Send extra headers
|
|
1714
|
+
|
|
1715
|
+
extra_query: Add additional query parameters to the request
|
|
1716
|
+
|
|
1717
|
+
extra_body: Add additional JSON properties to the request
|
|
1718
|
+
|
|
1719
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1720
|
+
"""
|
|
1721
|
+
return await self._get(
|
|
1722
|
+
"/v1/agents/",
|
|
1723
|
+
options=make_request_options(
|
|
1724
|
+
extra_headers=extra_headers,
|
|
1725
|
+
extra_query=extra_query,
|
|
1726
|
+
extra_body=extra_body,
|
|
1727
|
+
timeout=timeout,
|
|
1728
|
+
query=await async_maybe_transform(
|
|
1729
|
+
{
|
|
1730
|
+
"after": after,
|
|
1731
|
+
"ascending": ascending,
|
|
1732
|
+
"base_template_id": base_template_id,
|
|
1733
|
+
"before": before,
|
|
1734
|
+
"identifier_keys": identifier_keys,
|
|
1735
|
+
"identity_id": identity_id,
|
|
1736
|
+
"include_relationships": include_relationships,
|
|
1737
|
+
"limit": limit,
|
|
1738
|
+
"match_all_tags": match_all_tags,
|
|
1739
|
+
"name": name,
|
|
1740
|
+
"order": order,
|
|
1741
|
+
"order_by": order_by,
|
|
1742
|
+
"project_id": project_id,
|
|
1743
|
+
"query_text": query_text,
|
|
1744
|
+
"sort_by": sort_by,
|
|
1745
|
+
"tags": tags,
|
|
1746
|
+
"template_id": template_id,
|
|
1747
|
+
},
|
|
1748
|
+
agent_list_params.AgentListParams,
|
|
1749
|
+
),
|
|
1750
|
+
),
|
|
1751
|
+
cast_to=AgentListResponse,
|
|
1752
|
+
)
|
|
1753
|
+
|
|
1754
|
+
async def delete(
|
|
1755
|
+
self,
|
|
1756
|
+
agent_id: str,
|
|
1757
|
+
*,
|
|
1758
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1759
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1760
|
+
extra_headers: Headers | None = None,
|
|
1761
|
+
extra_query: Query | None = None,
|
|
1762
|
+
extra_body: Body | None = None,
|
|
1763
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1764
|
+
) -> object:
|
|
1765
|
+
"""
|
|
1766
|
+
Delete an agent.
|
|
1767
|
+
|
|
1768
|
+
Args:
|
|
1769
|
+
extra_headers: Send extra headers
|
|
1770
|
+
|
|
1771
|
+
extra_query: Add additional query parameters to the request
|
|
1772
|
+
|
|
1773
|
+
extra_body: Add additional JSON properties to the request
|
|
1774
|
+
|
|
1775
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1776
|
+
"""
|
|
1777
|
+
if not agent_id:
|
|
1778
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1779
|
+
return await self._delete(
|
|
1780
|
+
f"/v1/agents/{agent_id}",
|
|
1781
|
+
options=make_request_options(
|
|
1782
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1783
|
+
),
|
|
1784
|
+
cast_to=object,
|
|
1785
|
+
)
|
|
1786
|
+
|
|
1787
|
+
async def count(
|
|
1788
|
+
self,
|
|
1789
|
+
*,
|
|
1790
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1791
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1792
|
+
extra_headers: Headers | None = None,
|
|
1793
|
+
extra_query: Query | None = None,
|
|
1794
|
+
extra_body: Body | None = None,
|
|
1795
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1796
|
+
) -> AgentCountResponse:
|
|
1797
|
+
"""Get the total number of agents."""
|
|
1798
|
+
return await self._get(
|
|
1799
|
+
"/v1/agents/count",
|
|
1800
|
+
options=make_request_options(
|
|
1801
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1802
|
+
),
|
|
1803
|
+
cast_to=int,
|
|
1804
|
+
)
|
|
1805
|
+
|
|
1806
|
+
async def export(
|
|
1807
|
+
self,
|
|
1808
|
+
agent_id: str,
|
|
1809
|
+
*,
|
|
1810
|
+
max_steps: int | Omit = omit,
|
|
1811
|
+
use_legacy_format: bool | Omit = omit,
|
|
1812
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1813
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1814
|
+
extra_headers: Headers | None = None,
|
|
1815
|
+
extra_query: Query | None = None,
|
|
1816
|
+
extra_body: Body | None = None,
|
|
1817
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1818
|
+
) -> str:
|
|
1819
|
+
"""
|
|
1820
|
+
Export the serialized JSON representation of an agent, formatted with
|
|
1821
|
+
indentation.
|
|
1822
|
+
|
|
1823
|
+
Supports two export formats:
|
|
1824
|
+
|
|
1825
|
+
- Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
|
|
1826
|
+
- New format (default): Multi-entity format with separate agents, tools, blocks,
|
|
1827
|
+
files, etc.
|
|
1828
|
+
|
|
1829
|
+
Args:
|
|
1830
|
+
use_legacy_format: If true, exports using the legacy single-agent format (v1). If false, exports
|
|
1831
|
+
using the new multi-entity format (v2).
|
|
1832
|
+
|
|
1833
|
+
extra_headers: Send extra headers
|
|
1834
|
+
|
|
1835
|
+
extra_query: Add additional query parameters to the request
|
|
1836
|
+
|
|
1837
|
+
extra_body: Add additional JSON properties to the request
|
|
1838
|
+
|
|
1839
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1840
|
+
"""
|
|
1841
|
+
if not agent_id:
|
|
1842
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1843
|
+
return await self._get(
|
|
1844
|
+
f"/v1/agents/{agent_id}/export",
|
|
1845
|
+
options=make_request_options(
|
|
1846
|
+
extra_headers=extra_headers,
|
|
1847
|
+
extra_query=extra_query,
|
|
1848
|
+
extra_body=extra_body,
|
|
1849
|
+
timeout=timeout,
|
|
1850
|
+
query=await async_maybe_transform(
|
|
1851
|
+
{
|
|
1852
|
+
"max_steps": max_steps,
|
|
1853
|
+
"use_legacy_format": use_legacy_format,
|
|
1854
|
+
},
|
|
1855
|
+
agent_export_params.AgentExportParams,
|
|
1856
|
+
),
|
|
1857
|
+
),
|
|
1858
|
+
cast_to=str,
|
|
1859
|
+
)
|
|
1860
|
+
|
|
1861
|
+
async def import_(
|
|
1862
|
+
self,
|
|
1863
|
+
*,
|
|
1864
|
+
file: FileTypes,
|
|
1865
|
+
append_copy_suffix: bool | Omit = omit,
|
|
1866
|
+
env_vars_json: Optional[str] | Omit = omit,
|
|
1867
|
+
override_embedding_handle: Optional[str] | Omit = omit,
|
|
1868
|
+
override_existing_tools: bool | Omit = omit,
|
|
1869
|
+
project_id: Optional[str] | Omit = omit,
|
|
1870
|
+
strip_messages: bool | Omit = omit,
|
|
1871
|
+
x_override_embedding_model: str | Omit = omit,
|
|
1872
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1873
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1874
|
+
extra_headers: Headers | None = None,
|
|
1875
|
+
extra_query: Query | None = None,
|
|
1876
|
+
extra_body: Body | None = None,
|
|
1877
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1878
|
+
) -> AgentImportResponse:
|
|
1879
|
+
"""Import a serialized agent file and recreate the agent(s) in the system.
|
|
1880
|
+
|
|
1881
|
+
Returns
|
|
1882
|
+
the IDs of all imported agents.
|
|
1883
|
+
|
|
1884
|
+
Args:
|
|
1885
|
+
append_copy_suffix: If set to True, appends "\\__copy" to the end of the agent name.
|
|
1886
|
+
|
|
1887
|
+
env_vars_json: Environment variables as a JSON string to pass to the agent for tool execution.
|
|
1888
|
+
|
|
1889
|
+
override_embedding_handle: Override import with specific embedding handle.
|
|
1890
|
+
|
|
1891
|
+
override_existing_tools: If set to True, existing tools can get their source code overwritten by the
|
|
1892
|
+
uploaded tool definitions. Note that Letta core tools can never be updated
|
|
1893
|
+
externally.
|
|
1894
|
+
|
|
1895
|
+
project_id: The project ID to associate the uploaded agent with.
|
|
1896
|
+
|
|
1897
|
+
strip_messages: If set to True, strips all messages from the agent before importing.
|
|
1898
|
+
|
|
1899
|
+
extra_headers: Send extra headers
|
|
1900
|
+
|
|
1901
|
+
extra_query: Add additional query parameters to the request
|
|
1902
|
+
|
|
1903
|
+
extra_body: Add additional JSON properties to the request
|
|
1904
|
+
|
|
1905
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1906
|
+
"""
|
|
1907
|
+
extra_headers = {
|
|
1908
|
+
**strip_not_given({"x-override-embedding-model": x_override_embedding_model}),
|
|
1909
|
+
**(extra_headers or {}),
|
|
1910
|
+
}
|
|
1911
|
+
body = deepcopy_minimal(
|
|
1912
|
+
{
|
|
1913
|
+
"file": file,
|
|
1914
|
+
"append_copy_suffix": append_copy_suffix,
|
|
1915
|
+
"env_vars_json": env_vars_json,
|
|
1916
|
+
"override_embedding_handle": override_embedding_handle,
|
|
1917
|
+
"override_existing_tools": override_existing_tools,
|
|
1918
|
+
"project_id": project_id,
|
|
1919
|
+
"strip_messages": strip_messages,
|
|
1920
|
+
}
|
|
1921
|
+
)
|
|
1922
|
+
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
|
1923
|
+
# It should be noted that the actual Content-Type header that will be
|
|
1924
|
+
# sent to the server will contain a `boundary` parameter, e.g.
|
|
1925
|
+
# multipart/form-data; boundary=---abc--
|
|
1926
|
+
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
|
1927
|
+
return await self._post(
|
|
1928
|
+
"/v1/agents/import",
|
|
1929
|
+
body=await async_maybe_transform(body, agent_import_params.AgentImportParams),
|
|
1930
|
+
files=files,
|
|
1931
|
+
options=make_request_options(
|
|
1932
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1933
|
+
),
|
|
1934
|
+
cast_to=AgentImportResponse,
|
|
1935
|
+
)
|
|
1936
|
+
|
|
1937
|
+
async def list_groups(
|
|
1938
|
+
self,
|
|
1939
|
+
agent_id: str,
|
|
1940
|
+
*,
|
|
1941
|
+
manager_type: Optional[str] | Omit = omit,
|
|
1942
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1943
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1944
|
+
extra_headers: Headers | None = None,
|
|
1945
|
+
extra_query: Query | None = None,
|
|
1946
|
+
extra_body: Body | None = None,
|
|
1947
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1948
|
+
) -> AgentListGroupsResponse:
|
|
1949
|
+
"""
|
|
1950
|
+
Lists the groups for an agent
|
|
1951
|
+
|
|
1952
|
+
Args:
|
|
1953
|
+
manager_type: Manager type to filter groups by
|
|
1954
|
+
|
|
1955
|
+
extra_headers: Send extra headers
|
|
1956
|
+
|
|
1957
|
+
extra_query: Add additional query parameters to the request
|
|
1958
|
+
|
|
1959
|
+
extra_body: Add additional JSON properties to the request
|
|
1960
|
+
|
|
1961
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1962
|
+
"""
|
|
1963
|
+
if not agent_id:
|
|
1964
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1965
|
+
return await self._get(
|
|
1966
|
+
f"/v1/agents/{agent_id}/groups",
|
|
1967
|
+
options=make_request_options(
|
|
1968
|
+
extra_headers=extra_headers,
|
|
1969
|
+
extra_query=extra_query,
|
|
1970
|
+
extra_body=extra_body,
|
|
1971
|
+
timeout=timeout,
|
|
1972
|
+
query=await async_maybe_transform(
|
|
1973
|
+
{"manager_type": manager_type}, agent_list_groups_params.AgentListGroupsParams
|
|
1974
|
+
),
|
|
1975
|
+
),
|
|
1976
|
+
cast_to=AgentListGroupsResponse,
|
|
1977
|
+
)
|
|
1978
|
+
|
|
1979
|
+
async def migrate(
|
|
1980
|
+
self,
|
|
1981
|
+
agent_id: str,
|
|
1982
|
+
*,
|
|
1983
|
+
preserve_core_memories: bool,
|
|
1984
|
+
to_template: str,
|
|
1985
|
+
preserve_tool_variables: bool | Omit = omit,
|
|
1986
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1987
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1988
|
+
extra_headers: Headers | None = None,
|
|
1989
|
+
extra_query: Query | None = None,
|
|
1990
|
+
extra_body: Body | None = None,
|
|
1991
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1992
|
+
) -> AgentMigrateResponse:
|
|
1993
|
+
"""Migrate an agent to a new versioned agent template.
|
|
1994
|
+
|
|
1995
|
+
This will only work for
|
|
1996
|
+
"classic" and non-multiagent agent templates.
|
|
1997
|
+
|
|
1998
|
+
Args:
|
|
1999
|
+
preserve_tool_variables: If true, preserves the existing agent's tool environment variables instead of
|
|
2000
|
+
using the template's variables
|
|
2001
|
+
|
|
2002
|
+
extra_headers: Send extra headers
|
|
2003
|
+
|
|
2004
|
+
extra_query: Add additional query parameters to the request
|
|
2005
|
+
|
|
2006
|
+
extra_body: Add additional JSON properties to the request
|
|
2007
|
+
|
|
2008
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
2009
|
+
"""
|
|
2010
|
+
if not agent_id:
|
|
2011
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
2012
|
+
return await self._post(
|
|
2013
|
+
f"/v1/agents/{agent_id}/migrate",
|
|
2014
|
+
body=await async_maybe_transform(
|
|
2015
|
+
{
|
|
2016
|
+
"preserve_core_memories": preserve_core_memories,
|
|
2017
|
+
"to_template": to_template,
|
|
2018
|
+
"preserve_tool_variables": preserve_tool_variables,
|
|
2019
|
+
},
|
|
2020
|
+
agent_migrate_params.AgentMigrateParams,
|
|
2021
|
+
),
|
|
2022
|
+
options=make_request_options(
|
|
2023
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
2024
|
+
),
|
|
2025
|
+
cast_to=AgentMigrateResponse,
|
|
2026
|
+
)
|
|
2027
|
+
|
|
2028
|
+
async def reset_messages(
|
|
2029
|
+
self,
|
|
2030
|
+
agent_id: str,
|
|
2031
|
+
*,
|
|
2032
|
+
add_default_initial_messages: bool | Omit = omit,
|
|
2033
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2034
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2035
|
+
extra_headers: Headers | None = None,
|
|
2036
|
+
extra_query: Query | None = None,
|
|
2037
|
+
extra_body: Body | None = None,
|
|
2038
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
2039
|
+
) -> AgentState:
|
|
2040
|
+
"""
|
|
2041
|
+
Resets the messages for an agent
|
|
2042
|
+
|
|
2043
|
+
Args:
|
|
2044
|
+
add_default_initial_messages: If true, adds the default initial messages after resetting.
|
|
2045
|
+
|
|
2046
|
+
extra_headers: Send extra headers
|
|
2047
|
+
|
|
2048
|
+
extra_query: Add additional query parameters to the request
|
|
2049
|
+
|
|
2050
|
+
extra_body: Add additional JSON properties to the request
|
|
2051
|
+
|
|
2052
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
2053
|
+
"""
|
|
2054
|
+
if not agent_id:
|
|
2055
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
2056
|
+
return await self._patch(
|
|
2057
|
+
f"/v1/agents/{agent_id}/reset-messages",
|
|
2058
|
+
options=make_request_options(
|
|
2059
|
+
extra_headers=extra_headers,
|
|
2060
|
+
extra_query=extra_query,
|
|
2061
|
+
extra_body=extra_body,
|
|
2062
|
+
timeout=timeout,
|
|
2063
|
+
query=await async_maybe_transform(
|
|
2064
|
+
{"add_default_initial_messages": add_default_initial_messages},
|
|
2065
|
+
agent_reset_messages_params.AgentResetMessagesParams,
|
|
2066
|
+
),
|
|
2067
|
+
),
|
|
2068
|
+
cast_to=AgentState,
|
|
2069
|
+
)
|
|
2070
|
+
|
|
2071
|
+
async def retrieve_context(
|
|
2072
|
+
self,
|
|
2073
|
+
agent_id: str,
|
|
2074
|
+
*,
|
|
2075
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2076
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2077
|
+
extra_headers: Headers | None = None,
|
|
2078
|
+
extra_query: Query | None = None,
|
|
2079
|
+
extra_body: Body | None = None,
|
|
2080
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
2081
|
+
) -> AgentRetrieveContextResponse:
|
|
2082
|
+
"""
|
|
2083
|
+
Retrieve the context window of a specific agent.
|
|
2084
|
+
|
|
2085
|
+
Args:
|
|
2086
|
+
extra_headers: Send extra headers
|
|
2087
|
+
|
|
2088
|
+
extra_query: Add additional query parameters to the request
|
|
2089
|
+
|
|
2090
|
+
extra_body: Add additional JSON properties to the request
|
|
2091
|
+
|
|
2092
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
2093
|
+
"""
|
|
2094
|
+
if not agent_id:
|
|
2095
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
2096
|
+
return await self._get(
|
|
2097
|
+
f"/v1/agents/{agent_id}/context",
|
|
2098
|
+
options=make_request_options(
|
|
2099
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
2100
|
+
),
|
|
2101
|
+
cast_to=AgentRetrieveContextResponse,
|
|
2102
|
+
)
|
|
2103
|
+
|
|
2104
|
+
async def search(
|
|
2105
|
+
self,
|
|
2106
|
+
*,
|
|
2107
|
+
after: Optional[str] | Omit = omit,
|
|
2108
|
+
ascending: bool | Omit = omit,
|
|
2109
|
+
combinator: Literal["AND"] | Omit = omit,
|
|
2110
|
+
limit: float | Omit = omit,
|
|
2111
|
+
project_id: str | Omit = omit,
|
|
2112
|
+
search: Iterable[agent_search_params.Search] | Omit = omit,
|
|
2113
|
+
sort_by: Literal["created_at", "last_run_completion"] | Omit = omit,
|
|
2114
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2115
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2116
|
+
extra_headers: Headers | None = None,
|
|
2117
|
+
extra_query: Query | None = None,
|
|
2118
|
+
extra_body: Body | None = None,
|
|
2119
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
2120
|
+
) -> AgentSearchResponse:
|
|
2121
|
+
"""
|
|
2122
|
+
Search deployed agents
|
|
2123
|
+
|
|
2124
|
+
Args:
|
|
2125
|
+
extra_headers: Send extra headers
|
|
2126
|
+
|
|
2127
|
+
extra_query: Add additional query parameters to the request
|
|
2128
|
+
|
|
2129
|
+
extra_body: Add additional JSON properties to the request
|
|
2130
|
+
|
|
2131
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
2132
|
+
"""
|
|
2133
|
+
return await self._post(
|
|
2134
|
+
"/v1/agents/search",
|
|
2135
|
+
body=await async_maybe_transform(
|
|
2136
|
+
{
|
|
2137
|
+
"after": after,
|
|
2138
|
+
"ascending": ascending,
|
|
2139
|
+
"combinator": combinator,
|
|
2140
|
+
"limit": limit,
|
|
2141
|
+
"project_id": project_id,
|
|
2142
|
+
"search": search,
|
|
2143
|
+
"sort_by": sort_by,
|
|
2144
|
+
},
|
|
2145
|
+
agent_search_params.AgentSearchParams,
|
|
2146
|
+
),
|
|
2147
|
+
options=make_request_options(
|
|
2148
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
2149
|
+
),
|
|
2150
|
+
cast_to=AgentSearchResponse,
|
|
2151
|
+
)
|
|
2152
|
+
|
|
2153
|
+
async def summarize(
|
|
2154
|
+
self,
|
|
2155
|
+
agent_id: str,
|
|
2156
|
+
*,
|
|
2157
|
+
max_message_length: int,
|
|
2158
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
2159
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
2160
|
+
extra_headers: Headers | None = None,
|
|
2161
|
+
extra_query: Query | None = None,
|
|
2162
|
+
extra_body: Body | None = None,
|
|
2163
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
2164
|
+
) -> None:
|
|
2165
|
+
"""
|
|
2166
|
+
Summarize an agent's conversation history to a target message length.
|
|
2167
|
+
|
|
2168
|
+
This endpoint summarizes the current message history for a given agent,
|
|
2169
|
+
truncating and compressing it down to the specified `max_message_length`.
|
|
2170
|
+
|
|
2171
|
+
Args:
|
|
2172
|
+
max_message_length: Maximum number of messages to retain after summarization.
|
|
2173
|
+
|
|
2174
|
+
extra_headers: Send extra headers
|
|
2175
|
+
|
|
2176
|
+
extra_query: Add additional query parameters to the request
|
|
2177
|
+
|
|
2178
|
+
extra_body: Add additional JSON properties to the request
|
|
2179
|
+
|
|
2180
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
2181
|
+
"""
|
|
2182
|
+
if not agent_id:
|
|
2183
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
2184
|
+
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
2185
|
+
return await self._post(
|
|
2186
|
+
f"/v1/agents/{agent_id}/summarize",
|
|
2187
|
+
options=make_request_options(
|
|
2188
|
+
extra_headers=extra_headers,
|
|
2189
|
+
extra_query=extra_query,
|
|
2190
|
+
extra_body=extra_body,
|
|
2191
|
+
timeout=timeout,
|
|
2192
|
+
query=await async_maybe_transform(
|
|
2193
|
+
{"max_message_length": max_message_length}, agent_summarize_params.AgentSummarizeParams
|
|
2194
|
+
),
|
|
2195
|
+
),
|
|
2196
|
+
cast_to=NoneType,
|
|
2197
|
+
)
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
class AgentsResourceWithRawResponse:
|
|
2201
|
+
def __init__(self, agents: AgentsResource) -> None:
|
|
2202
|
+
self._agents = agents
|
|
2203
|
+
|
|
2204
|
+
self.create = to_raw_response_wrapper(
|
|
2205
|
+
agents.create,
|
|
2206
|
+
)
|
|
2207
|
+
self.retrieve = to_raw_response_wrapper(
|
|
2208
|
+
agents.retrieve,
|
|
2209
|
+
)
|
|
2210
|
+
self.update = to_raw_response_wrapper(
|
|
2211
|
+
agents.update,
|
|
2212
|
+
)
|
|
2213
|
+
self.list = to_raw_response_wrapper(
|
|
2214
|
+
agents.list,
|
|
2215
|
+
)
|
|
2216
|
+
self.delete = to_raw_response_wrapper(
|
|
2217
|
+
agents.delete,
|
|
2218
|
+
)
|
|
2219
|
+
self.count = to_raw_response_wrapper(
|
|
2220
|
+
agents.count,
|
|
2221
|
+
)
|
|
2222
|
+
self.export = to_raw_response_wrapper(
|
|
2223
|
+
agents.export,
|
|
2224
|
+
)
|
|
2225
|
+
self.import_ = to_raw_response_wrapper(
|
|
2226
|
+
agents.import_,
|
|
2227
|
+
)
|
|
2228
|
+
self.list_groups = to_raw_response_wrapper(
|
|
2229
|
+
agents.list_groups,
|
|
2230
|
+
)
|
|
2231
|
+
self.migrate = to_raw_response_wrapper(
|
|
2232
|
+
agents.migrate,
|
|
2233
|
+
)
|
|
2234
|
+
self.reset_messages = to_raw_response_wrapper(
|
|
2235
|
+
agents.reset_messages,
|
|
2236
|
+
)
|
|
2237
|
+
self.retrieve_context = to_raw_response_wrapper(
|
|
2238
|
+
agents.retrieve_context,
|
|
2239
|
+
)
|
|
2240
|
+
self.search = to_raw_response_wrapper(
|
|
2241
|
+
agents.search,
|
|
2242
|
+
)
|
|
2243
|
+
self.summarize = to_raw_response_wrapper(
|
|
2244
|
+
agents.summarize,
|
|
2245
|
+
)
|
|
2246
|
+
|
|
2247
|
+
@cached_property
|
|
2248
|
+
def tools(self) -> ToolsResourceWithRawResponse:
|
|
2249
|
+
return ToolsResourceWithRawResponse(self._agents.tools)
|
|
2250
|
+
|
|
2251
|
+
@cached_property
|
|
2252
|
+
def sources(self) -> SourcesResourceWithRawResponse:
|
|
2253
|
+
return SourcesResourceWithRawResponse(self._agents.sources)
|
|
2254
|
+
|
|
2255
|
+
@cached_property
|
|
2256
|
+
def folders(self) -> FoldersResourceWithRawResponse:
|
|
2257
|
+
return FoldersResourceWithRawResponse(self._agents.folders)
|
|
2258
|
+
|
|
2259
|
+
@cached_property
|
|
2260
|
+
def files(self) -> FilesResourceWithRawResponse:
|
|
2261
|
+
return FilesResourceWithRawResponse(self._agents.files)
|
|
2262
|
+
|
|
2263
|
+
@cached_property
|
|
2264
|
+
def core_memory(self) -> CoreMemoryResourceWithRawResponse:
|
|
2265
|
+
return CoreMemoryResourceWithRawResponse(self._agents.core_memory)
|
|
2266
|
+
|
|
2267
|
+
@cached_property
|
|
2268
|
+
def archival_memory(self) -> ArchivalMemoryResourceWithRawResponse:
|
|
2269
|
+
return ArchivalMemoryResourceWithRawResponse(self._agents.archival_memory)
|
|
2270
|
+
|
|
2271
|
+
@cached_property
|
|
2272
|
+
def messages(self) -> MessagesResourceWithRawResponse:
|
|
2273
|
+
return MessagesResourceWithRawResponse(self._agents.messages)
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
class AsyncAgentsResourceWithRawResponse:
|
|
2277
|
+
def __init__(self, agents: AsyncAgentsResource) -> None:
|
|
2278
|
+
self._agents = agents
|
|
2279
|
+
|
|
2280
|
+
self.create = async_to_raw_response_wrapper(
|
|
2281
|
+
agents.create,
|
|
2282
|
+
)
|
|
2283
|
+
self.retrieve = async_to_raw_response_wrapper(
|
|
2284
|
+
agents.retrieve,
|
|
2285
|
+
)
|
|
2286
|
+
self.update = async_to_raw_response_wrapper(
|
|
2287
|
+
agents.update,
|
|
2288
|
+
)
|
|
2289
|
+
self.list = async_to_raw_response_wrapper(
|
|
2290
|
+
agents.list,
|
|
2291
|
+
)
|
|
2292
|
+
self.delete = async_to_raw_response_wrapper(
|
|
2293
|
+
agents.delete,
|
|
2294
|
+
)
|
|
2295
|
+
self.count = async_to_raw_response_wrapper(
|
|
2296
|
+
agents.count,
|
|
2297
|
+
)
|
|
2298
|
+
self.export = async_to_raw_response_wrapper(
|
|
2299
|
+
agents.export,
|
|
2300
|
+
)
|
|
2301
|
+
self.import_ = async_to_raw_response_wrapper(
|
|
2302
|
+
agents.import_,
|
|
2303
|
+
)
|
|
2304
|
+
self.list_groups = async_to_raw_response_wrapper(
|
|
2305
|
+
agents.list_groups,
|
|
2306
|
+
)
|
|
2307
|
+
self.migrate = async_to_raw_response_wrapper(
|
|
2308
|
+
agents.migrate,
|
|
2309
|
+
)
|
|
2310
|
+
self.reset_messages = async_to_raw_response_wrapper(
|
|
2311
|
+
agents.reset_messages,
|
|
2312
|
+
)
|
|
2313
|
+
self.retrieve_context = async_to_raw_response_wrapper(
|
|
2314
|
+
agents.retrieve_context,
|
|
2315
|
+
)
|
|
2316
|
+
self.search = async_to_raw_response_wrapper(
|
|
2317
|
+
agents.search,
|
|
2318
|
+
)
|
|
2319
|
+
self.summarize = async_to_raw_response_wrapper(
|
|
2320
|
+
agents.summarize,
|
|
2321
|
+
)
|
|
2322
|
+
|
|
2323
|
+
@cached_property
|
|
2324
|
+
def tools(self) -> AsyncToolsResourceWithRawResponse:
|
|
2325
|
+
return AsyncToolsResourceWithRawResponse(self._agents.tools)
|
|
2326
|
+
|
|
2327
|
+
@cached_property
|
|
2328
|
+
def sources(self) -> AsyncSourcesResourceWithRawResponse:
|
|
2329
|
+
return AsyncSourcesResourceWithRawResponse(self._agents.sources)
|
|
2330
|
+
|
|
2331
|
+
@cached_property
|
|
2332
|
+
def folders(self) -> AsyncFoldersResourceWithRawResponse:
|
|
2333
|
+
return AsyncFoldersResourceWithRawResponse(self._agents.folders)
|
|
2334
|
+
|
|
2335
|
+
@cached_property
|
|
2336
|
+
def files(self) -> AsyncFilesResourceWithRawResponse:
|
|
2337
|
+
return AsyncFilesResourceWithRawResponse(self._agents.files)
|
|
2338
|
+
|
|
2339
|
+
@cached_property
|
|
2340
|
+
def core_memory(self) -> AsyncCoreMemoryResourceWithRawResponse:
|
|
2341
|
+
return AsyncCoreMemoryResourceWithRawResponse(self._agents.core_memory)
|
|
2342
|
+
|
|
2343
|
+
@cached_property
|
|
2344
|
+
def archival_memory(self) -> AsyncArchivalMemoryResourceWithRawResponse:
|
|
2345
|
+
return AsyncArchivalMemoryResourceWithRawResponse(self._agents.archival_memory)
|
|
2346
|
+
|
|
2347
|
+
@cached_property
|
|
2348
|
+
def messages(self) -> AsyncMessagesResourceWithRawResponse:
|
|
2349
|
+
return AsyncMessagesResourceWithRawResponse(self._agents.messages)
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
class AgentsResourceWithStreamingResponse:
|
|
2353
|
+
def __init__(self, agents: AgentsResource) -> None:
|
|
2354
|
+
self._agents = agents
|
|
2355
|
+
|
|
2356
|
+
self.create = to_streamed_response_wrapper(
|
|
2357
|
+
agents.create,
|
|
2358
|
+
)
|
|
2359
|
+
self.retrieve = to_streamed_response_wrapper(
|
|
2360
|
+
agents.retrieve,
|
|
2361
|
+
)
|
|
2362
|
+
self.update = to_streamed_response_wrapper(
|
|
2363
|
+
agents.update,
|
|
2364
|
+
)
|
|
2365
|
+
self.list = to_streamed_response_wrapper(
|
|
2366
|
+
agents.list,
|
|
2367
|
+
)
|
|
2368
|
+
self.delete = to_streamed_response_wrapper(
|
|
2369
|
+
agents.delete,
|
|
2370
|
+
)
|
|
2371
|
+
self.count = to_streamed_response_wrapper(
|
|
2372
|
+
agents.count,
|
|
2373
|
+
)
|
|
2374
|
+
self.export = to_streamed_response_wrapper(
|
|
2375
|
+
agents.export,
|
|
2376
|
+
)
|
|
2377
|
+
self.import_ = to_streamed_response_wrapper(
|
|
2378
|
+
agents.import_,
|
|
2379
|
+
)
|
|
2380
|
+
self.list_groups = to_streamed_response_wrapper(
|
|
2381
|
+
agents.list_groups,
|
|
2382
|
+
)
|
|
2383
|
+
self.migrate = to_streamed_response_wrapper(
|
|
2384
|
+
agents.migrate,
|
|
2385
|
+
)
|
|
2386
|
+
self.reset_messages = to_streamed_response_wrapper(
|
|
2387
|
+
agents.reset_messages,
|
|
2388
|
+
)
|
|
2389
|
+
self.retrieve_context = to_streamed_response_wrapper(
|
|
2390
|
+
agents.retrieve_context,
|
|
2391
|
+
)
|
|
2392
|
+
self.search = to_streamed_response_wrapper(
|
|
2393
|
+
agents.search,
|
|
2394
|
+
)
|
|
2395
|
+
self.summarize = to_streamed_response_wrapper(
|
|
2396
|
+
agents.summarize,
|
|
2397
|
+
)
|
|
2398
|
+
|
|
2399
|
+
@cached_property
|
|
2400
|
+
def tools(self) -> ToolsResourceWithStreamingResponse:
|
|
2401
|
+
return ToolsResourceWithStreamingResponse(self._agents.tools)
|
|
2402
|
+
|
|
2403
|
+
@cached_property
|
|
2404
|
+
def sources(self) -> SourcesResourceWithStreamingResponse:
|
|
2405
|
+
return SourcesResourceWithStreamingResponse(self._agents.sources)
|
|
2406
|
+
|
|
2407
|
+
@cached_property
|
|
2408
|
+
def folders(self) -> FoldersResourceWithStreamingResponse:
|
|
2409
|
+
return FoldersResourceWithStreamingResponse(self._agents.folders)
|
|
2410
|
+
|
|
2411
|
+
@cached_property
|
|
2412
|
+
def files(self) -> FilesResourceWithStreamingResponse:
|
|
2413
|
+
return FilesResourceWithStreamingResponse(self._agents.files)
|
|
2414
|
+
|
|
2415
|
+
@cached_property
|
|
2416
|
+
def core_memory(self) -> CoreMemoryResourceWithStreamingResponse:
|
|
2417
|
+
return CoreMemoryResourceWithStreamingResponse(self._agents.core_memory)
|
|
2418
|
+
|
|
2419
|
+
@cached_property
|
|
2420
|
+
def archival_memory(self) -> ArchivalMemoryResourceWithStreamingResponse:
|
|
2421
|
+
return ArchivalMemoryResourceWithStreamingResponse(self._agents.archival_memory)
|
|
2422
|
+
|
|
2423
|
+
@cached_property
|
|
2424
|
+
def messages(self) -> MessagesResourceWithStreamingResponse:
|
|
2425
|
+
return MessagesResourceWithStreamingResponse(self._agents.messages)
|
|
2426
|
+
|
|
2427
|
+
|
|
2428
|
+
class AsyncAgentsResourceWithStreamingResponse:
|
|
2429
|
+
def __init__(self, agents: AsyncAgentsResource) -> None:
|
|
2430
|
+
self._agents = agents
|
|
2431
|
+
|
|
2432
|
+
self.create = async_to_streamed_response_wrapper(
|
|
2433
|
+
agents.create,
|
|
2434
|
+
)
|
|
2435
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
|
2436
|
+
agents.retrieve,
|
|
2437
|
+
)
|
|
2438
|
+
self.update = async_to_streamed_response_wrapper(
|
|
2439
|
+
agents.update,
|
|
2440
|
+
)
|
|
2441
|
+
self.list = async_to_streamed_response_wrapper(
|
|
2442
|
+
agents.list,
|
|
2443
|
+
)
|
|
2444
|
+
self.delete = async_to_streamed_response_wrapper(
|
|
2445
|
+
agents.delete,
|
|
2446
|
+
)
|
|
2447
|
+
self.count = async_to_streamed_response_wrapper(
|
|
2448
|
+
agents.count,
|
|
2449
|
+
)
|
|
2450
|
+
self.export = async_to_streamed_response_wrapper(
|
|
2451
|
+
agents.export,
|
|
2452
|
+
)
|
|
2453
|
+
self.import_ = async_to_streamed_response_wrapper(
|
|
2454
|
+
agents.import_,
|
|
2455
|
+
)
|
|
2456
|
+
self.list_groups = async_to_streamed_response_wrapper(
|
|
2457
|
+
agents.list_groups,
|
|
2458
|
+
)
|
|
2459
|
+
self.migrate = async_to_streamed_response_wrapper(
|
|
2460
|
+
agents.migrate,
|
|
2461
|
+
)
|
|
2462
|
+
self.reset_messages = async_to_streamed_response_wrapper(
|
|
2463
|
+
agents.reset_messages,
|
|
2464
|
+
)
|
|
2465
|
+
self.retrieve_context = async_to_streamed_response_wrapper(
|
|
2466
|
+
agents.retrieve_context,
|
|
2467
|
+
)
|
|
2468
|
+
self.search = async_to_streamed_response_wrapper(
|
|
2469
|
+
agents.search,
|
|
2470
|
+
)
|
|
2471
|
+
self.summarize = async_to_streamed_response_wrapper(
|
|
2472
|
+
agents.summarize,
|
|
2473
|
+
)
|
|
2474
|
+
|
|
2475
|
+
@cached_property
|
|
2476
|
+
def tools(self) -> AsyncToolsResourceWithStreamingResponse:
|
|
2477
|
+
return AsyncToolsResourceWithStreamingResponse(self._agents.tools)
|
|
2478
|
+
|
|
2479
|
+
@cached_property
|
|
2480
|
+
def sources(self) -> AsyncSourcesResourceWithStreamingResponse:
|
|
2481
|
+
return AsyncSourcesResourceWithStreamingResponse(self._agents.sources)
|
|
2482
|
+
|
|
2483
|
+
@cached_property
|
|
2484
|
+
def folders(self) -> AsyncFoldersResourceWithStreamingResponse:
|
|
2485
|
+
return AsyncFoldersResourceWithStreamingResponse(self._agents.folders)
|
|
2486
|
+
|
|
2487
|
+
@cached_property
|
|
2488
|
+
def files(self) -> AsyncFilesResourceWithStreamingResponse:
|
|
2489
|
+
return AsyncFilesResourceWithStreamingResponse(self._agents.files)
|
|
2490
|
+
|
|
2491
|
+
@cached_property
|
|
2492
|
+
def core_memory(self) -> AsyncCoreMemoryResourceWithStreamingResponse:
|
|
2493
|
+
return AsyncCoreMemoryResourceWithStreamingResponse(self._agents.core_memory)
|
|
2494
|
+
|
|
2495
|
+
@cached_property
|
|
2496
|
+
def archival_memory(self) -> AsyncArchivalMemoryResourceWithStreamingResponse:
|
|
2497
|
+
return AsyncArchivalMemoryResourceWithStreamingResponse(self._agents.archival_memory)
|
|
2498
|
+
|
|
2499
|
+
@cached_property
|
|
2500
|
+
def messages(self) -> AsyncMessagesResourceWithStreamingResponse:
|
|
2501
|
+
return AsyncMessagesResourceWithStreamingResponse(self._agents.messages)
|