letta-client 1.0.0a6__py3-none-any.whl → 1.0.0a8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of letta-client might be problematic. Click here for more details.
- {letta_sdk → letta_client}/__init__.py +8 -8
- {letta_sdk → letta_client}/_base_client.py +1 -1
- {letta_sdk → letta_client}/_client.py +124 -171
- {letta_sdk → letta_client}/_exceptions.py +2 -2
- {letta_sdk → letta_client}/_resource.py +5 -5
- {letta_sdk → letta_client}/_response.py +8 -6
- {letta_sdk → letta_client}/_streaming.py +3 -3
- {letta_sdk → letta_client}/_types.py +1 -1
- {letta_sdk → letta_client}/_utils/_logs.py +3 -3
- {letta_sdk → letta_client}/_utils/_resources_proxy.py +4 -4
- {letta_sdk → letta_client}/_version.py +2 -2
- letta_client/pagination.py +107 -0
- {letta_sdk → letta_client}/resources/__init__.py +14 -154
- {letta_sdk → letta_client}/resources/agents/__init__.py +28 -42
- {letta_sdk → letta_client}/resources/agents/agents.py +228 -744
- {letta_sdk/resources/agents/core_memory → letta_client/resources/agents}/blocks.py +112 -19
- {letta_sdk → letta_client}/resources/agents/files.py +71 -8
- {letta_sdk → letta_client}/resources/agents/folders.py +101 -11
- letta_client/resources/agents/groups.py +245 -0
- {letta_sdk → letta_client}/resources/agents/messages.py +265 -490
- {letta_sdk → letta_client}/resources/agents/tools.py +147 -31
- letta_sdk/resources/jobs.py → letta_client/resources/archives.py +268 -280
- {letta_sdk/resources/messages → letta_client/resources/batches}/batches.py +46 -161
- letta_client/resources/batches/messages.py +238 -0
- {letta_sdk/resources/agents/core_memory → letta_client/resources/blocks}/__init__.py +14 -14
- letta_client/resources/blocks/agents.py +287 -0
- {letta_sdk/resources → letta_client/resources/blocks}/blocks.py +64 -175
- letta_client/resources/folders/__init__.py +47 -0
- letta_client/resources/folders/agents.py +237 -0
- letta_client/resources/folders/files.py +472 -0
- letta_sdk/resources/providers.py → letta_client/resources/folders/folders.py +298 -313
- {letta_sdk → letta_client}/resources/groups/groups.py +24 -88
- {letta_sdk → letta_client}/resources/groups/messages.py +178 -37
- letta_client/resources/identities/__init__.py +61 -0
- letta_client/resources/identities/agents.py +269 -0
- letta_client/resources/identities/blocks.py +237 -0
- {letta_sdk/resources → letta_client/resources/identities}/identities.py +277 -533
- letta_client/resources/identities/properties.py +174 -0
- letta_client/resources/models/__init__.py +33 -0
- {letta_sdk/resources → letta_client/resources/models}/embeddings.py +26 -49
- {letta_sdk/resources → letta_client/resources/models}/models.py +42 -117
- letta_client/resources/runs/__init__.py +61 -0
- letta_sdk/resources/archives.py → letta_client/resources/runs/messages.py +189 -157
- letta_client/resources/runs/runs.py +462 -0
- letta_client/resources/runs/steps.py +229 -0
- letta_sdk/resources/voice_beta/chat.py → letta_client/resources/runs/usage.py +50 -57
- letta_client/resources/steps/__init__.py +75 -0
- letta_client/resources/steps/feedback.py +198 -0
- letta_client/resources/steps/messages.py +237 -0
- letta_client/resources/steps/metrics.py +167 -0
- letta_client/resources/steps/steps.py +513 -0
- letta_sdk/resources/telemetry.py → letta_client/resources/steps/trace.py +45 -56
- {letta_sdk → letta_client}/resources/tags.py +13 -10
- letta_client/resources/templates/__init__.py +33 -0
- letta_client/resources/templates/agents.py +236 -0
- letta_client/resources/templates/templates.py +102 -0
- {letta_sdk/resources/tools → letta_client/resources}/tools.py +249 -433
- letta_client/types/__init__.py +111 -0
- {letta_sdk → letta_client}/types/agent_create_params.py +5 -2
- {letta_sdk → letta_client}/types/agent_environment_variable.py +3 -0
- letta_client/types/agent_export_file_params.py +18 -0
- letta_sdk/types/agent_export_response.py → letta_client/types/agent_export_file_response.py +2 -2
- letta_sdk/types/agent_import_params.py → letta_client/types/agent_import_file_params.py +5 -2
- letta_sdk/types/agent_import_response.py → letta_client/types/agent_import_file_response.py +2 -2
- {letta_sdk → letta_client}/types/agent_list_params.py +19 -2
- {letta_sdk → letta_client}/types/agent_retrieve_params.py +20 -3
- {letta_sdk → letta_client}/types/agent_state.py +131 -3
- {letta_sdk → letta_client}/types/agent_type.py +1 -0
- {letta_sdk → letta_client}/types/agent_update_params.py +12 -0
- {letta_sdk → letta_client}/types/agents/__init__.py +10 -21
- letta_client/types/agents/approval_create_param.py +44 -0
- {letta_sdk → letta_client}/types/agents/approval_request_message.py +10 -2
- letta_client/types/agents/approval_response_message.py +63 -0
- {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block.py +1 -1
- letta_sdk/types/identity_list_blocks_params.py → letta_client/types/agents/block_list_params.py +2 -2
- {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block_update_params.py +1 -0
- letta_client/types/agents/file_list_params.py +40 -0
- letta_client/types/agents/folder_list_params.py +34 -0
- letta_sdk/types/source.py → letta_client/types/agents/folder_list_response.py +5 -5
- letta_client/types/agents/group_list_params.py +37 -0
- {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union.py +3 -0
- {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/letta_response.py +0 -4
- {letta_sdk → letta_client}/types/agents/message.py +93 -2
- {letta_sdk → letta_client}/types/agents/message_list_params.py +20 -5
- letta_sdk/types/agent_reset_messages_params.py → letta_client/types/agents/message_reset_params.py +2 -2
- {letta_sdk → letta_client}/types/agents/message_send_async_params.py +12 -3
- {letta_sdk → letta_client}/types/agents/message_send_params.py +12 -3
- letta_sdk/types/agents/message_send_stream_params.py → letta_client/types/agents/message_stream_params.py +14 -5
- {letta_sdk → letta_client}/types/agents/message_update_params.py +4 -0
- {letta_sdk → letta_client}/types/agents/omitted_reasoning_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/omitted_reasoning_content_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/run.py +16 -19
- {letta_sdk → letta_client}/types/agents/text_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/text_content_param.py +4 -0
- {letta_sdk → letta_client}/types/agents/tool_call_content.py +3 -0
- {letta_sdk → letta_client}/types/agents/tool_call_content_param.py +4 -1
- {letta_sdk → letta_client}/types/agents/tool_call_message.py +6 -2
- letta_client/types/agents/tool_list_params.py +34 -0
- {letta_sdk → letta_client}/types/agents/tool_return.py +7 -3
- letta_client/types/agents/tool_return_param.py +25 -0
- letta_client/types/agents/tool_update_approval_params.py +21 -0
- {letta_sdk → letta_client}/types/archive.py +4 -0
- letta_client/types/archive_create_params.py +19 -0
- letta_sdk/types/archive_retrieve_params.py → letta_client/types/archive_list_params.py +2 -2
- letta_sdk/types/archive_retrieve_response.py → letta_client/types/archive_list_response.py +2 -2
- {letta_sdk → letta_client}/types/archive_update_params.py +3 -3
- {letta_sdk/types/messages → letta_client/types}/batch_create_params.py +15 -6
- letta_sdk/types/job.py → letta_client/types/batch_job.py +8 -3
- letta_client/types/batches/__init__.py +6 -0
- letta_sdk/types/messages/batch_list_messages_params.py → letta_client/types/batches/message_list_params.py +2 -2
- letta_sdk/types/messages/batch_list_messages_response.py → letta_client/types/batches/message_list_response.py +2 -2
- {letta_sdk/types/tools → letta_client/types/blocks}/__init__.py +2 -0
- letta_sdk/types/block_list_agents_params.py → letta_client/types/blocks/agent_list_params.py +22 -5
- letta_client/types/child_tool_rule.py +40 -0
- letta_client/types/child_tool_rule_param.py +42 -0
- letta_client/types/folders/__init__.py +10 -0
- letta_sdk/types/folder_list_agents_params.py → letta_client/types/folders/agent_list_params.py +2 -2
- letta_client/types/folders/agent_list_response.py +7 -0
- letta_sdk/types/folder_list_files_params.py → letta_client/types/folders/file_list_params.py +2 -2
- letta_sdk/types/file_metadata.py → letta_client/types/folders/file_list_response.py +5 -5
- letta_sdk/types/source_upload_file_params.py → letta_client/types/folders/file_upload_params.py +5 -6
- letta_client/types/folders/file_upload_response.py +65 -0
- {letta_sdk → letta_client}/types/groups/__init__.py +1 -2
- {letta_sdk → letta_client}/types/groups/message_send_params.py +12 -3
- letta_sdk/types/groups/message_send_stream_params.py → letta_client/types/groups/message_stream_params.py +14 -5
- {letta_sdk → letta_client}/types/groups/message_update_params.py +4 -0
- letta_sdk/types/health_check_response.py → letta_client/types/health_response.py +2 -2
- letta_client/types/identities/__init__.py +7 -0
- letta_sdk/types/identity_list_agents_params.py → letta_client/types/identities/agent_list_params.py +19 -3
- letta_client/types/identities/block_list_params.py +34 -0
- letta_sdk/types/identity_upsert_properties_params.py → letta_client/types/identities/property_upsert_params.py +3 -3
- letta_sdk/types/identity_modify_params.py → letta_client/types/identity_update_params.py +2 -2
- {letta_sdk → letta_client}/types/init_tool_rule.py +10 -1
- {letta_sdk → letta_client}/types/init_tool_rule_param.py +10 -1
- {letta_sdk → letta_client}/types/llm_config.py +6 -0
- {letta_sdk → letta_client}/types/llm_config_param.py +6 -0
- {letta_sdk/types/voice_beta → letta_client/types/models}/__init__.py +1 -1
- letta_sdk/types/agents/archival_memory_create_response.py → letta_client/types/models/embedding_list_response.py +3 -3
- {letta_sdk → letta_client}/types/run_list_params.py +29 -5
- letta_client/types/runs/__init__.py +8 -0
- letta_sdk/types/run_list_messages_params.py → letta_client/types/runs/message_list_params.py +5 -2
- letta_sdk/types/run_retrieve_stream_params.py → letta_client/types/runs/message_stream_params.py +2 -2
- letta_sdk/types/run_list_steps_params.py → letta_client/types/runs/step_list_params.py +9 -6
- letta_sdk/types/run_retrieve_usage_response.py → letta_client/types/runs/usage_retrieve_response.py +3 -3
- {letta_sdk → letta_client}/types/step.py +6 -6
- letta_client/types/steps/__init__.py +8 -0
- letta_sdk/types/step_update_feedback_params.py → letta_client/types/steps/feedback_create_params.py +3 -3
- letta_sdk/types/step_list_messages_params.py → letta_client/types/steps/message_list_params.py +2 -2
- letta_client/types/steps/message_list_response.py +32 -0
- letta_sdk/types/step_retrieve_metrics_response.py → letta_client/types/steps/metric_retrieve_response.py +6 -6
- {letta_sdk → letta_client}/types/tag_list_response.py +1 -2
- letta_client/types/templates/__init__.py +5 -0
- letta_sdk/types/template_create_agents_params.py → letta_client/types/templates/agent_create_params.py +4 -4
- {letta_sdk → letta_client}/types/tool.py +6 -0
- {letta_sdk → letta_client}/types/tool_create_params.py +6 -0
- {letta_sdk → letta_client}/types/tool_return_message.py +3 -0
- letta_sdk/types/tool_modify_params.py → letta_client/types/tool_update_params.py +8 -2
- letta_sdk/types/tool_list_response.py → letta_client/types/tool_upsert_base_tools_response.py +2 -2
- {letta_sdk → letta_client}/types/tool_upsert_params.py +6 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a8.dist-info}/METADATA +110 -70
- letta_client-1.0.0a8.dist-info/RECORD +289 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a8.dist-info}/licenses/LICENSE +1 -1
- letta_client-1.0.0a6.dist-info/RECORD +0 -420
- letta_sdk/resources/_internal_templates/__init__.py +0 -33
- letta_sdk/resources/_internal_templates/_internal_templates.py +0 -961
- letta_sdk/resources/_internal_templates/deployment.py +0 -268
- letta_sdk/resources/agents/archival_memory.py +0 -581
- letta_sdk/resources/agents/core_memory/core_memory.py +0 -278
- letta_sdk/resources/agents/sources.py +0 -332
- letta_sdk/resources/client_side_access_tokens.py +0 -402
- letta_sdk/resources/folders.py +0 -1562
- letta_sdk/resources/health.py +0 -135
- letta_sdk/resources/messages/messages.py +0 -102
- letta_sdk/resources/projects.py +0 -189
- letta_sdk/resources/runs.py +0 -1016
- letta_sdk/resources/sources/__init__.py +0 -33
- letta_sdk/resources/sources/files.py +0 -341
- letta_sdk/resources/sources/sources.py +0 -1371
- letta_sdk/resources/steps.py +0 -784
- letta_sdk/resources/templates.py +0 -1310
- letta_sdk/resources/tools/__init__.py +0 -47
- letta_sdk/resources/tools/composio/__init__.py +0 -33
- letta_sdk/resources/tools/composio/apps.py +0 -214
- letta_sdk/resources/tools/composio/composio.py +0 -201
- letta_sdk/resources/tools/mcp/__init__.py +0 -47
- letta_sdk/resources/tools/mcp/mcp.py +0 -134
- letta_sdk/resources/tools/mcp/oauth.py +0 -214
- letta_sdk/resources/tools/mcp/servers/__init__.py +0 -33
- letta_sdk/resources/tools/mcp/servers/servers.py +0 -1785
- letta_sdk/resources/tools/mcp/servers/tools.py +0 -263
- letta_sdk/resources/voice_beta/__init__.py +0 -33
- letta_sdk/resources/voice_beta/voice_beta.py +0 -102
- letta_sdk/types/__init__.py +0 -226
- letta_sdk/types/_internal_templates/__init__.py +0 -7
- letta_sdk/types/_internal_templates/deployment_delete_response.py +0 -17
- letta_sdk/types/_internal_templates/deployment_list_entities_params.py +0 -15
- letta_sdk/types/_internal_templates/deployment_list_entities_response.py +0 -31
- letta_sdk/types/agent_export_params.py +0 -17
- letta_sdk/types/agent_list_groups_params.py +0 -13
- letta_sdk/types/agent_list_groups_response.py +0 -10
- letta_sdk/types/agent_list_response.py +0 -10
- letta_sdk/types/agent_migrate_params.py +0 -19
- letta_sdk/types/agent_migrate_response.py +0 -11
- letta_sdk/types/agent_retrieve_context_response.py +0 -110
- letta_sdk/types/agent_search_params.py +0 -78
- letta_sdk/types/agent_search_response.py +0 -16
- letta_sdk/types/agent_summarize_params.py +0 -12
- letta_sdk/types/agents/approval_create_param.py +0 -22
- letta_sdk/types/agents/approval_response_message.py +0 -41
- letta_sdk/types/agents/archival_memory_create_params.py +0 -23
- letta_sdk/types/agents/archival_memory_list_params.py +0 -28
- letta_sdk/types/agents/archival_memory_list_response.py +0 -10
- letta_sdk/types/agents/archival_memory_search_params.py +0 -35
- letta_sdk/types/agents/archival_memory_search_response.py +0 -26
- letta_sdk/types/agents/core_memory/__init__.py +0 -7
- letta_sdk/types/agents/core_memory/block_list_response.py +0 -10
- letta_sdk/types/agents/core_memory_retrieve_variables_response.py +0 -11
- letta_sdk/types/agents/file_list_params.py +0 -19
- letta_sdk/types/agents/folder_list_response.py +0 -10
- letta_sdk/types/agents/letta_request_param.py +0 -45
- letta_sdk/types/agents/letta_streaming_request_param.py +0 -60
- letta_sdk/types/agents/memory.py +0 -92
- letta_sdk/types/agents/message_list_response.py +0 -10
- letta_sdk/types/agents/message_preview_raw_payload_params.py +0 -103
- letta_sdk/types/agents/message_preview_raw_payload_response.py +0 -8
- letta_sdk/types/agents/message_search_params.py +0 -38
- letta_sdk/types/agents/message_search_response.py +0 -29
- letta_sdk/types/agents/source_list_response.py +0 -10
- letta_sdk/types/agents/tool_list_response.py +0 -10
- letta_sdk/types/agents/tool_modify_approval_params.py +0 -13
- letta_sdk/types/block_list_agents_response.py +0 -10
- letta_sdk/types/block_list_response.py +0 -10
- letta_sdk/types/child_tool_rule.py +0 -21
- letta_sdk/types/child_tool_rule_param.py +0 -23
- letta_sdk/types/client_side_access_token_create_params.py +0 -32
- letta_sdk/types/client_side_access_token_create_response.py +0 -34
- letta_sdk/types/client_side_access_token_delete_params.py +0 -11
- letta_sdk/types/client_side_access_token_list_params.py +0 -23
- letta_sdk/types/client_side_access_token_list_response.py +0 -40
- letta_sdk/types/duplicate_file_handling.py +0 -7
- letta_sdk/types/embedding_get_total_storage_size_response.py +0 -7
- letta_sdk/types/file_processing_status.py +0 -7
- letta_sdk/types/folder_get_by_name_response.py +0 -7
- letta_sdk/types/folder_list_agents_response.py +0 -8
- letta_sdk/types/folder_list_files_response.py +0 -10
- letta_sdk/types/folder_list_passages_params.py +0 -34
- letta_sdk/types/folder_list_passages_response.py +0 -10
- letta_sdk/types/folder_list_response.py +0 -10
- letta_sdk/types/folder_retrieve_metadata_params.py +0 -11
- letta_sdk/types/folder_upload_file_params.py +0 -21
- letta_sdk/types/group_list_response.py +0 -10
- letta_sdk/types/groups/message_list_response.py +0 -10
- letta_sdk/types/identity_list_agents_response.py +0 -10
- letta_sdk/types/identity_list_blocks_response.py +0 -10
- letta_sdk/types/identity_list_response.py +0 -10
- letta_sdk/types/internal_template_create_agent_params.py +0 -217
- letta_sdk/types/internal_template_create_block_params.py +0 -54
- letta_sdk/types/internal_template_create_group_params.py +0 -49
- letta_sdk/types/job_list_active_params.py +0 -28
- letta_sdk/types/job_list_active_response.py +0 -10
- letta_sdk/types/job_list_params.py +0 -31
- letta_sdk/types/job_list_response.py +0 -10
- letta_sdk/types/messages/__init__.py +0 -10
- letta_sdk/types/messages/batch_job.py +0 -60
- letta_sdk/types/messages/batch_list_response.py +0 -10
- letta_sdk/types/model_list_embedding_response.py +0 -10
- letta_sdk/types/organization_sources_stats.py +0 -49
- letta_sdk/types/passage.py +0 -56
- letta_sdk/types/project_list_params.py +0 -16
- letta_sdk/types/project_list_response.py +0 -23
- letta_sdk/types/provider.py +0 -42
- letta_sdk/types/provider_check_params.py +0 -30
- letta_sdk/types/provider_create_params.py +0 -33
- letta_sdk/types/provider_list_params.py +0 -42
- letta_sdk/types/provider_list_response.py +0 -10
- letta_sdk/types/provider_update_params.py +0 -25
- letta_sdk/types/run_list_active_params.py +0 -18
- letta_sdk/types/run_list_active_response.py +0 -10
- letta_sdk/types/run_list_messages_response.py +0 -10
- letta_sdk/types/run_list_response.py +0 -10
- letta_sdk/types/run_list_steps_response.py +0 -10
- letta_sdk/types/source_count_response.py +0 -7
- letta_sdk/types/source_create_params.py +0 -33
- letta_sdk/types/source_get_agents_response.py +0 -8
- letta_sdk/types/source_get_by_name_response.py +0 -7
- letta_sdk/types/source_get_metadata_params.py +0 -11
- letta_sdk/types/source_list_passages_params.py +0 -19
- letta_sdk/types/source_list_passages_response.py +0 -10
- letta_sdk/types/source_list_response.py +0 -10
- letta_sdk/types/source_update_params.py +0 -27
- letta_sdk/types/sources/__init__.py +0 -7
- letta_sdk/types/sources/file_list_params.py +0 -26
- letta_sdk/types/sources/file_list_response.py +0 -10
- letta_sdk/types/sources/file_retrieve_params.py +0 -14
- letta_sdk/types/step_list_messages_response.py +0 -34
- letta_sdk/types/step_list_response.py +0 -10
- letta_sdk/types/template_create_agents_response.py +0 -12
- letta_sdk/types/template_create_params.py +0 -40
- letta_sdk/types/template_create_response.py +0 -29
- letta_sdk/types/template_delete_response.py +0 -9
- letta_sdk/types/template_fork_params.py +0 -17
- letta_sdk/types/template_fork_response.py +0 -29
- letta_sdk/types/template_get_snapshot_response.py +0 -258
- letta_sdk/types/template_list_params.py +0 -34
- letta_sdk/types/template_list_response.py +0 -35
- letta_sdk/types/template_list_versions_params.py +0 -16
- letta_sdk/types/template_list_versions_response.py +0 -29
- letta_sdk/types/template_rename_params.py +0 -14
- letta_sdk/types/template_rename_response.py +0 -9
- letta_sdk/types/template_save_version_params.py +0 -32
- letta_sdk/types/template_save_version_response.py +0 -29
- letta_sdk/types/template_update_description_params.py +0 -14
- letta_sdk/types/template_update_description_response.py +0 -9
- letta_sdk/types/tool_run_params.py +0 -43
- letta_sdk/types/tool_upsert_base_response.py +0 -10
- letta_sdk/types/tools/composio/__init__.py +0 -6
- letta_sdk/types/tools/composio/app_list_actions_response.py +0 -70
- letta_sdk/types/tools/composio/app_list_response.py +0 -103
- letta_sdk/types/tools/mcp/__init__.py +0 -21
- letta_sdk/types/tools/mcp/mcp_server_type.py +0 -7
- letta_sdk/types/tools/mcp/oauth_callback_params.py +0 -22
- letta_sdk/types/tools/mcp/server_add_params.py +0 -68
- letta_sdk/types/tools/mcp/server_add_response.py +0 -14
- letta_sdk/types/tools/mcp/server_connect_params.py +0 -68
- letta_sdk/types/tools/mcp/server_delete_response.py +0 -14
- letta_sdk/types/tools/mcp/server_list_response.py +0 -14
- letta_sdk/types/tools/mcp/server_resync_params.py +0 -12
- letta_sdk/types/tools/mcp/server_test_params.py +0 -68
- letta_sdk/types/tools/mcp/server_update_params.py +0 -43
- letta_sdk/types/tools/mcp/server_update_response.py +0 -12
- letta_sdk/types/tools/mcp/servers/__init__.py +0 -6
- letta_sdk/types/tools/mcp/servers/tool_execute_params.py +0 -15
- letta_sdk/types/tools/mcp/servers/tool_list_response.py +0 -85
- letta_sdk/types/tools/mcp/sse_server_config.py +0 -27
- letta_sdk/types/tools/mcp/sse_server_config_param.py +0 -29
- letta_sdk/types/tools/mcp/stdio_server_config.py +0 -24
- letta_sdk/types/tools/mcp/stdio_server_config_param.py +0 -27
- letta_sdk/types/tools/mcp/streamable_http_server_config.py +0 -27
- letta_sdk/types/tools/mcp/streamable_http_server_config_param.py +0 -29
- letta_sdk/types/voice_beta/chat_create_completion_params.py +0 -12
- {letta_sdk → letta_client}/_compat.py +0 -0
- {letta_sdk → letta_client}/_constants.py +0 -0
- {letta_sdk → letta_client}/_files.py +0 -0
- {letta_sdk → letta_client}/_models.py +0 -0
- {letta_sdk → letta_client}/_qs.py +0 -0
- {letta_sdk → letta_client}/_utils/__init__.py +0 -0
- {letta_sdk → letta_client}/_utils/_compat.py +0 -0
- {letta_sdk → letta_client}/_utils/_datetime_parse.py +0 -0
- {letta_sdk → letta_client}/_utils/_proxy.py +0 -0
- {letta_sdk → letta_client}/_utils/_reflection.py +0 -0
- {letta_sdk → letta_client}/_utils/_streams.py +0 -0
- {letta_sdk → letta_client}/_utils/_sync.py +0 -0
- {letta_sdk → letta_client}/_utils/_transform.py +0 -0
- {letta_sdk → letta_client}/_utils/_typing.py +0 -0
- {letta_sdk → letta_client}/_utils/_utils.py +0 -0
- {letta_sdk → letta_client}/lib/.keep +0 -0
- {letta_sdk → letta_client}/py.typed +0 -0
- {letta_sdk/resources/messages → letta_client/resources/batches}/__init__.py +6 -6
- {letta_sdk → letta_client}/resources/groups/__init__.py +0 -0
- {letta_sdk → letta_client}/types/agent_count_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/assistant_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_close_all_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_list_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/file_open_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/hidden_reasoning_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/image_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/image_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/job_status.py +0 -0
- {letta_sdk → letta_client}/types/agents/job_type.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_message_union.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_user_message_content_union.py +0 -0
- {letta_sdk → letta_client}/types/agents/letta_user_message_content_union_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_cancel_params.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_cancel_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_role.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_type.py +0 -0
- {letta_sdk → letta_client}/types/agents/message_update_response.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/reasoning_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/redacted_reasoning_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/redacted_reasoning_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/system_message.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_call.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_call_delta.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_return_content.py +0 -0
- {letta_sdk → letta_client}/types/agents/tool_return_content_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_assistant_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_reasoning_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_system_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/update_user_message_param.py +0 -0
- {letta_sdk → letta_client}/types/agents/user_message.py +0 -0
- {letta_sdk/types/messages → letta_client/types}/batch_list_params.py +0 -0
- {letta_sdk → letta_client}/types/block_count_response.py +0 -0
- {letta_sdk → letta_client}/types/block_create_params.py +0 -0
- {letta_sdk → letta_client}/types/block_list_params.py +0 -0
- {letta_sdk → letta_client}/types/block_update_params.py +0 -0
- {letta_sdk → letta_client}/types/conditional_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/conditional_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/continue_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/continue_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/create_block_param.py +0 -0
- {letta_sdk → letta_client}/types/dynamic_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/embedding_config.py +0 -0
- {letta_sdk → letta_client}/types/embedding_config_param.py +0 -0
- {letta_sdk → letta_client}/types/folder.py +0 -0
- {letta_sdk → letta_client}/types/folder_count_response.py +0 -0
- {letta_sdk → letta_client}/types/folder_create_params.py +0 -0
- {letta_sdk → letta_client}/types/folder_list_params.py +0 -0
- {letta_sdk → letta_client}/types/folder_update_params.py +0 -0
- {letta_sdk → letta_client}/types/group.py +0 -0
- {letta_sdk → letta_client}/types/group_count_response.py +0 -0
- {letta_sdk → letta_client}/types/group_create_params.py +0 -0
- {letta_sdk → letta_client}/types/group_list_params.py +0 -0
- {letta_sdk → letta_client}/types/group_update_params.py +0 -0
- {letta_sdk → letta_client}/types/groups/message_list_params.py +0 -0
- {letta_sdk → letta_client}/types/groups/message_update_response.py +0 -0
- {letta_sdk → letta_client}/types/identity.py +0 -0
- {letta_sdk → letta_client}/types/identity_count_response.py +0 -0
- {letta_sdk → letta_client}/types/identity_create_params.py +0 -0
- {letta_sdk → letta_client}/types/identity_list_params.py +0 -0
- {letta_sdk → letta_client}/types/identity_property.py +0 -0
- {letta_sdk → letta_client}/types/identity_property_param.py +0 -0
- {letta_sdk → letta_client}/types/identity_type.py +0 -0
- {letta_sdk → letta_client}/types/identity_upsert_params.py +0 -0
- {letta_sdk → letta_client}/types/json_object_response_format.py +0 -0
- {letta_sdk → letta_client}/types/json_object_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/json_schema_response_format.py +0 -0
- {letta_sdk → letta_client}/types/json_schema_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/letta_message_content_union_param.py +0 -0
- {letta_sdk → letta_client}/types/manager_type.py +0 -0
- {letta_sdk → letta_client}/types/max_count_per_step_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/max_count_per_step_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/message_create_param.py +0 -0
- {letta_sdk → letta_client}/types/model_list_params.py +0 -0
- {letta_sdk → letta_client}/types/model_list_response.py +0 -0
- {letta_sdk → letta_client}/types/npm_requirement.py +0 -0
- {letta_sdk → letta_client}/types/npm_requirement_param.py +0 -0
- {letta_sdk → letta_client}/types/parent_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/parent_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/pip_requirement.py +0 -0
- {letta_sdk → letta_client}/types/pip_requirement_param.py +0 -0
- {letta_sdk → letta_client}/types/provider_category.py +0 -0
- {letta_sdk → letta_client}/types/provider_trace.py +0 -0
- {letta_sdk → letta_client}/types/provider_type.py +0 -0
- {letta_sdk → letta_client}/types/required_before_exit_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/required_before_exit_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/requires_approval_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/requires_approval_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/round_robin_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/sleeptime_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/step_list_params.py +0 -0
- {letta_sdk → letta_client}/types/stop_reason_type.py +0 -0
- {letta_sdk → letta_client}/types/supervisor_manager_param.py +0 -0
- {letta_sdk → letta_client}/types/tag_list_params.py +0 -0
- {letta_sdk → letta_client}/types/terminal_tool_rule.py +0 -0
- {letta_sdk → letta_client}/types/terminal_tool_rule_param.py +0 -0
- {letta_sdk → letta_client}/types/text_response_format.py +0 -0
- {letta_sdk → letta_client}/types/text_response_format_param.py +0 -0
- {letta_sdk → letta_client}/types/tool_count_params.py +0 -0
- {letta_sdk → letta_client}/types/tool_count_response.py +0 -0
- {letta_sdk → letta_client}/types/tool_list_params.py +0 -0
- {letta_sdk → letta_client}/types/tool_type.py +1 -1
- {letta_sdk → letta_client}/types/vector_db_provider.py +0 -0
- {letta_sdk → letta_client}/types/voice_sleeptime_manager_param.py +0 -0
- {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a8.dist-info}/WHEEL +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .mcp import (
|
|
4
|
-
McpResource,
|
|
5
|
-
AsyncMcpResource,
|
|
6
|
-
McpResourceWithRawResponse,
|
|
7
|
-
AsyncMcpResourceWithRawResponse,
|
|
8
|
-
McpResourceWithStreamingResponse,
|
|
9
|
-
AsyncMcpResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .tools import (
|
|
12
|
-
ToolsResource,
|
|
13
|
-
AsyncToolsResource,
|
|
14
|
-
ToolsResourceWithRawResponse,
|
|
15
|
-
AsyncToolsResourceWithRawResponse,
|
|
16
|
-
ToolsResourceWithStreamingResponse,
|
|
17
|
-
AsyncToolsResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
from .composio import (
|
|
20
|
-
ComposioResource,
|
|
21
|
-
AsyncComposioResource,
|
|
22
|
-
ComposioResourceWithRawResponse,
|
|
23
|
-
AsyncComposioResourceWithRawResponse,
|
|
24
|
-
ComposioResourceWithStreamingResponse,
|
|
25
|
-
AsyncComposioResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
__all__ = [
|
|
29
|
-
"ComposioResource",
|
|
30
|
-
"AsyncComposioResource",
|
|
31
|
-
"ComposioResourceWithRawResponse",
|
|
32
|
-
"AsyncComposioResourceWithRawResponse",
|
|
33
|
-
"ComposioResourceWithStreamingResponse",
|
|
34
|
-
"AsyncComposioResourceWithStreamingResponse",
|
|
35
|
-
"McpResource",
|
|
36
|
-
"AsyncMcpResource",
|
|
37
|
-
"McpResourceWithRawResponse",
|
|
38
|
-
"AsyncMcpResourceWithRawResponse",
|
|
39
|
-
"McpResourceWithStreamingResponse",
|
|
40
|
-
"AsyncMcpResourceWithStreamingResponse",
|
|
41
|
-
"ToolsResource",
|
|
42
|
-
"AsyncToolsResource",
|
|
43
|
-
"ToolsResourceWithRawResponse",
|
|
44
|
-
"AsyncToolsResourceWithRawResponse",
|
|
45
|
-
"ToolsResourceWithStreamingResponse",
|
|
46
|
-
"AsyncToolsResourceWithStreamingResponse",
|
|
47
|
-
]
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .apps import (
|
|
4
|
-
AppsResource,
|
|
5
|
-
AsyncAppsResource,
|
|
6
|
-
AppsResourceWithRawResponse,
|
|
7
|
-
AsyncAppsResourceWithRawResponse,
|
|
8
|
-
AppsResourceWithStreamingResponse,
|
|
9
|
-
AsyncAppsResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .composio import (
|
|
12
|
-
ComposioResource,
|
|
13
|
-
AsyncComposioResource,
|
|
14
|
-
ComposioResourceWithRawResponse,
|
|
15
|
-
AsyncComposioResourceWithRawResponse,
|
|
16
|
-
ComposioResourceWithStreamingResponse,
|
|
17
|
-
AsyncComposioResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"AppsResource",
|
|
22
|
-
"AsyncAppsResource",
|
|
23
|
-
"AppsResourceWithRawResponse",
|
|
24
|
-
"AsyncAppsResourceWithRawResponse",
|
|
25
|
-
"AppsResourceWithStreamingResponse",
|
|
26
|
-
"AsyncAppsResourceWithStreamingResponse",
|
|
27
|
-
"ComposioResource",
|
|
28
|
-
"AsyncComposioResource",
|
|
29
|
-
"ComposioResourceWithRawResponse",
|
|
30
|
-
"AsyncComposioResourceWithRawResponse",
|
|
31
|
-
"ComposioResourceWithStreamingResponse",
|
|
32
|
-
"AsyncComposioResourceWithStreamingResponse",
|
|
33
|
-
]
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
8
|
-
from ...._compat import cached_property
|
|
9
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
10
|
-
from ...._response import (
|
|
11
|
-
to_raw_response_wrapper,
|
|
12
|
-
to_streamed_response_wrapper,
|
|
13
|
-
async_to_raw_response_wrapper,
|
|
14
|
-
async_to_streamed_response_wrapper,
|
|
15
|
-
)
|
|
16
|
-
from ...._base_client import make_request_options
|
|
17
|
-
from ....types.tools.composio.app_list_response import AppListResponse
|
|
18
|
-
from ....types.tools.composio.app_list_actions_response import AppListActionsResponse
|
|
19
|
-
|
|
20
|
-
__all__ = ["AppsResource", "AsyncAppsResource"]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class AppsResource(SyncAPIResource):
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> AppsResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return AppsResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> AppsResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return AppsResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
def list(
|
|
44
|
-
self,
|
|
45
|
-
*,
|
|
46
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
47
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
48
|
-
extra_headers: Headers | None = None,
|
|
49
|
-
extra_query: Query | None = None,
|
|
50
|
-
extra_body: Body | None = None,
|
|
51
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
52
|
-
) -> AppListResponse:
|
|
53
|
-
"""Get a list of all Composio apps"""
|
|
54
|
-
return self._get(
|
|
55
|
-
"/v1/tools/composio/apps",
|
|
56
|
-
options=make_request_options(
|
|
57
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
58
|
-
),
|
|
59
|
-
cast_to=AppListResponse,
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
def list_actions(
|
|
63
|
-
self,
|
|
64
|
-
composio_app_name: str,
|
|
65
|
-
*,
|
|
66
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
67
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
68
|
-
extra_headers: Headers | None = None,
|
|
69
|
-
extra_query: Query | None = None,
|
|
70
|
-
extra_body: Body | None = None,
|
|
71
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
72
|
-
) -> AppListActionsResponse:
|
|
73
|
-
"""
|
|
74
|
-
Get a list of all Composio actions for a specific app
|
|
75
|
-
|
|
76
|
-
Args:
|
|
77
|
-
extra_headers: Send extra headers
|
|
78
|
-
|
|
79
|
-
extra_query: Add additional query parameters to the request
|
|
80
|
-
|
|
81
|
-
extra_body: Add additional JSON properties to the request
|
|
82
|
-
|
|
83
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
84
|
-
"""
|
|
85
|
-
if not composio_app_name:
|
|
86
|
-
raise ValueError(f"Expected a non-empty value for `composio_app_name` but received {composio_app_name!r}")
|
|
87
|
-
return self._get(
|
|
88
|
-
f"/v1/tools/composio/apps/{composio_app_name}/actions",
|
|
89
|
-
options=make_request_options(
|
|
90
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
91
|
-
),
|
|
92
|
-
cast_to=AppListActionsResponse,
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncAppsResource(AsyncAPIResource):
|
|
97
|
-
@cached_property
|
|
98
|
-
def with_raw_response(self) -> AsyncAppsResourceWithRawResponse:
|
|
99
|
-
"""
|
|
100
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
101
|
-
the raw response object instead of the parsed content.
|
|
102
|
-
|
|
103
|
-
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
104
|
-
"""
|
|
105
|
-
return AsyncAppsResourceWithRawResponse(self)
|
|
106
|
-
|
|
107
|
-
@cached_property
|
|
108
|
-
def with_streaming_response(self) -> AsyncAppsResourceWithStreamingResponse:
|
|
109
|
-
"""
|
|
110
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
111
|
-
|
|
112
|
-
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
113
|
-
"""
|
|
114
|
-
return AsyncAppsResourceWithStreamingResponse(self)
|
|
115
|
-
|
|
116
|
-
async def list(
|
|
117
|
-
self,
|
|
118
|
-
*,
|
|
119
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
120
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
121
|
-
extra_headers: Headers | None = None,
|
|
122
|
-
extra_query: Query | None = None,
|
|
123
|
-
extra_body: Body | None = None,
|
|
124
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
125
|
-
) -> AppListResponse:
|
|
126
|
-
"""Get a list of all Composio apps"""
|
|
127
|
-
return await self._get(
|
|
128
|
-
"/v1/tools/composio/apps",
|
|
129
|
-
options=make_request_options(
|
|
130
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
131
|
-
),
|
|
132
|
-
cast_to=AppListResponse,
|
|
133
|
-
)
|
|
134
|
-
|
|
135
|
-
async def list_actions(
|
|
136
|
-
self,
|
|
137
|
-
composio_app_name: str,
|
|
138
|
-
*,
|
|
139
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
140
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
141
|
-
extra_headers: Headers | None = None,
|
|
142
|
-
extra_query: Query | None = None,
|
|
143
|
-
extra_body: Body | None = None,
|
|
144
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
145
|
-
) -> AppListActionsResponse:
|
|
146
|
-
"""
|
|
147
|
-
Get a list of all Composio actions for a specific app
|
|
148
|
-
|
|
149
|
-
Args:
|
|
150
|
-
extra_headers: Send extra headers
|
|
151
|
-
|
|
152
|
-
extra_query: Add additional query parameters to the request
|
|
153
|
-
|
|
154
|
-
extra_body: Add additional JSON properties to the request
|
|
155
|
-
|
|
156
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
157
|
-
"""
|
|
158
|
-
if not composio_app_name:
|
|
159
|
-
raise ValueError(f"Expected a non-empty value for `composio_app_name` but received {composio_app_name!r}")
|
|
160
|
-
return await self._get(
|
|
161
|
-
f"/v1/tools/composio/apps/{composio_app_name}/actions",
|
|
162
|
-
options=make_request_options(
|
|
163
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
164
|
-
),
|
|
165
|
-
cast_to=AppListActionsResponse,
|
|
166
|
-
)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
class AppsResourceWithRawResponse:
|
|
170
|
-
def __init__(self, apps: AppsResource) -> None:
|
|
171
|
-
self._apps = apps
|
|
172
|
-
|
|
173
|
-
self.list = to_raw_response_wrapper(
|
|
174
|
-
apps.list,
|
|
175
|
-
)
|
|
176
|
-
self.list_actions = to_raw_response_wrapper(
|
|
177
|
-
apps.list_actions,
|
|
178
|
-
)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
class AsyncAppsResourceWithRawResponse:
|
|
182
|
-
def __init__(self, apps: AsyncAppsResource) -> None:
|
|
183
|
-
self._apps = apps
|
|
184
|
-
|
|
185
|
-
self.list = async_to_raw_response_wrapper(
|
|
186
|
-
apps.list,
|
|
187
|
-
)
|
|
188
|
-
self.list_actions = async_to_raw_response_wrapper(
|
|
189
|
-
apps.list_actions,
|
|
190
|
-
)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
class AppsResourceWithStreamingResponse:
|
|
194
|
-
def __init__(self, apps: AppsResource) -> None:
|
|
195
|
-
self._apps = apps
|
|
196
|
-
|
|
197
|
-
self.list = to_streamed_response_wrapper(
|
|
198
|
-
apps.list,
|
|
199
|
-
)
|
|
200
|
-
self.list_actions = to_streamed_response_wrapper(
|
|
201
|
-
apps.list_actions,
|
|
202
|
-
)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
class AsyncAppsResourceWithStreamingResponse:
|
|
206
|
-
def __init__(self, apps: AsyncAppsResource) -> None:
|
|
207
|
-
self._apps = apps
|
|
208
|
-
|
|
209
|
-
self.list = async_to_streamed_response_wrapper(
|
|
210
|
-
apps.list,
|
|
211
|
-
)
|
|
212
|
-
self.list_actions = async_to_streamed_response_wrapper(
|
|
213
|
-
apps.list_actions,
|
|
214
|
-
)
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
from .apps import (
|
|
8
|
-
AppsResource,
|
|
9
|
-
AsyncAppsResource,
|
|
10
|
-
AppsResourceWithRawResponse,
|
|
11
|
-
AsyncAppsResourceWithRawResponse,
|
|
12
|
-
AppsResourceWithStreamingResponse,
|
|
13
|
-
AsyncAppsResourceWithStreamingResponse,
|
|
14
|
-
)
|
|
15
|
-
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
16
|
-
from ...._compat import cached_property
|
|
17
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
18
|
-
from ...._response import (
|
|
19
|
-
to_raw_response_wrapper,
|
|
20
|
-
to_streamed_response_wrapper,
|
|
21
|
-
async_to_raw_response_wrapper,
|
|
22
|
-
async_to_streamed_response_wrapper,
|
|
23
|
-
)
|
|
24
|
-
from ....types.tool import Tool
|
|
25
|
-
from ...._base_client import make_request_options
|
|
26
|
-
|
|
27
|
-
__all__ = ["ComposioResource", "AsyncComposioResource"]
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class ComposioResource(SyncAPIResource):
|
|
31
|
-
@cached_property
|
|
32
|
-
def apps(self) -> AppsResource:
|
|
33
|
-
return AppsResource(self._client)
|
|
34
|
-
|
|
35
|
-
@cached_property
|
|
36
|
-
def with_raw_response(self) -> ComposioResourceWithRawResponse:
|
|
37
|
-
"""
|
|
38
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
39
|
-
the raw response object instead of the parsed content.
|
|
40
|
-
|
|
41
|
-
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
42
|
-
"""
|
|
43
|
-
return ComposioResourceWithRawResponse(self)
|
|
44
|
-
|
|
45
|
-
@cached_property
|
|
46
|
-
def with_streaming_response(self) -> ComposioResourceWithStreamingResponse:
|
|
47
|
-
"""
|
|
48
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
49
|
-
|
|
50
|
-
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
51
|
-
"""
|
|
52
|
-
return ComposioResourceWithStreamingResponse(self)
|
|
53
|
-
|
|
54
|
-
def add(
|
|
55
|
-
self,
|
|
56
|
-
composio_action_name: str,
|
|
57
|
-
*,
|
|
58
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
59
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
60
|
-
extra_headers: Headers | None = None,
|
|
61
|
-
extra_query: Query | None = None,
|
|
62
|
-
extra_body: Body | None = None,
|
|
63
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
64
|
-
) -> Tool:
|
|
65
|
-
"""
|
|
66
|
-
Add a new Composio tool by action name (Composio refers to each tool as an
|
|
67
|
-
`Action`)
|
|
68
|
-
|
|
69
|
-
Args:
|
|
70
|
-
extra_headers: Send extra headers
|
|
71
|
-
|
|
72
|
-
extra_query: Add additional query parameters to the request
|
|
73
|
-
|
|
74
|
-
extra_body: Add additional JSON properties to the request
|
|
75
|
-
|
|
76
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
77
|
-
"""
|
|
78
|
-
if not composio_action_name:
|
|
79
|
-
raise ValueError(
|
|
80
|
-
f"Expected a non-empty value for `composio_action_name` but received {composio_action_name!r}"
|
|
81
|
-
)
|
|
82
|
-
return self._post(
|
|
83
|
-
f"/v1/tools/composio/{composio_action_name}",
|
|
84
|
-
options=make_request_options(
|
|
85
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
86
|
-
),
|
|
87
|
-
cast_to=Tool,
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
class AsyncComposioResource(AsyncAPIResource):
|
|
92
|
-
@cached_property
|
|
93
|
-
def apps(self) -> AsyncAppsResource:
|
|
94
|
-
return AsyncAppsResource(self._client)
|
|
95
|
-
|
|
96
|
-
@cached_property
|
|
97
|
-
def with_raw_response(self) -> AsyncComposioResourceWithRawResponse:
|
|
98
|
-
"""
|
|
99
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
100
|
-
the raw response object instead of the parsed content.
|
|
101
|
-
|
|
102
|
-
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
103
|
-
"""
|
|
104
|
-
return AsyncComposioResourceWithRawResponse(self)
|
|
105
|
-
|
|
106
|
-
@cached_property
|
|
107
|
-
def with_streaming_response(self) -> AsyncComposioResourceWithStreamingResponse:
|
|
108
|
-
"""
|
|
109
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
110
|
-
|
|
111
|
-
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
112
|
-
"""
|
|
113
|
-
return AsyncComposioResourceWithStreamingResponse(self)
|
|
114
|
-
|
|
115
|
-
async def add(
|
|
116
|
-
self,
|
|
117
|
-
composio_action_name: str,
|
|
118
|
-
*,
|
|
119
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
120
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
121
|
-
extra_headers: Headers | None = None,
|
|
122
|
-
extra_query: Query | None = None,
|
|
123
|
-
extra_body: Body | None = None,
|
|
124
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
125
|
-
) -> Tool:
|
|
126
|
-
"""
|
|
127
|
-
Add a new Composio tool by action name (Composio refers to each tool as an
|
|
128
|
-
`Action`)
|
|
129
|
-
|
|
130
|
-
Args:
|
|
131
|
-
extra_headers: Send extra headers
|
|
132
|
-
|
|
133
|
-
extra_query: Add additional query parameters to the request
|
|
134
|
-
|
|
135
|
-
extra_body: Add additional JSON properties to the request
|
|
136
|
-
|
|
137
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
138
|
-
"""
|
|
139
|
-
if not composio_action_name:
|
|
140
|
-
raise ValueError(
|
|
141
|
-
f"Expected a non-empty value for `composio_action_name` but received {composio_action_name!r}"
|
|
142
|
-
)
|
|
143
|
-
return await self._post(
|
|
144
|
-
f"/v1/tools/composio/{composio_action_name}",
|
|
145
|
-
options=make_request_options(
|
|
146
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
147
|
-
),
|
|
148
|
-
cast_to=Tool,
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
class ComposioResourceWithRawResponse:
|
|
153
|
-
def __init__(self, composio: ComposioResource) -> None:
|
|
154
|
-
self._composio = composio
|
|
155
|
-
|
|
156
|
-
self.add = to_raw_response_wrapper(
|
|
157
|
-
composio.add,
|
|
158
|
-
)
|
|
159
|
-
|
|
160
|
-
@cached_property
|
|
161
|
-
def apps(self) -> AppsResourceWithRawResponse:
|
|
162
|
-
return AppsResourceWithRawResponse(self._composio.apps)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
class AsyncComposioResourceWithRawResponse:
|
|
166
|
-
def __init__(self, composio: AsyncComposioResource) -> None:
|
|
167
|
-
self._composio = composio
|
|
168
|
-
|
|
169
|
-
self.add = async_to_raw_response_wrapper(
|
|
170
|
-
composio.add,
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
@cached_property
|
|
174
|
-
def apps(self) -> AsyncAppsResourceWithRawResponse:
|
|
175
|
-
return AsyncAppsResourceWithRawResponse(self._composio.apps)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
class ComposioResourceWithStreamingResponse:
|
|
179
|
-
def __init__(self, composio: ComposioResource) -> None:
|
|
180
|
-
self._composio = composio
|
|
181
|
-
|
|
182
|
-
self.add = to_streamed_response_wrapper(
|
|
183
|
-
composio.add,
|
|
184
|
-
)
|
|
185
|
-
|
|
186
|
-
@cached_property
|
|
187
|
-
def apps(self) -> AppsResourceWithStreamingResponse:
|
|
188
|
-
return AppsResourceWithStreamingResponse(self._composio.apps)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
class AsyncComposioResourceWithStreamingResponse:
|
|
192
|
-
def __init__(self, composio: AsyncComposioResource) -> None:
|
|
193
|
-
self._composio = composio
|
|
194
|
-
|
|
195
|
-
self.add = async_to_streamed_response_wrapper(
|
|
196
|
-
composio.add,
|
|
197
|
-
)
|
|
198
|
-
|
|
199
|
-
@cached_property
|
|
200
|
-
def apps(self) -> AsyncAppsResourceWithStreamingResponse:
|
|
201
|
-
return AsyncAppsResourceWithStreamingResponse(self._composio.apps)
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .mcp import (
|
|
4
|
-
McpResource,
|
|
5
|
-
AsyncMcpResource,
|
|
6
|
-
McpResourceWithRawResponse,
|
|
7
|
-
AsyncMcpResourceWithRawResponse,
|
|
8
|
-
McpResourceWithStreamingResponse,
|
|
9
|
-
AsyncMcpResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .oauth import (
|
|
12
|
-
OAuthResource,
|
|
13
|
-
AsyncOAuthResource,
|
|
14
|
-
OAuthResourceWithRawResponse,
|
|
15
|
-
AsyncOAuthResourceWithRawResponse,
|
|
16
|
-
OAuthResourceWithStreamingResponse,
|
|
17
|
-
AsyncOAuthResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
from .servers import (
|
|
20
|
-
ServersResource,
|
|
21
|
-
AsyncServersResource,
|
|
22
|
-
ServersResourceWithRawResponse,
|
|
23
|
-
AsyncServersResourceWithRawResponse,
|
|
24
|
-
ServersResourceWithStreamingResponse,
|
|
25
|
-
AsyncServersResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
__all__ = [
|
|
29
|
-
"ServersResource",
|
|
30
|
-
"AsyncServersResource",
|
|
31
|
-
"ServersResourceWithRawResponse",
|
|
32
|
-
"AsyncServersResourceWithRawResponse",
|
|
33
|
-
"ServersResourceWithStreamingResponse",
|
|
34
|
-
"AsyncServersResourceWithStreamingResponse",
|
|
35
|
-
"OAuthResource",
|
|
36
|
-
"AsyncOAuthResource",
|
|
37
|
-
"OAuthResourceWithRawResponse",
|
|
38
|
-
"AsyncOAuthResourceWithRawResponse",
|
|
39
|
-
"OAuthResourceWithStreamingResponse",
|
|
40
|
-
"AsyncOAuthResourceWithStreamingResponse",
|
|
41
|
-
"McpResource",
|
|
42
|
-
"AsyncMcpResource",
|
|
43
|
-
"McpResourceWithRawResponse",
|
|
44
|
-
"AsyncMcpResourceWithRawResponse",
|
|
45
|
-
"McpResourceWithStreamingResponse",
|
|
46
|
-
"AsyncMcpResourceWithStreamingResponse",
|
|
47
|
-
]
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .oauth import (
|
|
6
|
-
OAuthResource,
|
|
7
|
-
AsyncOAuthResource,
|
|
8
|
-
OAuthResourceWithRawResponse,
|
|
9
|
-
AsyncOAuthResourceWithRawResponse,
|
|
10
|
-
OAuthResourceWithStreamingResponse,
|
|
11
|
-
AsyncOAuthResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
|
-
from ...._compat import cached_property
|
|
14
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
-
from .servers.servers import (
|
|
16
|
-
ServersResource,
|
|
17
|
-
AsyncServersResource,
|
|
18
|
-
ServersResourceWithRawResponse,
|
|
19
|
-
AsyncServersResourceWithRawResponse,
|
|
20
|
-
ServersResourceWithStreamingResponse,
|
|
21
|
-
AsyncServersResourceWithStreamingResponse,
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
__all__ = ["McpResource", "AsyncMcpResource"]
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class McpResource(SyncAPIResource):
|
|
28
|
-
@cached_property
|
|
29
|
-
def servers(self) -> ServersResource:
|
|
30
|
-
return ServersResource(self._client)
|
|
31
|
-
|
|
32
|
-
@cached_property
|
|
33
|
-
def oauth(self) -> OAuthResource:
|
|
34
|
-
return OAuthResource(self._client)
|
|
35
|
-
|
|
36
|
-
@cached_property
|
|
37
|
-
def with_raw_response(self) -> McpResourceWithRawResponse:
|
|
38
|
-
"""
|
|
39
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
40
|
-
the raw response object instead of the parsed content.
|
|
41
|
-
|
|
42
|
-
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
43
|
-
"""
|
|
44
|
-
return McpResourceWithRawResponse(self)
|
|
45
|
-
|
|
46
|
-
@cached_property
|
|
47
|
-
def with_streaming_response(self) -> McpResourceWithStreamingResponse:
|
|
48
|
-
"""
|
|
49
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
50
|
-
|
|
51
|
-
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
52
|
-
"""
|
|
53
|
-
return McpResourceWithStreamingResponse(self)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class AsyncMcpResource(AsyncAPIResource):
|
|
57
|
-
@cached_property
|
|
58
|
-
def servers(self) -> AsyncServersResource:
|
|
59
|
-
return AsyncServersResource(self._client)
|
|
60
|
-
|
|
61
|
-
@cached_property
|
|
62
|
-
def oauth(self) -> AsyncOAuthResource:
|
|
63
|
-
return AsyncOAuthResource(self._client)
|
|
64
|
-
|
|
65
|
-
@cached_property
|
|
66
|
-
def with_raw_response(self) -> AsyncMcpResourceWithRawResponse:
|
|
67
|
-
"""
|
|
68
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
69
|
-
the raw response object instead of the parsed content.
|
|
70
|
-
|
|
71
|
-
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
72
|
-
"""
|
|
73
|
-
return AsyncMcpResourceWithRawResponse(self)
|
|
74
|
-
|
|
75
|
-
@cached_property
|
|
76
|
-
def with_streaming_response(self) -> AsyncMcpResourceWithStreamingResponse:
|
|
77
|
-
"""
|
|
78
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
79
|
-
|
|
80
|
-
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
81
|
-
"""
|
|
82
|
-
return AsyncMcpResourceWithStreamingResponse(self)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class McpResourceWithRawResponse:
|
|
86
|
-
def __init__(self, mcp: McpResource) -> None:
|
|
87
|
-
self._mcp = mcp
|
|
88
|
-
|
|
89
|
-
@cached_property
|
|
90
|
-
def servers(self) -> ServersResourceWithRawResponse:
|
|
91
|
-
return ServersResourceWithRawResponse(self._mcp.servers)
|
|
92
|
-
|
|
93
|
-
@cached_property
|
|
94
|
-
def oauth(self) -> OAuthResourceWithRawResponse:
|
|
95
|
-
return OAuthResourceWithRawResponse(self._mcp.oauth)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
class AsyncMcpResourceWithRawResponse:
|
|
99
|
-
def __init__(self, mcp: AsyncMcpResource) -> None:
|
|
100
|
-
self._mcp = mcp
|
|
101
|
-
|
|
102
|
-
@cached_property
|
|
103
|
-
def servers(self) -> AsyncServersResourceWithRawResponse:
|
|
104
|
-
return AsyncServersResourceWithRawResponse(self._mcp.servers)
|
|
105
|
-
|
|
106
|
-
@cached_property
|
|
107
|
-
def oauth(self) -> AsyncOAuthResourceWithRawResponse:
|
|
108
|
-
return AsyncOAuthResourceWithRawResponse(self._mcp.oauth)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
class McpResourceWithStreamingResponse:
|
|
112
|
-
def __init__(self, mcp: McpResource) -> None:
|
|
113
|
-
self._mcp = mcp
|
|
114
|
-
|
|
115
|
-
@cached_property
|
|
116
|
-
def servers(self) -> ServersResourceWithStreamingResponse:
|
|
117
|
-
return ServersResourceWithStreamingResponse(self._mcp.servers)
|
|
118
|
-
|
|
119
|
-
@cached_property
|
|
120
|
-
def oauth(self) -> OAuthResourceWithStreamingResponse:
|
|
121
|
-
return OAuthResourceWithStreamingResponse(self._mcp.oauth)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
class AsyncMcpResourceWithStreamingResponse:
|
|
125
|
-
def __init__(self, mcp: AsyncMcpResource) -> None:
|
|
126
|
-
self._mcp = mcp
|
|
127
|
-
|
|
128
|
-
@cached_property
|
|
129
|
-
def servers(self) -> AsyncServersResourceWithStreamingResponse:
|
|
130
|
-
return AsyncServersResourceWithStreamingResponse(self._mcp.servers)
|
|
131
|
-
|
|
132
|
-
@cached_property
|
|
133
|
-
def oauth(self) -> AsyncOAuthResourceWithStreamingResponse:
|
|
134
|
-
return AsyncOAuthResourceWithStreamingResponse(self._mcp.oauth)
|