letta-client 1.0.0a6__py3-none-any.whl → 1.0.0a7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of letta-client might be problematic. Click here for more details.
- {letta_sdk → letta_client}/__init__.py +8 -8
- {letta_sdk → letta_client}/_base_client.py +1 -1
- {letta_sdk → letta_client}/_client.py +124 -171
- {letta_sdk → letta_client}/_exceptions.py +2 -2
- {letta_sdk → letta_client}/_resource.py +5 -5
- {letta_sdk → letta_client}/_response.py +8 -6
- {letta_sdk → letta_client}/_streaming.py +3 -3
- {letta_sdk → letta_client}/_types.py +1 -1
- {letta_sdk → letta_client}/_utils/_logs.py +3 -3
- {letta_sdk → letta_client}/_utils/_resources_proxy.py +4 -4
- {letta_sdk → letta_client}/_version.py +2 -2
- {letta_sdk → letta_client}/resources/__init__.py +14 -154
- {letta_sdk → letta_client}/resources/agents/__init__.py +28 -42
- {letta_sdk → letta_client}/resources/agents/agents.py +216 -734
- {letta_sdk/resources/agents/core_memory → letta_client/resources/agents}/blocks.py +103 -12
- {letta_sdk → letta_client}/resources/agents/files.py +71 -8
- {letta_sdk → letta_client}/resources/agents/folders.py +90 -3
- letta_client/resources/agents/groups.py +242 -0
- {letta_sdk → letta_client}/resources/agents/messages.py +252 -480
- {letta_sdk → letta_client}/resources/agents/tools.py +135 -22
- letta_sdk/resources/jobs.py → letta_client/resources/archives.py +268 -280
- {letta_sdk/resources/messages → letta_client/resources/batches}/batches.py +35 -152
- letta_client/resources/batches/messages.py +238 -0
- {letta_sdk/resources/agents/core_memory → letta_client/resources/blocks}/__init__.py +14 -14
- letta_client/resources/blocks/agents.py +284 -0
- {letta_sdk/resources → letta_client/resources/blocks}/blocks.py +54 -167
- letta_client/resources/folders/__init__.py +47 -0
- letta_client/resources/folders/agents.py +234 -0
- letta_client/resources/folders/files.py +469 -0
- letta_sdk/resources/providers.py → letta_client/resources/folders/folders.py +292 -309
- {letta_sdk → letta_client}/resources/groups/groups.py +12 -78
- {letta_sdk → letta_client}/resources/groups/messages.py +165 -27
- letta_client/resources/identities/__init__.py +61 -0
- letta_client/resources/identities/agents.py +266 -0
- letta_client/resources/identities/blocks.py +234 -0
- {letta_sdk/resources → letta_client/resources/identities}/identities.py +267 -525
- letta_client/resources/identities/properties.py +174 -0
- letta_client/resources/models/__init__.py +33 -0
- {letta_sdk/resources → letta_client/resources/models}/embeddings.py +26 -49
- {letta_sdk/resources → letta_client/resources/models}/models.py +42 -117
- letta_client/resources/runs/__init__.py +61 -0
- letta_sdk/resources/archives.py → letta_client/resources/runs/messages.py +182 -153
- letta_client/resources/runs/runs.py +460 -0
- letta_sdk/resources/projects.py → letta_client/resources/runs/steps.py +93 -56
- letta_sdk/resources/voice_beta/chat.py → letta_client/resources/runs/usage.py +50 -57
- letta_client/resources/steps/__init__.py +75 -0
- letta_client/resources/steps/feedback.py +198 -0
- letta_client/resources/steps/messages.py +234 -0
- letta_client/resources/steps/metrics.py +167 -0
- letta_client/resources/steps/steps.py +511 -0
- letta_sdk/resources/telemetry.py → letta_client/resources/steps/trace.py +45 -56
- letta_client/resources/templates/__init__.py +33 -0
- letta_client/resources/templates/agents.py +236 -0
- letta_client/resources/templates/templates.py +102 -0
- {letta_sdk/resources/tools → letta_client/resources}/tools.py +239 -425
- letta_client/types/__init__.py +120 -0
- {letta_sdk → letta_client}/types/agent_create_params.py +5 -2
- {letta_sdk → letta_client}/types/agent_environment_variable.py +3 -0
- letta_client/types/agent_export_file_params.py +18 -0
- letta_sdk/types/agent_export_response.py → letta_client/types/agent_export_file_response.py +2 -2
- letta_sdk/types/agent_import_params.py → letta_client/types/agent_import_file_params.py +5 -2
- letta_sdk/types/agent_import_response.py → letta_client/types/agent_import_file_response.py +2 -2
- {letta_sdk → letta_client}/types/agent_list_params.py +19 -2
- {letta_sdk → letta_client}/types/agent_retrieve_params.py +20 -3
- {letta_sdk → letta_client}/types/agent_state.py +131 -3
- {letta_sdk → letta_client}/types/agent_type.py +1 -0
- {letta_sdk → letta_client}/types/agent_update_params.py +12 -0
- {letta_sdk → letta_client}/types/agents/__init__.py +12 -19
- letta_client/types/agents/approval_create_param.py +44 -0
- {letta_sdk → letta_client}/types/agents/approval_request_message.py +10 -2
- letta_client/types/agents/approval_response_message.py +63 -0
- {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block.py +1 -1
- letta_sdk/types/identity_list_blocks_params.py → letta_client/types/agents/block_list_params.py +2 -2
- {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block_update_params.py +1 -0
- letta_client/types/agents/file_list_params.py +40 -0
- letta_client/types/agents/folder_list_params.py +34 -0
- letta_sdk/types/source.py → letta_client/types/agents/folder_list_response.py +10 -6
- letta_client/types/agents/group_list_params.py +37 -0
- letta_client/types/agents/group_list_response.py +10 -0
- {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union.py +3 -0
- {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/letta_response.py +0 -4
- {letta_sdk → letta_client}/types/agents/message.py +93 -2
- {letta_sdk → letta_client}/types/agents/message_list_params.py +20 -5
- letta_sdk/types/agent_reset_messages_params.py → letta_client/types/agents/message_reset_params.py +2 -2
- {letta_sdk → letta_client}/types/agents/message_send_async_params.py +12 -3
- {letta_sdk → letta_client}/types/agents/message_send_params.py +12 -3
- letta_sdk/types/agents/message_send_stream_params.py → letta_client/types/agents/message_stream_params.py +14 -5
- {letta_sdk → letta_client}/types/agents/message_update_params.py +4 -0
- {letta_sdk → letta_client}/types/agents/omitted_reasoning_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/omitted_reasoning_content_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/run.py +16 -19
- {letta_sdk → letta_client}/types/agents/text_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/text_content_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/tool_call_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/tool_call_content_param.py +4 -1
- {letta_sdk → letta_client}/types/agents/tool_call_message.py +6 -2
- letta_client/types/agents/tool_list_params.py +34 -0
- {letta_sdk → letta_client}/types/agents/tool_return.py +7 -3
- letta_client/types/agents/tool_return_param.py +25 -0
- letta_client/types/agents/tool_update_approval_params.py +21 -0
- {letta_sdk → letta_client}/types/archive.py +4 -0
- letta_client/types/archive_create_params.py +19 -0
- letta_sdk/types/archive_retrieve_params.py → letta_client/types/archive_list_params.py +2 -2
- letta_sdk/types/archive_retrieve_response.py → letta_client/types/archive_list_response.py +2 -2
- {letta_sdk → letta_client}/types/archive_update_params.py +3 -3
- {letta_sdk/types/messages → letta_client/types}/batch_create_params.py +15 -6
- letta_sdk/types/job.py → letta_client/types/batch_job.py +8 -3
- letta_client/types/batches/__init__.py +6 -0
- letta_sdk/types/messages/batch_list_messages_params.py → letta_client/types/batches/message_list_params.py +2 -2
- letta_sdk/types/messages/batch_list_messages_response.py → letta_client/types/batches/message_list_response.py +2 -2
- {letta_sdk → letta_client}/types/block_list_response.py +1 -1
- letta_client/types/blocks/__init__.py +6 -0
- letta_sdk/types/block_list_agents_params.py → letta_client/types/blocks/agent_list_params.py +22 -5
- letta_sdk/types/agent_list_groups_response.py → letta_client/types/blocks/agent_list_response.py +3 -3
- letta_client/types/child_tool_rule.py +40 -0
- letta_client/types/child_tool_rule_param.py +42 -0
- letta_client/types/folders/__init__.py +10 -0
- letta_sdk/types/folder_list_agents_params.py → letta_client/types/folders/agent_list_params.py +2 -2
- letta_sdk/types/run_list_active_response.py → letta_client/types/folders/agent_list_response.py +2 -4
- letta_sdk/types/folder_list_files_params.py → letta_client/types/folders/file_list_params.py +2 -2
- letta_client/types/folders/file_list_response.py +68 -0
- letta_sdk/types/source_upload_file_params.py → letta_client/types/folders/file_upload_params.py +5 -6
- letta_sdk/types/file_metadata.py → letta_client/types/folders/file_upload_response.py +5 -5
- {letta_sdk → letta_client}/types/groups/__init__.py +1 -1
- {letta_sdk → letta_client}/types/groups/message_send_params.py +12 -3
- letta_sdk/types/groups/message_send_stream_params.py → letta_client/types/groups/message_stream_params.py +14 -5
- {letta_sdk → letta_client}/types/groups/message_update_params.py +4 -0
- letta_sdk/types/health_check_response.py → letta_client/types/health_response.py +2 -2
- letta_client/types/identities/__init__.py +9 -0
- letta_sdk/types/identity_list_agents_params.py → letta_client/types/identities/agent_list_params.py +19 -3
- letta_client/types/identities/agent_list_response.py +10 -0
- letta_client/types/identities/block_list_params.py +34 -0
- letta_sdk/types/agents/folder_list_response.py → letta_client/types/identities/block_list_response.py +3 -3
- letta_sdk/types/identity_upsert_properties_params.py → letta_client/types/identities/property_upsert_params.py +3 -3
- letta_sdk/types/identity_modify_params.py → letta_client/types/identity_update_params.py +2 -2
- {letta_sdk → letta_client}/types/init_tool_rule.py +10 -1
- {letta_sdk → letta_client}/types/init_tool_rule_param.py +10 -1
- {letta_sdk → letta_client}/types/llm_config.py +6 -0
- {letta_sdk → letta_client}/types/llm_config_param.py +6 -0
- {letta_sdk/types/voice_beta → letta_client/types/models}/__init__.py +1 -1
- letta_sdk/types/agents/archival_memory_create_response.py → letta_client/types/models/embedding_list_response.py +3 -3
- {letta_sdk → letta_client}/types/run_list_params.py +29 -5
- letta_client/types/runs/__init__.py +10 -0
- letta_sdk/types/run_list_messages_params.py → letta_client/types/runs/message_list_params.py +5 -2
- letta_client/types/runs/message_list_response.py +10 -0
- letta_sdk/types/run_retrieve_stream_params.py → letta_client/types/runs/message_stream_params.py +2 -2
- letta_sdk/types/run_list_steps_params.py → letta_client/types/runs/step_list_params.py +9 -6
- letta_sdk/types/job_list_response.py → letta_client/types/runs/step_list_response.py +3 -3
- letta_sdk/types/run_retrieve_usage_response.py → letta_client/types/runs/usage_retrieve_response.py +3 -3
- {letta_sdk → letta_client}/types/step.py +6 -6
- letta_client/types/steps/__init__.py +8 -0
- letta_sdk/types/step_update_feedback_params.py → letta_client/types/steps/feedback_create_params.py +3 -3
- letta_sdk/types/step_list_messages_params.py → letta_client/types/steps/message_list_params.py +2 -2
- letta_client/types/steps/message_list_response.py +34 -0
- letta_sdk/types/step_retrieve_metrics_response.py → letta_client/types/steps/metric_retrieve_response.py +6 -6
- {letta_sdk/types/tools → letta_client/types/templates}/__init__.py +2 -0
- letta_sdk/types/template_create_agents_params.py → letta_client/types/templates/agent_create_params.py +4 -4
- {letta_sdk → letta_client}/types/tool.py +6 -0
- {letta_sdk → letta_client}/types/tool_create_params.py +6 -0
- {letta_sdk → letta_client}/types/tool_return_message.py +3 -0
- letta_sdk/types/tool_modify_params.py → letta_client/types/tool_update_params.py +8 -2
- letta_sdk/types/tool_upsert_base_response.py → letta_client/types/tool_upsert_base_tools_response.py +2 -2
- {letta_sdk → letta_client}/types/tool_upsert_params.py +6 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a7.dist-info}/METADATA +110 -70
- letta_client-1.0.0a7.dist-info/RECORD +307 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a7.dist-info}/licenses/LICENSE +1 -1
- letta_client-1.0.0a6.dist-info/RECORD +0 -420
- letta_sdk/resources/_internal_templates/__init__.py +0 -33
- letta_sdk/resources/_internal_templates/_internal_templates.py +0 -961
- letta_sdk/resources/_internal_templates/deployment.py +0 -268
- letta_sdk/resources/agents/archival_memory.py +0 -581
- letta_sdk/resources/agents/core_memory/core_memory.py +0 -278
- letta_sdk/resources/agents/sources.py +0 -332
- letta_sdk/resources/client_side_access_tokens.py +0 -402
- letta_sdk/resources/folders.py +0 -1562
- letta_sdk/resources/health.py +0 -135
- letta_sdk/resources/messages/messages.py +0 -102
- letta_sdk/resources/runs.py +0 -1016
- letta_sdk/resources/sources/__init__.py +0 -33
- letta_sdk/resources/sources/files.py +0 -341
- letta_sdk/resources/sources/sources.py +0 -1371
- letta_sdk/resources/steps.py +0 -784
- letta_sdk/resources/templates.py +0 -1310
- letta_sdk/resources/tools/__init__.py +0 -47
- letta_sdk/resources/tools/composio/__init__.py +0 -33
- letta_sdk/resources/tools/composio/apps.py +0 -214
- letta_sdk/resources/tools/composio/composio.py +0 -201
- letta_sdk/resources/tools/mcp/__init__.py +0 -47
- letta_sdk/resources/tools/mcp/mcp.py +0 -134
- letta_sdk/resources/tools/mcp/oauth.py +0 -214
- letta_sdk/resources/tools/mcp/servers/__init__.py +0 -33
- letta_sdk/resources/tools/mcp/servers/servers.py +0 -1785
- letta_sdk/resources/tools/mcp/servers/tools.py +0 -263
- letta_sdk/resources/voice_beta/__init__.py +0 -33
- letta_sdk/resources/voice_beta/voice_beta.py +0 -102
- letta_sdk/types/__init__.py +0 -226
- letta_sdk/types/_internal_templates/__init__.py +0 -7
- letta_sdk/types/_internal_templates/deployment_delete_response.py +0 -17
- letta_sdk/types/_internal_templates/deployment_list_entities_params.py +0 -15
- letta_sdk/types/_internal_templates/deployment_list_entities_response.py +0 -31
- letta_sdk/types/agent_export_params.py +0 -17
- letta_sdk/types/agent_list_groups_params.py +0 -13
- letta_sdk/types/agent_migrate_params.py +0 -19
- letta_sdk/types/agent_migrate_response.py +0 -11
- letta_sdk/types/agent_retrieve_context_response.py +0 -110
- letta_sdk/types/agent_search_params.py +0 -78
- letta_sdk/types/agent_search_response.py +0 -16
- letta_sdk/types/agent_summarize_params.py +0 -12
- letta_sdk/types/agents/approval_create_param.py +0 -22
- letta_sdk/types/agents/approval_response_message.py +0 -41
- letta_sdk/types/agents/archival_memory_create_params.py +0 -23
- letta_sdk/types/agents/archival_memory_list_params.py +0 -28
- letta_sdk/types/agents/archival_memory_list_response.py +0 -10
- letta_sdk/types/agents/archival_memory_search_params.py +0 -35
- letta_sdk/types/agents/archival_memory_search_response.py +0 -26
- letta_sdk/types/agents/core_memory/__init__.py +0 -7
- letta_sdk/types/agents/core_memory_retrieve_variables_response.py +0 -11
- letta_sdk/types/agents/file_list_params.py +0 -19
- letta_sdk/types/agents/letta_request_param.py +0 -45
- letta_sdk/types/agents/letta_streaming_request_param.py +0 -60
- letta_sdk/types/agents/memory.py +0 -92
- letta_sdk/types/agents/message_preview_raw_payload_params.py +0 -103
- letta_sdk/types/agents/message_preview_raw_payload_response.py +0 -8
- letta_sdk/types/agents/message_search_params.py +0 -38
- letta_sdk/types/agents/message_search_response.py +0 -29
- letta_sdk/types/agents/source_list_response.py +0 -10
- letta_sdk/types/agents/tool_modify_approval_params.py +0 -13
- letta_sdk/types/block_list_agents_response.py +0 -10
- letta_sdk/types/child_tool_rule.py +0 -21
- letta_sdk/types/child_tool_rule_param.py +0 -23
- letta_sdk/types/client_side_access_token_create_params.py +0 -32
- letta_sdk/types/client_side_access_token_create_response.py +0 -34
- letta_sdk/types/client_side_access_token_delete_params.py +0 -11
- letta_sdk/types/client_side_access_token_list_params.py +0 -23
- letta_sdk/types/client_side_access_token_list_response.py +0 -40
- letta_sdk/types/duplicate_file_handling.py +0 -7
- letta_sdk/types/embedding_get_total_storage_size_response.py +0 -7
- letta_sdk/types/file_processing_status.py +0 -7
- letta_sdk/types/folder_get_by_name_response.py +0 -7
- letta_sdk/types/folder_list_agents_response.py +0 -8
- letta_sdk/types/folder_list_files_response.py +0 -10
- letta_sdk/types/folder_list_passages_params.py +0 -34
- letta_sdk/types/folder_list_passages_response.py +0 -10
- letta_sdk/types/folder_retrieve_metadata_params.py +0 -11
- letta_sdk/types/folder_upload_file_params.py +0 -21
- letta_sdk/types/identity_list_agents_response.py +0 -10
- letta_sdk/types/identity_list_blocks_response.py +0 -10
- letta_sdk/types/internal_template_create_agent_params.py +0 -217
- letta_sdk/types/internal_template_create_block_params.py +0 -54
- letta_sdk/types/internal_template_create_group_params.py +0 -49
- letta_sdk/types/job_list_active_params.py +0 -28
- letta_sdk/types/job_list_active_response.py +0 -10
- letta_sdk/types/job_list_params.py +0 -31
- letta_sdk/types/messages/__init__.py +0 -10
- letta_sdk/types/messages/batch_job.py +0 -60
- letta_sdk/types/model_list_embedding_response.py +0 -10
- letta_sdk/types/organization_sources_stats.py +0 -49
- letta_sdk/types/passage.py +0 -56
- letta_sdk/types/project_list_params.py +0 -16
- letta_sdk/types/project_list_response.py +0 -23
- letta_sdk/types/provider.py +0 -42
- letta_sdk/types/provider_check_params.py +0 -30
- letta_sdk/types/provider_create_params.py +0 -33
- letta_sdk/types/provider_list_params.py +0 -42
- letta_sdk/types/provider_list_response.py +0 -10
- letta_sdk/types/provider_update_params.py +0 -25
- letta_sdk/types/run_list_active_params.py +0 -18
- letta_sdk/types/run_list_messages_response.py +0 -10
- letta_sdk/types/run_list_steps_response.py +0 -10
- letta_sdk/types/source_count_response.py +0 -7
- letta_sdk/types/source_create_params.py +0 -33
- letta_sdk/types/source_get_agents_response.py +0 -8
- letta_sdk/types/source_get_by_name_response.py +0 -7
- letta_sdk/types/source_get_metadata_params.py +0 -11
- letta_sdk/types/source_list_passages_params.py +0 -19
- letta_sdk/types/source_list_passages_response.py +0 -10
- letta_sdk/types/source_list_response.py +0 -10
- letta_sdk/types/source_update_params.py +0 -27
- letta_sdk/types/sources/__init__.py +0 -7
- letta_sdk/types/sources/file_list_params.py +0 -26
- letta_sdk/types/sources/file_list_response.py +0 -10
- letta_sdk/types/sources/file_retrieve_params.py +0 -14
- letta_sdk/types/step_list_messages_response.py +0 -34
- letta_sdk/types/template_create_agents_response.py +0 -12
- letta_sdk/types/template_create_params.py +0 -40
- letta_sdk/types/template_create_response.py +0 -29
- letta_sdk/types/template_delete_response.py +0 -9
- letta_sdk/types/template_fork_params.py +0 -17
- letta_sdk/types/template_fork_response.py +0 -29
- letta_sdk/types/template_get_snapshot_response.py +0 -258
- letta_sdk/types/template_list_params.py +0 -34
- letta_sdk/types/template_list_response.py +0 -35
- letta_sdk/types/template_list_versions_params.py +0 -16
- letta_sdk/types/template_list_versions_response.py +0 -29
- letta_sdk/types/template_rename_params.py +0 -14
- letta_sdk/types/template_rename_response.py +0 -9
- letta_sdk/types/template_save_version_params.py +0 -32
- letta_sdk/types/template_save_version_response.py +0 -29
- letta_sdk/types/template_update_description_params.py +0 -14
- letta_sdk/types/template_update_description_response.py +0 -9
- letta_sdk/types/tool_run_params.py +0 -43
- letta_sdk/types/tools/composio/__init__.py +0 -6
- letta_sdk/types/tools/composio/app_list_actions_response.py +0 -70
- letta_sdk/types/tools/composio/app_list_response.py +0 -103
- letta_sdk/types/tools/mcp/__init__.py +0 -21
- letta_sdk/types/tools/mcp/mcp_server_type.py +0 -7
- letta_sdk/types/tools/mcp/oauth_callback_params.py +0 -22
- letta_sdk/types/tools/mcp/server_add_params.py +0 -68
- letta_sdk/types/tools/mcp/server_add_response.py +0 -14
- letta_sdk/types/tools/mcp/server_connect_params.py +0 -68
- letta_sdk/types/tools/mcp/server_delete_response.py +0 -14
- letta_sdk/types/tools/mcp/server_list_response.py +0 -14
- letta_sdk/types/tools/mcp/server_resync_params.py +0 -12
- letta_sdk/types/tools/mcp/server_test_params.py +0 -68
- letta_sdk/types/tools/mcp/server_update_params.py +0 -43
- letta_sdk/types/tools/mcp/server_update_response.py +0 -12
- letta_sdk/types/tools/mcp/servers/__init__.py +0 -6
- letta_sdk/types/tools/mcp/servers/tool_execute_params.py +0 -15
- letta_sdk/types/tools/mcp/servers/tool_list_response.py +0 -85
- letta_sdk/types/tools/mcp/sse_server_config.py +0 -27
- letta_sdk/types/tools/mcp/sse_server_config_param.py +0 -29
- letta_sdk/types/tools/mcp/stdio_server_config.py +0 -24
- letta_sdk/types/tools/mcp/stdio_server_config_param.py +0 -27
- letta_sdk/types/tools/mcp/streamable_http_server_config.py +0 -27
- letta_sdk/types/tools/mcp/streamable_http_server_config_param.py +0 -29
- letta_sdk/types/voice_beta/chat_create_completion_params.py +0 -12
- {letta_sdk → letta_client}/_compat.py +0 -0
- {letta_sdk → letta_client}/_constants.py +0 -0
- {letta_sdk → letta_client}/_files.py +0 -0
- {letta_sdk → letta_client}/_models.py +0 -0
- {letta_sdk → letta_client}/_qs.py +0 -0
- {letta_sdk → letta_client}/_utils/__init__.py +0 -0
- {letta_sdk → letta_client}/_utils/_compat.py +0 -0
- {letta_sdk → letta_client}/_utils/_datetime_parse.py +0 -0
- {letta_sdk → letta_client}/_utils/_proxy.py +0 -0
- {letta_sdk → letta_client}/_utils/_reflection.py +0 -0
- {letta_sdk → letta_client}/_utils/_streams.py +0 -0
- {letta_sdk → letta_client}/_utils/_sync.py +0 -0
- {letta_sdk → letta_client}/_utils/_transform.py +0 -0
- {letta_sdk → letta_client}/_utils/_typing.py +0 -0
- {letta_sdk → letta_client}/_utils/_utils.py +0 -0
- {letta_sdk → letta_client}/lib/.keep +0 -0
- {letta_sdk → letta_client}/py.typed +0 -0
- {letta_sdk/resources/messages → letta_client/resources/batches}/__init__.py +6 -6
- {letta_sdk → letta_client}/resources/groups/__init__.py +0 -0
- {letta_sdk → letta_client}/resources/tags.py +0 -0
- {letta_sdk → letta_client}/types/agent_count_response.py +0 -0
- {letta_sdk → letta_client}/types/agent_list_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/assistant_message.py +0 -0
- {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block_list_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_close_all_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_list_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_open_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/hidden_reasoning_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/image_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/image_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/job_status.py +0 -0
- {letta_sdk → letta_client}/types/agents/job_type.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_message_union.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_user_message_content_union.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_user_message_content_union_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_cancel_params.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_cancel_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_list_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_role.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_type.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_update_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/redacted_reasoning_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/redacted_reasoning_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/system_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_call.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_call_delta.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_list_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_return_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_return_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_assistant_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_reasoning_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_system_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_user_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/user_message.py +0 -0
- {letta_sdk/types/messages → letta_client/types}/batch_list_params.py +0 -0
- {letta_sdk/types/messages → letta_client/types}/batch_list_response.py +0 -0
- {letta_sdk → letta_client}/types/block_count_response.py +0 -0
- {letta_sdk → letta_client}/types/block_create_params.py +0 -0
- {letta_sdk → letta_client}/types/block_list_params.py +0 -0
- {letta_sdk → letta_client}/types/block_update_params.py +0 -0
- {letta_sdk → letta_client}/types/conditional_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/conditional_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/continue_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/continue_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/create_block_param.py +0 -0
- {letta_sdk → letta_client}/types/dynamic_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/embedding_config.py +0 -0
- {letta_sdk → letta_client}/types/embedding_config_param.py +0 -0
- {letta_sdk → letta_client}/types/folder.py +0 -0
- {letta_sdk → letta_client}/types/folder_count_response.py +0 -0
- {letta_sdk → letta_client}/types/folder_create_params.py +0 -0
- {letta_sdk → letta_client}/types/folder_list_params.py +0 -0
- {letta_sdk → letta_client}/types/folder_list_response.py +0 -0
- {letta_sdk → letta_client}/types/folder_update_params.py +0 -0
- {letta_sdk → letta_client}/types/group.py +0 -0
- {letta_sdk → letta_client}/types/group_count_response.py +0 -0
- {letta_sdk → letta_client}/types/group_create_params.py +0 -0
- {letta_sdk → letta_client}/types/group_list_params.py +0 -0
- {letta_sdk → letta_client}/types/group_list_response.py +0 -0
- {letta_sdk → letta_client}/types/group_update_params.py +0 -0
- {letta_sdk → letta_client}/types/groups/message_list_params.py +0 -0
- {letta_sdk → letta_client}/types/groups/message_list_response.py +0 -0
- {letta_sdk → letta_client}/types/groups/message_update_response.py +0 -0
- {letta_sdk → letta_client}/types/identity.py +0 -0
- {letta_sdk → letta_client}/types/identity_count_response.py +0 -0
- {letta_sdk → letta_client}/types/identity_create_params.py +0 -0
- {letta_sdk → letta_client}/types/identity_list_params.py +0 -0
- {letta_sdk → letta_client}/types/identity_list_response.py +0 -0
- {letta_sdk → letta_client}/types/identity_property.py +0 -0
- {letta_sdk → letta_client}/types/identity_property_param.py +0 -0
- {letta_sdk → letta_client}/types/identity_type.py +0 -0
- {letta_sdk → letta_client}/types/identity_upsert_params.py +0 -0
- {letta_sdk → letta_client}/types/json_object_response_format.py +0 -0
- {letta_sdk → letta_client}/types/json_object_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/json_schema_response_format.py +0 -0
- {letta_sdk → letta_client}/types/json_schema_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/letta_message_content_union_param.py +0 -0
- {letta_sdk → letta_client}/types/manager_type.py +0 -0
- {letta_sdk → letta_client}/types/max_count_per_step_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/max_count_per_step_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/message_create_param.py +0 -0
- {letta_sdk → letta_client}/types/model_list_params.py +0 -0
- {letta_sdk → letta_client}/types/model_list_response.py +0 -0
- {letta_sdk → letta_client}/types/npm_requirement.py +0 -0
- {letta_sdk → letta_client}/types/npm_requirement_param.py +0 -0
- {letta_sdk → letta_client}/types/parent_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/parent_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/pip_requirement.py +0 -0
- {letta_sdk → letta_client}/types/pip_requirement_param.py +0 -0
- {letta_sdk → letta_client}/types/provider_category.py +0 -0
- {letta_sdk → letta_client}/types/provider_trace.py +0 -0
- {letta_sdk → letta_client}/types/provider_type.py +0 -0
- {letta_sdk → letta_client}/types/required_before_exit_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/required_before_exit_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/requires_approval_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/requires_approval_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/round_robin_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/run_list_response.py +0 -0
- {letta_sdk → letta_client}/types/sleeptime_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/step_list_params.py +0 -0
- {letta_sdk → letta_client}/types/step_list_response.py +0 -0
- {letta_sdk → letta_client}/types/stop_reason_type.py +0 -0
- {letta_sdk → letta_client}/types/supervisor_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/tag_list_params.py +0 -0
- {letta_sdk → letta_client}/types/tag_list_response.py +0 -0
- {letta_sdk → letta_client}/types/terminal_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/terminal_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/text_response_format.py +0 -0
- {letta_sdk → letta_client}/types/text_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/tool_count_params.py +0 -0
- {letta_sdk → letta_client}/types/tool_count_response.py +0 -0
- {letta_sdk → letta_client}/types/tool_list_params.py +0 -0
- {letta_sdk → letta_client}/types/tool_list_response.py +0 -0
- {letta_sdk → letta_client}/types/tool_type.py +1 -1
- {letta_sdk → letta_client}/types/vector_db_provider.py +0 -0
- {letta_sdk → letta_client}/types/voice_sleeptime_manager_param.py +0 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a7.dist-info}/WHEEL +0 -0
|
@@ -137,6 +137,8 @@ class GroupsResource(SyncAPIResource):
|
|
|
137
137
|
Retrieve the group by id.
|
|
138
138
|
|
|
139
139
|
Args:
|
|
140
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
141
|
+
|
|
140
142
|
extra_headers: Send extra headers
|
|
141
143
|
|
|
142
144
|
extra_query: Add additional query parameters to the request
|
|
@@ -176,6 +178,8 @@ class GroupsResource(SyncAPIResource):
|
|
|
176
178
|
Create a new multi-agent group with the specified configuration.
|
|
177
179
|
|
|
178
180
|
Args:
|
|
181
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
182
|
+
|
|
179
183
|
agent_ids
|
|
180
184
|
|
|
181
185
|
description
|
|
@@ -301,6 +305,8 @@ class GroupsResource(SyncAPIResource):
|
|
|
301
305
|
Delete a multi-agent group.
|
|
302
306
|
|
|
303
307
|
Args:
|
|
308
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
309
|
+
|
|
304
310
|
extra_headers: Send extra headers
|
|
305
311
|
|
|
306
312
|
extra_query: Add additional query parameters to the request
|
|
@@ -338,39 +344,6 @@ class GroupsResource(SyncAPIResource):
|
|
|
338
344
|
cast_to=int,
|
|
339
345
|
)
|
|
340
346
|
|
|
341
|
-
def reset_messages(
|
|
342
|
-
self,
|
|
343
|
-
group_id: str,
|
|
344
|
-
*,
|
|
345
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
346
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
347
|
-
extra_headers: Headers | None = None,
|
|
348
|
-
extra_query: Query | None = None,
|
|
349
|
-
extra_body: Body | None = None,
|
|
350
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
351
|
-
) -> object:
|
|
352
|
-
"""
|
|
353
|
-
Delete the group messages for all agents that are part of the multi-agent group.
|
|
354
|
-
|
|
355
|
-
Args:
|
|
356
|
-
extra_headers: Send extra headers
|
|
357
|
-
|
|
358
|
-
extra_query: Add additional query parameters to the request
|
|
359
|
-
|
|
360
|
-
extra_body: Add additional JSON properties to the request
|
|
361
|
-
|
|
362
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
363
|
-
"""
|
|
364
|
-
if not group_id:
|
|
365
|
-
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
|
|
366
|
-
return self._patch(
|
|
367
|
-
f"/v1/groups/{group_id}/reset-messages",
|
|
368
|
-
options=make_request_options(
|
|
369
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
370
|
-
),
|
|
371
|
-
cast_to=object,
|
|
372
|
-
)
|
|
373
|
-
|
|
374
347
|
|
|
375
348
|
class AsyncGroupsResource(AsyncAPIResource):
|
|
376
349
|
@cached_property
|
|
@@ -474,6 +447,8 @@ class AsyncGroupsResource(AsyncAPIResource):
|
|
|
474
447
|
Retrieve the group by id.
|
|
475
448
|
|
|
476
449
|
Args:
|
|
450
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
451
|
+
|
|
477
452
|
extra_headers: Send extra headers
|
|
478
453
|
|
|
479
454
|
extra_query: Add additional query parameters to the request
|
|
@@ -513,6 +488,8 @@ class AsyncGroupsResource(AsyncAPIResource):
|
|
|
513
488
|
Create a new multi-agent group with the specified configuration.
|
|
514
489
|
|
|
515
490
|
Args:
|
|
491
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
492
|
+
|
|
516
493
|
agent_ids
|
|
517
494
|
|
|
518
495
|
description
|
|
@@ -638,6 +615,8 @@ class AsyncGroupsResource(AsyncAPIResource):
|
|
|
638
615
|
Delete a multi-agent group.
|
|
639
616
|
|
|
640
617
|
Args:
|
|
618
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
619
|
+
|
|
641
620
|
extra_headers: Send extra headers
|
|
642
621
|
|
|
643
622
|
extra_query: Add additional query parameters to the request
|
|
@@ -675,39 +654,6 @@ class AsyncGroupsResource(AsyncAPIResource):
|
|
|
675
654
|
cast_to=int,
|
|
676
655
|
)
|
|
677
656
|
|
|
678
|
-
async def reset_messages(
|
|
679
|
-
self,
|
|
680
|
-
group_id: str,
|
|
681
|
-
*,
|
|
682
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
683
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
684
|
-
extra_headers: Headers | None = None,
|
|
685
|
-
extra_query: Query | None = None,
|
|
686
|
-
extra_body: Body | None = None,
|
|
687
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
688
|
-
) -> object:
|
|
689
|
-
"""
|
|
690
|
-
Delete the group messages for all agents that are part of the multi-agent group.
|
|
691
|
-
|
|
692
|
-
Args:
|
|
693
|
-
extra_headers: Send extra headers
|
|
694
|
-
|
|
695
|
-
extra_query: Add additional query parameters to the request
|
|
696
|
-
|
|
697
|
-
extra_body: Add additional JSON properties to the request
|
|
698
|
-
|
|
699
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
700
|
-
"""
|
|
701
|
-
if not group_id:
|
|
702
|
-
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
|
|
703
|
-
return await self._patch(
|
|
704
|
-
f"/v1/groups/{group_id}/reset-messages",
|
|
705
|
-
options=make_request_options(
|
|
706
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
707
|
-
),
|
|
708
|
-
cast_to=object,
|
|
709
|
-
)
|
|
710
|
-
|
|
711
657
|
|
|
712
658
|
class GroupsResourceWithRawResponse:
|
|
713
659
|
def __init__(self, groups: GroupsResource) -> None:
|
|
@@ -731,9 +677,6 @@ class GroupsResourceWithRawResponse:
|
|
|
731
677
|
self.count = to_raw_response_wrapper(
|
|
732
678
|
groups.count,
|
|
733
679
|
)
|
|
734
|
-
self.reset_messages = to_raw_response_wrapper(
|
|
735
|
-
groups.reset_messages,
|
|
736
|
-
)
|
|
737
680
|
|
|
738
681
|
@cached_property
|
|
739
682
|
def messages(self) -> MessagesResourceWithRawResponse:
|
|
@@ -762,9 +705,6 @@ class AsyncGroupsResourceWithRawResponse:
|
|
|
762
705
|
self.count = async_to_raw_response_wrapper(
|
|
763
706
|
groups.count,
|
|
764
707
|
)
|
|
765
|
-
self.reset_messages = async_to_raw_response_wrapper(
|
|
766
|
-
groups.reset_messages,
|
|
767
|
-
)
|
|
768
708
|
|
|
769
709
|
@cached_property
|
|
770
710
|
def messages(self) -> AsyncMessagesResourceWithRawResponse:
|
|
@@ -793,9 +733,6 @@ class GroupsResourceWithStreamingResponse:
|
|
|
793
733
|
self.count = to_streamed_response_wrapper(
|
|
794
734
|
groups.count,
|
|
795
735
|
)
|
|
796
|
-
self.reset_messages = to_streamed_response_wrapper(
|
|
797
|
-
groups.reset_messages,
|
|
798
|
-
)
|
|
799
736
|
|
|
800
737
|
@cached_property
|
|
801
738
|
def messages(self) -> MessagesResourceWithStreamingResponse:
|
|
@@ -824,9 +761,6 @@ class AsyncGroupsResourceWithStreamingResponse:
|
|
|
824
761
|
self.count = async_to_streamed_response_wrapper(
|
|
825
762
|
groups.count,
|
|
826
763
|
)
|
|
827
|
-
self.reset_messages = async_to_streamed_response_wrapper(
|
|
828
|
-
groups.reset_messages,
|
|
829
|
-
)
|
|
830
764
|
|
|
831
765
|
@cached_property
|
|
832
766
|
def messages(self) -> AsyncMessagesResourceWithStreamingResponse:
|
|
@@ -18,7 +18,7 @@ from ..._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from ..._base_client import make_request_options
|
|
21
|
-
from ...types.groups import message_list_params, message_send_params,
|
|
21
|
+
from ...types.groups import message_list_params, message_send_params, message_stream_params, message_update_params
|
|
22
22
|
from ...types.agents.message_type import MessageType
|
|
23
23
|
from ...types.agents.letta_response import LettaResponse
|
|
24
24
|
from ...types.groups.message_list_response import MessageListResponse
|
|
@@ -68,6 +68,10 @@ class MessagesResource(SyncAPIResource):
|
|
|
68
68
|
Update the details of a message associated with an agent.
|
|
69
69
|
|
|
70
70
|
Args:
|
|
71
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
72
|
+
|
|
73
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
74
|
+
|
|
71
75
|
content: The message content sent by the system (can be a string or an array of
|
|
72
76
|
multi-modal content parts)
|
|
73
77
|
|
|
@@ -100,6 +104,10 @@ class MessagesResource(SyncAPIResource):
|
|
|
100
104
|
Update the details of a message associated with an agent.
|
|
101
105
|
|
|
102
106
|
Args:
|
|
107
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
108
|
+
|
|
109
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
110
|
+
|
|
103
111
|
content: The message content sent by the user (can be a string or an array of multi-modal
|
|
104
112
|
content parts)
|
|
105
113
|
|
|
@@ -132,6 +140,10 @@ class MessagesResource(SyncAPIResource):
|
|
|
132
140
|
Update the details of a message associated with an agent.
|
|
133
141
|
|
|
134
142
|
Args:
|
|
143
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
144
|
+
|
|
145
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
146
|
+
|
|
135
147
|
extra_headers: Send extra headers
|
|
136
148
|
|
|
137
149
|
extra_query: Add additional query parameters to the request
|
|
@@ -161,6 +173,10 @@ class MessagesResource(SyncAPIResource):
|
|
|
161
173
|
Update the details of a message associated with an agent.
|
|
162
174
|
|
|
163
175
|
Args:
|
|
176
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
177
|
+
|
|
178
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
179
|
+
|
|
164
180
|
content: The message content sent by the assistant (can be a string or an array of
|
|
165
181
|
content parts)
|
|
166
182
|
|
|
@@ -242,6 +258,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
242
258
|
Retrieve message history for an agent.
|
|
243
259
|
|
|
244
260
|
Args:
|
|
261
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
262
|
+
|
|
245
263
|
after: Message ID cursor for pagination. Returns messages that come after this message
|
|
246
264
|
ID in the specified sort order
|
|
247
265
|
|
|
@@ -295,6 +313,41 @@ class MessagesResource(SyncAPIResource):
|
|
|
295
313
|
cast_to=MessageListResponse,
|
|
296
314
|
)
|
|
297
315
|
|
|
316
|
+
def reset(
|
|
317
|
+
self,
|
|
318
|
+
group_id: str,
|
|
319
|
+
*,
|
|
320
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
321
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
322
|
+
extra_headers: Headers | None = None,
|
|
323
|
+
extra_query: Query | None = None,
|
|
324
|
+
extra_body: Body | None = None,
|
|
325
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
326
|
+
) -> object:
|
|
327
|
+
"""
|
|
328
|
+
Delete the group messages for all agents that are part of the multi-agent group.
|
|
329
|
+
|
|
330
|
+
Args:
|
|
331
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
332
|
+
|
|
333
|
+
extra_headers: Send extra headers
|
|
334
|
+
|
|
335
|
+
extra_query: Add additional query parameters to the request
|
|
336
|
+
|
|
337
|
+
extra_body: Add additional JSON properties to the request
|
|
338
|
+
|
|
339
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
340
|
+
"""
|
|
341
|
+
if not group_id:
|
|
342
|
+
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
|
|
343
|
+
return self._patch(
|
|
344
|
+
f"/v1/groups/{group_id}/reset-messages",
|
|
345
|
+
options=make_request_options(
|
|
346
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
347
|
+
),
|
|
348
|
+
cast_to=object,
|
|
349
|
+
)
|
|
350
|
+
|
|
298
351
|
def send(
|
|
299
352
|
self,
|
|
300
353
|
group_id: str,
|
|
@@ -320,11 +373,15 @@ class MessagesResource(SyncAPIResource):
|
|
|
320
373
|
on the specified pattern
|
|
321
374
|
|
|
322
375
|
Args:
|
|
376
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
377
|
+
|
|
323
378
|
messages: The messages to be sent to the agent.
|
|
324
379
|
|
|
325
|
-
assistant_message_tool_kwarg: The name of the message argument in the designated message tool.
|
|
380
|
+
assistant_message_tool_kwarg: The name of the message argument in the designated message tool. Still supported
|
|
381
|
+
for legacy agent types, but deprecated for letta_v1_agent onward.
|
|
326
382
|
|
|
327
|
-
assistant_message_tool_name: The name of the designated message tool.
|
|
383
|
+
assistant_message_tool_name: The name of the designated message tool. Still supported for legacy agent types,
|
|
384
|
+
but deprecated for letta_v1_agent onward.
|
|
328
385
|
|
|
329
386
|
enable_thinking: If set to True, enables reasoning before responses or tool calls from the agent.
|
|
330
387
|
|
|
@@ -334,7 +391,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
334
391
|
max_steps: Maximum number of steps the agent should take to process the request.
|
|
335
392
|
|
|
336
393
|
use_assistant_message: Whether the server should parse specific tool call arguments (default
|
|
337
|
-
`send_message`) as `AssistantMessage` objects.
|
|
394
|
+
`send_message`) as `AssistantMessage` objects. Still supported for legacy agent
|
|
395
|
+
types, but deprecated for letta_v1_agent onward.
|
|
338
396
|
|
|
339
397
|
extra_headers: Send extra headers
|
|
340
398
|
|
|
@@ -366,11 +424,11 @@ class MessagesResource(SyncAPIResource):
|
|
|
366
424
|
cast_to=LettaResponse,
|
|
367
425
|
)
|
|
368
426
|
|
|
369
|
-
def
|
|
427
|
+
def stream(
|
|
370
428
|
self,
|
|
371
429
|
group_id: str,
|
|
372
430
|
*,
|
|
373
|
-
messages: Iterable[
|
|
431
|
+
messages: Iterable[message_stream_params.Message],
|
|
374
432
|
assistant_message_tool_kwarg: str | Omit = omit,
|
|
375
433
|
assistant_message_tool_name: str | Omit = omit,
|
|
376
434
|
background: bool | Omit = omit,
|
|
@@ -395,11 +453,15 @@ class MessagesResource(SyncAPIResource):
|
|
|
395
453
|
the tokens if 'stream_tokens' is set to True.
|
|
396
454
|
|
|
397
455
|
Args:
|
|
456
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
457
|
+
|
|
398
458
|
messages: The messages to be sent to the agent.
|
|
399
459
|
|
|
400
|
-
assistant_message_tool_kwarg: The name of the message argument in the designated message tool.
|
|
460
|
+
assistant_message_tool_kwarg: The name of the message argument in the designated message tool. Still supported
|
|
461
|
+
for legacy agent types, but deprecated for letta_v1_agent onward.
|
|
401
462
|
|
|
402
|
-
assistant_message_tool_name: The name of the designated message tool.
|
|
463
|
+
assistant_message_tool_name: The name of the designated message tool. Still supported for legacy agent types,
|
|
464
|
+
but deprecated for letta_v1_agent onward.
|
|
403
465
|
|
|
404
466
|
background: Whether to process the request in the background.
|
|
405
467
|
|
|
@@ -417,7 +479,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
417
479
|
per step.
|
|
418
480
|
|
|
419
481
|
use_assistant_message: Whether the server should parse specific tool call arguments (default
|
|
420
|
-
`send_message`) as `AssistantMessage` objects.
|
|
482
|
+
`send_message`) as `AssistantMessage` objects. Still supported for legacy agent
|
|
483
|
+
types, but deprecated for letta_v1_agent onward.
|
|
421
484
|
|
|
422
485
|
extra_headers: Send extra headers
|
|
423
486
|
|
|
@@ -444,7 +507,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
444
507
|
"stream_tokens": stream_tokens,
|
|
445
508
|
"use_assistant_message": use_assistant_message,
|
|
446
509
|
},
|
|
447
|
-
|
|
510
|
+
message_stream_params.MessageStreamParams,
|
|
448
511
|
),
|
|
449
512
|
options=make_request_options(
|
|
450
513
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -492,6 +555,10 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
492
555
|
Update the details of a message associated with an agent.
|
|
493
556
|
|
|
494
557
|
Args:
|
|
558
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
559
|
+
|
|
560
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
561
|
+
|
|
495
562
|
content: The message content sent by the system (can be a string or an array of
|
|
496
563
|
multi-modal content parts)
|
|
497
564
|
|
|
@@ -524,6 +591,10 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
524
591
|
Update the details of a message associated with an agent.
|
|
525
592
|
|
|
526
593
|
Args:
|
|
594
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
595
|
+
|
|
596
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
597
|
+
|
|
527
598
|
content: The message content sent by the user (can be a string or an array of multi-modal
|
|
528
599
|
content parts)
|
|
529
600
|
|
|
@@ -556,6 +627,10 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
556
627
|
Update the details of a message associated with an agent.
|
|
557
628
|
|
|
558
629
|
Args:
|
|
630
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
631
|
+
|
|
632
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
633
|
+
|
|
559
634
|
extra_headers: Send extra headers
|
|
560
635
|
|
|
561
636
|
extra_query: Add additional query parameters to the request
|
|
@@ -585,6 +660,10 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
585
660
|
Update the details of a message associated with an agent.
|
|
586
661
|
|
|
587
662
|
Args:
|
|
663
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
664
|
+
|
|
665
|
+
message_id: The ID of the message in the format 'message-<uuid4>'
|
|
666
|
+
|
|
588
667
|
content: The message content sent by the assistant (can be a string or an array of
|
|
589
668
|
content parts)
|
|
590
669
|
|
|
@@ -666,6 +745,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
666
745
|
Retrieve message history for an agent.
|
|
667
746
|
|
|
668
747
|
Args:
|
|
748
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
749
|
+
|
|
669
750
|
after: Message ID cursor for pagination. Returns messages that come after this message
|
|
670
751
|
ID in the specified sort order
|
|
671
752
|
|
|
@@ -719,6 +800,41 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
719
800
|
cast_to=MessageListResponse,
|
|
720
801
|
)
|
|
721
802
|
|
|
803
|
+
async def reset(
|
|
804
|
+
self,
|
|
805
|
+
group_id: str,
|
|
806
|
+
*,
|
|
807
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
808
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
809
|
+
extra_headers: Headers | None = None,
|
|
810
|
+
extra_query: Query | None = None,
|
|
811
|
+
extra_body: Body | None = None,
|
|
812
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
813
|
+
) -> object:
|
|
814
|
+
"""
|
|
815
|
+
Delete the group messages for all agents that are part of the multi-agent group.
|
|
816
|
+
|
|
817
|
+
Args:
|
|
818
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
819
|
+
|
|
820
|
+
extra_headers: Send extra headers
|
|
821
|
+
|
|
822
|
+
extra_query: Add additional query parameters to the request
|
|
823
|
+
|
|
824
|
+
extra_body: Add additional JSON properties to the request
|
|
825
|
+
|
|
826
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
827
|
+
"""
|
|
828
|
+
if not group_id:
|
|
829
|
+
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
|
|
830
|
+
return await self._patch(
|
|
831
|
+
f"/v1/groups/{group_id}/reset-messages",
|
|
832
|
+
options=make_request_options(
|
|
833
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
834
|
+
),
|
|
835
|
+
cast_to=object,
|
|
836
|
+
)
|
|
837
|
+
|
|
722
838
|
async def send(
|
|
723
839
|
self,
|
|
724
840
|
group_id: str,
|
|
@@ -744,11 +860,15 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
744
860
|
on the specified pattern
|
|
745
861
|
|
|
746
862
|
Args:
|
|
863
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
864
|
+
|
|
747
865
|
messages: The messages to be sent to the agent.
|
|
748
866
|
|
|
749
|
-
assistant_message_tool_kwarg: The name of the message argument in the designated message tool.
|
|
867
|
+
assistant_message_tool_kwarg: The name of the message argument in the designated message tool. Still supported
|
|
868
|
+
for legacy agent types, but deprecated for letta_v1_agent onward.
|
|
750
869
|
|
|
751
|
-
assistant_message_tool_name: The name of the designated message tool.
|
|
870
|
+
assistant_message_tool_name: The name of the designated message tool. Still supported for legacy agent types,
|
|
871
|
+
but deprecated for letta_v1_agent onward.
|
|
752
872
|
|
|
753
873
|
enable_thinking: If set to True, enables reasoning before responses or tool calls from the agent.
|
|
754
874
|
|
|
@@ -758,7 +878,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
758
878
|
max_steps: Maximum number of steps the agent should take to process the request.
|
|
759
879
|
|
|
760
880
|
use_assistant_message: Whether the server should parse specific tool call arguments (default
|
|
761
|
-
`send_message`) as `AssistantMessage` objects.
|
|
881
|
+
`send_message`) as `AssistantMessage` objects. Still supported for legacy agent
|
|
882
|
+
types, but deprecated for letta_v1_agent onward.
|
|
762
883
|
|
|
763
884
|
extra_headers: Send extra headers
|
|
764
885
|
|
|
@@ -790,11 +911,11 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
790
911
|
cast_to=LettaResponse,
|
|
791
912
|
)
|
|
792
913
|
|
|
793
|
-
async def
|
|
914
|
+
async def stream(
|
|
794
915
|
self,
|
|
795
916
|
group_id: str,
|
|
796
917
|
*,
|
|
797
|
-
messages: Iterable[
|
|
918
|
+
messages: Iterable[message_stream_params.Message],
|
|
798
919
|
assistant_message_tool_kwarg: str | Omit = omit,
|
|
799
920
|
assistant_message_tool_name: str | Omit = omit,
|
|
800
921
|
background: bool | Omit = omit,
|
|
@@ -819,11 +940,15 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
819
940
|
the tokens if 'stream_tokens' is set to True.
|
|
820
941
|
|
|
821
942
|
Args:
|
|
943
|
+
group_id: The ID of the group in the format 'group-<uuid4>'
|
|
944
|
+
|
|
822
945
|
messages: The messages to be sent to the agent.
|
|
823
946
|
|
|
824
|
-
assistant_message_tool_kwarg: The name of the message argument in the designated message tool.
|
|
947
|
+
assistant_message_tool_kwarg: The name of the message argument in the designated message tool. Still supported
|
|
948
|
+
for legacy agent types, but deprecated for letta_v1_agent onward.
|
|
825
949
|
|
|
826
|
-
assistant_message_tool_name: The name of the designated message tool.
|
|
950
|
+
assistant_message_tool_name: The name of the designated message tool. Still supported for legacy agent types,
|
|
951
|
+
but deprecated for letta_v1_agent onward.
|
|
827
952
|
|
|
828
953
|
background: Whether to process the request in the background.
|
|
829
954
|
|
|
@@ -841,7 +966,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
841
966
|
per step.
|
|
842
967
|
|
|
843
968
|
use_assistant_message: Whether the server should parse specific tool call arguments (default
|
|
844
|
-
`send_message`) as `AssistantMessage` objects.
|
|
969
|
+
`send_message`) as `AssistantMessage` objects. Still supported for legacy agent
|
|
970
|
+
types, but deprecated for letta_v1_agent onward.
|
|
845
971
|
|
|
846
972
|
extra_headers: Send extra headers
|
|
847
973
|
|
|
@@ -868,7 +994,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
868
994
|
"stream_tokens": stream_tokens,
|
|
869
995
|
"use_assistant_message": use_assistant_message,
|
|
870
996
|
},
|
|
871
|
-
|
|
997
|
+
message_stream_params.MessageStreamParams,
|
|
872
998
|
),
|
|
873
999
|
options=make_request_options(
|
|
874
1000
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -887,11 +1013,14 @@ class MessagesResourceWithRawResponse:
|
|
|
887
1013
|
self.list = to_raw_response_wrapper(
|
|
888
1014
|
messages.list,
|
|
889
1015
|
)
|
|
1016
|
+
self.reset = to_raw_response_wrapper(
|
|
1017
|
+
messages.reset,
|
|
1018
|
+
)
|
|
890
1019
|
self.send = to_raw_response_wrapper(
|
|
891
1020
|
messages.send,
|
|
892
1021
|
)
|
|
893
|
-
self.
|
|
894
|
-
messages.
|
|
1022
|
+
self.stream = to_raw_response_wrapper(
|
|
1023
|
+
messages.stream,
|
|
895
1024
|
)
|
|
896
1025
|
|
|
897
1026
|
|
|
@@ -905,11 +1034,14 @@ class AsyncMessagesResourceWithRawResponse:
|
|
|
905
1034
|
self.list = async_to_raw_response_wrapper(
|
|
906
1035
|
messages.list,
|
|
907
1036
|
)
|
|
1037
|
+
self.reset = async_to_raw_response_wrapper(
|
|
1038
|
+
messages.reset,
|
|
1039
|
+
)
|
|
908
1040
|
self.send = async_to_raw_response_wrapper(
|
|
909
1041
|
messages.send,
|
|
910
1042
|
)
|
|
911
|
-
self.
|
|
912
|
-
messages.
|
|
1043
|
+
self.stream = async_to_raw_response_wrapper(
|
|
1044
|
+
messages.stream,
|
|
913
1045
|
)
|
|
914
1046
|
|
|
915
1047
|
|
|
@@ -923,11 +1055,14 @@ class MessagesResourceWithStreamingResponse:
|
|
|
923
1055
|
self.list = to_streamed_response_wrapper(
|
|
924
1056
|
messages.list,
|
|
925
1057
|
)
|
|
1058
|
+
self.reset = to_streamed_response_wrapper(
|
|
1059
|
+
messages.reset,
|
|
1060
|
+
)
|
|
926
1061
|
self.send = to_streamed_response_wrapper(
|
|
927
1062
|
messages.send,
|
|
928
1063
|
)
|
|
929
|
-
self.
|
|
930
|
-
messages.
|
|
1064
|
+
self.stream = to_streamed_response_wrapper(
|
|
1065
|
+
messages.stream,
|
|
931
1066
|
)
|
|
932
1067
|
|
|
933
1068
|
|
|
@@ -941,9 +1076,12 @@ class AsyncMessagesResourceWithStreamingResponse:
|
|
|
941
1076
|
self.list = async_to_streamed_response_wrapper(
|
|
942
1077
|
messages.list,
|
|
943
1078
|
)
|
|
1079
|
+
self.reset = async_to_streamed_response_wrapper(
|
|
1080
|
+
messages.reset,
|
|
1081
|
+
)
|
|
944
1082
|
self.send = async_to_streamed_response_wrapper(
|
|
945
1083
|
messages.send,
|
|
946
1084
|
)
|
|
947
|
-
self.
|
|
948
|
-
messages.
|
|
1085
|
+
self.stream = async_to_streamed_response_wrapper(
|
|
1086
|
+
messages.stream,
|
|
949
1087
|
)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .agents import (
|
|
4
|
+
AgentsResource,
|
|
5
|
+
AsyncAgentsResource,
|
|
6
|
+
AgentsResourceWithRawResponse,
|
|
7
|
+
AsyncAgentsResourceWithRawResponse,
|
|
8
|
+
AgentsResourceWithStreamingResponse,
|
|
9
|
+
AsyncAgentsResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .blocks import (
|
|
12
|
+
BlocksResource,
|
|
13
|
+
AsyncBlocksResource,
|
|
14
|
+
BlocksResourceWithRawResponse,
|
|
15
|
+
AsyncBlocksResourceWithRawResponse,
|
|
16
|
+
BlocksResourceWithStreamingResponse,
|
|
17
|
+
AsyncBlocksResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
from .identities import (
|
|
20
|
+
IdentitiesResource,
|
|
21
|
+
AsyncIdentitiesResource,
|
|
22
|
+
IdentitiesResourceWithRawResponse,
|
|
23
|
+
AsyncIdentitiesResourceWithRawResponse,
|
|
24
|
+
IdentitiesResourceWithStreamingResponse,
|
|
25
|
+
AsyncIdentitiesResourceWithStreamingResponse,
|
|
26
|
+
)
|
|
27
|
+
from .properties import (
|
|
28
|
+
PropertiesResource,
|
|
29
|
+
AsyncPropertiesResource,
|
|
30
|
+
PropertiesResourceWithRawResponse,
|
|
31
|
+
AsyncPropertiesResourceWithRawResponse,
|
|
32
|
+
PropertiesResourceWithStreamingResponse,
|
|
33
|
+
AsyncPropertiesResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
__all__ = [
|
|
37
|
+
"PropertiesResource",
|
|
38
|
+
"AsyncPropertiesResource",
|
|
39
|
+
"PropertiesResourceWithRawResponse",
|
|
40
|
+
"AsyncPropertiesResourceWithRawResponse",
|
|
41
|
+
"PropertiesResourceWithStreamingResponse",
|
|
42
|
+
"AsyncPropertiesResourceWithStreamingResponse",
|
|
43
|
+
"AgentsResource",
|
|
44
|
+
"AsyncAgentsResource",
|
|
45
|
+
"AgentsResourceWithRawResponse",
|
|
46
|
+
"AsyncAgentsResourceWithRawResponse",
|
|
47
|
+
"AgentsResourceWithStreamingResponse",
|
|
48
|
+
"AsyncAgentsResourceWithStreamingResponse",
|
|
49
|
+
"BlocksResource",
|
|
50
|
+
"AsyncBlocksResource",
|
|
51
|
+
"BlocksResourceWithRawResponse",
|
|
52
|
+
"AsyncBlocksResourceWithRawResponse",
|
|
53
|
+
"BlocksResourceWithStreamingResponse",
|
|
54
|
+
"AsyncBlocksResourceWithStreamingResponse",
|
|
55
|
+
"IdentitiesResource",
|
|
56
|
+
"AsyncIdentitiesResource",
|
|
57
|
+
"IdentitiesResourceWithRawResponse",
|
|
58
|
+
"AsyncIdentitiesResourceWithRawResponse",
|
|
59
|
+
"IdentitiesResourceWithStreamingResponse",
|
|
60
|
+
"AsyncIdentitiesResourceWithStreamingResponse",
|
|
61
|
+
]
|