letta-client 0.1.232__py3-none-any.whl → 1.7.2__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.
- letta_client/__init__.py +91 -676
- letta_client/_base_client.py +2125 -0
- letta_client/_client.py +1136 -0
- letta_client/_compat.py +219 -0
- letta_client/_constants.py +14 -0
- letta_client/_exceptions.py +108 -0
- letta_client/_files.py +123 -0
- letta_client/_models.py +872 -0
- letta_client/_qs.py +150 -0
- letta_client/_resource.py +43 -0
- letta_client/_response.py +832 -0
- letta_client/_streaming.py +371 -0
- letta_client/_types.py +270 -0
- letta_client/_utils/__init__.py +64 -0
- letta_client/_utils/_compat.py +45 -0
- letta_client/_utils/_datetime_parse.py +136 -0
- letta_client/_utils/_logs.py +25 -0
- letta_client/_utils/_proxy.py +65 -0
- letta_client/_utils/_reflection.py +42 -0
- letta_client/_utils/_resources_proxy.py +24 -0
- letta_client/_utils/_streams.py +12 -0
- letta_client/_utils/_sync.py +58 -0
- letta_client/_utils/_transform.py +457 -0
- letta_client/_utils/_typing.py +156 -0
- letta_client/_utils/_utils.py +421 -0
- letta_client/_version.py +4 -0
- letta_client/lib/.keep +4 -0
- letta_client/pagination.py +280 -0
- letta_client/resources/__init__.py +215 -0
- letta_client/resources/access_tokens.py +396 -0
- letta_client/resources/agents/__init__.py +131 -0
- letta_client/resources/agents/agents.py +2148 -0
- letta_client/resources/agents/archives.py +260 -0
- letta_client/resources/agents/blocks.py +736 -0
- letta_client/resources/agents/files.py +541 -0
- letta_client/resources/agents/folders.py +422 -0
- letta_client/resources/agents/identities.py +260 -0
- letta_client/resources/agents/messages.py +1800 -0
- letta_client/resources/agents/passages.py +638 -0
- letta_client/resources/agents/tools.py +651 -0
- letta_client/resources/archives/__init__.py +33 -0
- letta_client/resources/archives/archives.py +650 -0
- letta_client/resources/archives/passages.py +309 -0
- letta_client/resources/blocks/__init__.py +33 -0
- letta_client/resources/blocks/agents.py +289 -0
- letta_client/resources/blocks/blocks.py +977 -0
- letta_client/resources/conversations/__init__.py +33 -0
- letta_client/resources/conversations/conversations.py +611 -0
- letta_client/resources/conversations/messages.py +650 -0
- letta_client/resources/folders/__init__.py +47 -0
- letta_client/resources/folders/agents.py +234 -0
- letta_client/resources/folders/files.py +581 -0
- letta_client/resources/folders/folders.py +734 -0
- letta_client/resources/mcp_servers/__init__.py +33 -0
- letta_client/resources/mcp_servers/mcp_servers.py +670 -0
- letta_client/resources/mcp_servers/tools.py +351 -0
- letta_client/resources/messages.py +455 -0
- letta_client/resources/models/__init__.py +33 -0
- letta_client/resources/models/embeddings.py +149 -0
- letta_client/resources/models/models.py +233 -0
- letta_client/resources/passages.py +259 -0
- letta_client/resources/runs/__init__.py +75 -0
- letta_client/resources/runs/messages.py +363 -0
- letta_client/resources/runs/runs.py +502 -0
- letta_client/resources/runs/steps.py +229 -0
- letta_client/resources/runs/trace.py +197 -0
- letta_client/resources/runs/usage.py +163 -0
- 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 +505 -0
- letta_client/resources/steps/trace.py +169 -0
- letta_client/resources/tags.py +240 -0
- letta_client/resources/templates/__init__.py +33 -0
- letta_client/resources/templates/agents.py +229 -0
- letta_client/resources/templates/templates.py +540 -0
- letta_client/resources/tools.py +1721 -0
- letta_client/types/__init__.py +148 -534
- letta_client/types/access_token_create_params.py +32 -0
- letta_client/types/access_token_create_response.py +34 -0
- letta_client/types/access_token_delete_params.py +11 -0
- letta_client/types/access_token_list_params.py +23 -0
- letta_client/types/access_token_list_response.py +40 -0
- letta_client/types/agent_create_params.py +444 -0
- letta_client/types/agent_environment_variable.py +40 -63
- letta_client/types/agent_export_file_params.py +26 -0
- letta_client/types/agent_export_file_response.py +7 -0
- letta_client/types/agent_import_file_params.py +57 -0
- letta_client/types/agent_import_file_response.py +14 -0
- letta_client/types/agent_list_params.py +100 -0
- letta_client/types/agent_retrieve_params.py +37 -0
- letta_client/types/agent_state.py +651 -138
- letta_client/types/agent_type.py +14 -14
- letta_client/types/agent_update_params.py +386 -0
- letta_client/types/agents/__init__.py +76 -0
- letta_client/types/agents/approval_create_param.py +35 -0
- letta_client/types/agents/approval_request_message.py +57 -0
- letta_client/types/agents/approval_response_message.py +61 -0
- letta_client/types/agents/approval_return.py +22 -0
- letta_client/types/agents/approval_return_param.py +22 -0
- letta_client/types/agents/assistant_message.py +48 -0
- letta_client/types/agents/block.py +68 -0
- letta_client/types/agents/block_list_params.py +34 -0
- letta_client/types/agents/block_update_params.py +63 -0
- letta_client/types/agents/event_message.py +40 -0
- letta_client/types/agents/file_close_all_response.py +8 -0
- letta_client/types/agents/file_list_params.py +40 -0
- letta_client/types/agents/file_list_response.py +42 -0
- letta_client/types/agents/file_open_response.py +8 -0
- letta_client/types/agents/folder_list_params.py +34 -0
- letta_client/types/agents/folder_list_response.py +49 -0
- letta_client/types/agents/hidden_reasoning_message.py +49 -0
- letta_client/types/agents/image_content.py +67 -0
- letta_client/types/agents/image_content_param.py +64 -0
- letta_client/types/agents/internal_message.py +271 -0
- letta_client/types/agents/job_status.py +7 -0
- letta_client/types/agents/job_type.py +7 -0
- letta_client/types/agents/letta_assistant_message_content_union.py +19 -0
- letta_client/types/agents/letta_response.py +76 -0
- letta_client/types/agents/letta_streaming_response.py +155 -0
- letta_client/types/agents/letta_user_message_content_union.py +14 -0
- letta_client/types/agents/message.py +36 -0
- letta_client/types/agents/message_cancel_params.py +15 -0
- letta_client/types/agents/message_cancel_response.py +8 -0
- letta_client/types/agents/message_compact_params.py +145 -0
- letta_client/types/agents/message_compact_response.py +13 -0
- letta_client/types/agents/message_create_async_params.py +145 -0
- letta_client/types/agents/message_create_params.py +181 -0
- letta_client/types/agents/message_list_params.py +55 -0
- letta_client/types/agents/message_reset_params.py +12 -0
- letta_client/types/agents/message_role.py +7 -0
- letta_client/types/agents/message_stream_params.py +166 -0
- letta_client/types/agents/message_type.py +17 -0
- letta_client/types/agents/omitted_reasoning_content.py +20 -0
- letta_client/types/agents/omitted_reasoning_content_param.py +20 -0
- letta_client/types/agents/passage_create_params.py +23 -0
- letta_client/types/agents/passage_create_response.py +10 -0
- letta_client/types/agents/passage_list_params.py +28 -0
- letta_client/types/agents/passage_list_response.py +10 -0
- letta_client/types/agents/passage_search_params.py +35 -0
- letta_client/types/agents/passage_search_response.py +29 -0
- letta_client/types/agents/reasoning_content.py +27 -0
- letta_client/types/agents/reasoning_content_param.py +27 -0
- letta_client/types/agents/reasoning_message.py +50 -0
- letta_client/types/agents/redacted_reasoning_content.py +18 -0
- letta_client/types/agents/redacted_reasoning_content_param.py +17 -0
- letta_client/types/agents/run.py +91 -0
- letta_client/types/agents/summary_message.py +38 -0
- letta_client/types/agents/system_message.py +46 -0
- letta_client/types/agents/text_content.py +19 -0
- letta_client/types/agents/text_content_param.py +19 -0
- letta_client/types/agents/tool_call.py +13 -0
- letta_client/types/agents/tool_call_content.py +28 -0
- letta_client/types/agents/tool_call_content_param.py +28 -0
- letta_client/types/agents/tool_call_delta.py +15 -0
- letta_client/types/agents/tool_call_message.py +52 -0
- letta_client/types/agents/tool_execution_result.py +33 -0
- letta_client/types/agents/tool_list_params.py +34 -0
- letta_client/types/agents/tool_return.py +29 -0
- letta_client/types/agents/tool_return_content.py +22 -0
- letta_client/types/agents/tool_return_content_param.py +21 -0
- letta_client/types/agents/tool_return_param.py +30 -0
- letta_client/types/agents/tool_run_params.py +16 -0
- letta_client/types/agents/tool_update_approval_params.py +21 -0
- letta_client/types/agents/user_message.py +50 -0
- letta_client/types/anthropic_model_settings.py +62 -0
- letta_client/types/anthropic_model_settings_param.py +59 -0
- letta_client/types/archive.py +46 -0
- letta_client/types/archive_create_params.py +22 -0
- letta_client/types/archive_list_params.py +40 -0
- letta_client/types/archive_update_params.py +14 -0
- letta_client/types/archives/__init__.py +5 -0
- letta_client/types/archives/passage_create_params.py +21 -0
- letta_client/types/azure_model_settings.py +36 -0
- letta_client/types/azure_model_settings_param.py +33 -0
- letta_client/types/bedrock_model_settings.py +36 -0
- letta_client/types/bedrock_model_settings_param.py +33 -0
- letta_client/types/block_create_params.py +59 -0
- letta_client/types/block_list_params.py +102 -0
- letta_client/types/block_response.py +66 -0
- letta_client/types/block_update_params.py +60 -0
- letta_client/types/blocks/__init__.py +5 -0
- letta_client/types/blocks/agent_list_params.py +61 -0
- letta_client/types/child_tool_rule.py +37 -26
- letta_client/types/child_tool_rule_param.py +50 -0
- letta_client/types/conditional_tool_rule.py +19 -35
- letta_client/types/conditional_tool_rule_param.py +31 -0
- letta_client/types/continue_tool_rule.py +13 -23
- letta_client/types/continue_tool_rule_param.py +22 -0
- letta_client/types/conversation.py +42 -0
- letta_client/types/conversation_cancel_response.py +8 -0
- letta_client/types/conversation_create_params.py +25 -0
- letta_client/types/conversation_list_params.py +19 -0
- letta_client/types/conversation_list_response.py +10 -0
- letta_client/types/conversation_update_params.py +13 -0
- letta_client/types/conversations/__init__.py +7 -0
- letta_client/types/conversations/message_create_params.py +166 -0
- letta_client/types/conversations/message_list_params.py +43 -0
- letta_client/types/conversations/message_stream_params.py +28 -0
- letta_client/types/create_block_param.py +61 -0
- letta_client/types/create_sse_mcp_server_param.py +26 -0
- letta_client/types/create_stdio_mcp_server_param.py +25 -0
- letta_client/types/create_streamable_http_mcp_server_param.py +26 -0
- letta_client/types/deepseek_model_settings.py +36 -0
- letta_client/types/deepseek_model_settings_param.py +33 -0
- letta_client/types/embedding_config.py +47 -67
- letta_client/types/embedding_config_param.py +64 -0
- letta_client/types/embedding_model.py +81 -0
- letta_client/types/folder.py +28 -66
- letta_client/types/folder_create_params.py +33 -0
- letta_client/types/folder_list_params.py +37 -0
- letta_client/types/folder_update_params.py +27 -0
- letta_client/types/folders/__init__.py +12 -0
- letta_client/types/folders/agent_list_params.py +34 -0
- letta_client/types/folders/agent_list_response.py +8 -0
- letta_client/types/folders/file_list_params.py +37 -0
- letta_client/types/folders/file_list_response.py +70 -0
- letta_client/types/folders/file_retrieve_params.py +15 -0
- letta_client/types/folders/file_retrieve_response.py +70 -0
- letta_client/types/folders/file_upload_params.py +20 -0
- letta_client/types/folders/file_upload_response.py +70 -0
- letta_client/types/google_ai_model_settings.py +47 -0
- letta_client/types/google_ai_model_settings_param.py +44 -0
- letta_client/types/google_vertex_model_settings.py +47 -0
- letta_client/types/google_vertex_model_settings_param.py +44 -0
- letta_client/types/groq_model_settings.py +36 -0
- letta_client/types/groq_model_settings_param.py +33 -0
- letta_client/types/health_response.py +13 -0
- letta_client/types/init_tool_rule.py +24 -24
- letta_client/types/init_tool_rule_param.py +32 -0
- letta_client/types/json_object_response_format.py +9 -17
- letta_client/types/json_object_response_format_param.py +14 -0
- letta_client/types/json_schema_response_format.py +12 -21
- letta_client/types/json_schema_response_format_param.py +18 -0
- letta_client/types/letta_message_content_union_param.py +26 -0
- letta_client/types/llm_config.py +123 -80
- letta_client/types/llm_config_param.py +155 -0
- letta_client/types/max_count_per_step_tool_rule.py +16 -25
- letta_client/types/max_count_per_step_tool_rule_param.py +28 -0
- letta_client/types/mcp_server_create_params.py +23 -0
- letta_client/types/mcp_server_create_response.py +12 -0
- letta_client/types/mcp_server_list_response.py +14 -0
- letta_client/types/mcp_server_refresh_params.py +12 -0
- letta_client/types/mcp_server_retrieve_response.py +12 -0
- letta_client/types/mcp_server_update_params.py +23 -0
- letta_client/types/mcp_server_update_response.py +12 -0
- letta_client/types/mcp_servers/__init__.py +6 -0
- letta_client/types/mcp_servers/tool_list_response.py +10 -0
- letta_client/types/mcp_servers/tool_run_params.py +15 -0
- letta_client/types/message_create_param.py +38 -0
- letta_client/types/message_list_params.py +34 -0
- letta_client/types/message_list_response.py +10 -0
- letta_client/types/message_retrieve_response.py +10 -0
- letta_client/types/message_search_params.py +34 -0
- letta_client/types/message_search_response.py +124 -0
- letta_client/types/model.py +148 -0
- letta_client/types/model_list_params.py +19 -0
- letta_client/types/model_list_response.py +10 -0
- letta_client/types/models/__init__.py +5 -0
- letta_client/types/models/embedding_list_response.py +10 -0
- letta_client/types/npm_requirement.py +15 -0
- letta_client/types/npm_requirement_param.py +16 -0
- letta_client/types/openai_model_settings.py +51 -0
- letta_client/types/openai_model_settings_param.py +48 -0
- letta_client/types/parent_tool_rule.py +15 -27
- letta_client/types/parent_tool_rule_param.py +27 -0
- letta_client/types/passage.py +56 -101
- letta_client/types/passage_search_params.py +41 -0
- letta_client/types/passage_search_response.py +25 -0
- letta_client/types/pip_requirement.py +9 -21
- letta_client/types/pip_requirement_param.py +16 -0
- letta_client/types/provider_category.py +5 -3
- letta_client/types/provider_trace.py +43 -48
- letta_client/types/provider_type.py +25 -23
- letta_client/types/required_before_exit_tool_rule.py +13 -23
- letta_client/types/required_before_exit_tool_rule_param.py +22 -0
- letta_client/types/requires_approval_tool_rule.py +25 -0
- letta_client/types/requires_approval_tool_rule_param.py +25 -0
- letta_client/types/run_list_params.py +67 -0
- letta_client/types/runs/__init__.py +10 -0
- letta_client/types/runs/message_list_params.py +34 -0
- letta_client/types/runs/message_stream_params.py +28 -0
- letta_client/types/runs/step_list_params.py +28 -0
- letta_client/types/runs/trace_retrieve_params.py +12 -0
- letta_client/types/runs/trace_retrieve_response.py +8 -0
- letta_client/types/runs/usage_retrieve_response.py +31 -0
- letta_client/types/sse_mcp_server.py +32 -0
- letta_client/types/stdio_mcp_server.py +29 -0
- letta_client/types/step.py +71 -97
- letta_client/types/step_list_params.py +57 -0
- letta_client/types/steps/__init__.py +8 -0
- letta_client/types/steps/feedback_create_params.py +18 -0
- letta_client/types/steps/message_list_params.py +34 -0
- letta_client/types/steps/message_list_response.py +36 -0
- letta_client/types/steps/metric_retrieve_response.py +45 -0
- letta_client/types/stop_reason_type.py +17 -5
- letta_client/types/streamable_http_mcp_server.py +32 -0
- letta_client/types/tag_list_params.py +40 -0
- letta_client/types/tag_list_response.py +8 -0
- letta_client/types/template_create_params.py +46 -0
- letta_client/types/template_create_response.py +29 -0
- letta_client/types/template_delete_response.py +9 -0
- letta_client/types/template_update_params.py +25 -0
- letta_client/types/template_update_response.py +13 -0
- letta_client/types/templates/__init__.py +6 -0
- letta_client/types/templates/agent_create_params.py +50 -0
- letta_client/types/templates/agent_create_response.py +20 -0
- letta_client/types/terminal_tool_rule.py +13 -23
- letta_client/types/terminal_tool_rule_param.py +22 -0
- letta_client/types/text_response_format.py +9 -17
- letta_client/types/text_response_format_param.py +14 -0
- letta_client/types/together_model_settings.py +36 -0
- letta_client/types/together_model_settings_param.py +33 -0
- letta_client/types/tool.py +154 -81
- letta_client/types/tool_create_params.py +53 -0
- letta_client/types/tool_list_params.py +57 -0
- letta_client/types/tool_return_message.py +44 -31
- letta_client/types/tool_search_params.py +27 -0
- letta_client/types/tool_search_response.py +10 -0
- letta_client/types/tool_search_result.py +27 -0
- letta_client/types/tool_type.py +16 -17
- letta_client/types/tool_update_params.py +57 -0
- letta_client/types/tool_upsert_params.py +53 -0
- letta_client/types/update_sse_mcp_server_param.py +26 -0
- letta_client/types/update_stdio_mcp_server_param.py +25 -0
- letta_client/types/update_streamable_http_mcp_server_param.py +26 -0
- letta_client/types/vector_db_provider.py +7 -0
- letta_client/types/xai_model_settings.py +36 -0
- letta_client/types/xai_model_settings_param.py +33 -0
- letta_client-1.7.2.dist-info/METADATA +436 -0
- letta_client-1.7.2.dist-info/RECORD +335 -0
- {letta_client-0.1.232.dist-info → letta_client-1.7.2.dist-info}/WHEEL +1 -1
- letta_client-1.7.2.dist-info/licenses/LICENSE +201 -0
- letta_client/agents/__init__.py +0 -77
- letta_client/agents/blocks/__init__.py +0 -2
- letta_client/agents/blocks/client.py +0 -793
- letta_client/agents/client.py +0 -2371
- letta_client/agents/context/__init__.py +0 -2
- letta_client/agents/context/client.py +0 -149
- letta_client/agents/core_memory/__init__.py +0 -2
- letta_client/agents/core_memory/client.py +0 -147
- letta_client/agents/files/__init__.py +0 -2
- letta_client/agents/files/client.py +0 -430
- letta_client/agents/folders/__init__.py +0 -2
- letta_client/agents/folders/client.py +0 -412
- letta_client/agents/groups/__init__.py +0 -2
- letta_client/agents/groups/client.py +0 -169
- letta_client/agents/memory_variables/__init__.py +0 -5
- letta_client/agents/memory_variables/client.py +0 -152
- letta_client/agents/memory_variables/types/__init__.py +0 -5
- letta_client/agents/memory_variables/types/memory_variables_list_response.py +0 -19
- letta_client/agents/messages/__init__.py +0 -15
- letta_client/agents/messages/client.py +0 -1638
- letta_client/agents/messages/types/__init__.py +0 -13
- letta_client/agents/messages/types/letta_streaming_response.py +0 -24
- letta_client/agents/messages/types/messages_modify_request.py +0 -11
- letta_client/agents/messages/types/messages_modify_response.py +0 -20
- letta_client/agents/messages/types/messages_preview_raw_payload_request.py +0 -7
- letta_client/agents/passages/__init__.py +0 -2
- letta_client/agents/passages/client.py +0 -793
- letta_client/agents/sources/__init__.py +0 -2
- letta_client/agents/sources/client.py +0 -412
- letta_client/agents/templates/__init__.py +0 -5
- letta_client/agents/templates/client.py +0 -588
- letta_client/agents/templates/types/__init__.py +0 -7
- letta_client/agents/templates/types/templates_create_response.py +0 -22
- letta_client/agents/templates/types/templates_create_version_request_return_agent_state.py +0 -5
- letta_client/agents/templates/types/templates_migrate_response.py +0 -19
- letta_client/agents/tools/__init__.py +0 -2
- letta_client/agents/tools/client.py +0 -412
- letta_client/agents/types/__init__.py +0 -33
- letta_client/agents/types/agents_search_request_search_item.py +0 -16
- letta_client/agents/types/agents_search_request_search_item_field.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_field_operator.py +0 -5
- letta_client/agents/types/agents_search_request_search_item_one.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_one_operator.py +0 -5
- letta_client/agents/types/agents_search_request_search_item_three.py +0 -21
- letta_client/agents/types/agents_search_request_search_item_two.py +0 -21
- letta_client/agents/types/agents_search_request_search_item_zero.py +0 -20
- letta_client/agents/types/agents_search_request_sort_by.py +0 -5
- letta_client/agents/types/agents_search_response.py +0 -23
- letta_client/agents/types/create_agent_request_response_format.py +0 -8
- letta_client/agents/types/create_agent_request_tool_rules_item.py +0 -22
- letta_client/agents/types/update_agent_response_format.py +0 -8
- letta_client/agents/types/update_agent_tool_rules_item.py +0 -22
- letta_client/base_client.py +0 -232
- letta_client/batches/__init__.py +0 -2
- letta_client/batches/client.py +0 -587
- letta_client/blocks/__init__.py +0 -5
- letta_client/blocks/agents/__init__.py +0 -2
- letta_client/blocks/agents/client.py +0 -171
- letta_client/blocks/client.py +0 -1118
- letta_client/client.py +0 -661
- letta_client/client_side_access_tokens/__init__.py +0 -29
- letta_client/client_side_access_tokens/client.py +0 -524
- letta_client/client_side_access_tokens/types/__init__.py +0 -43
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_request_policy_item.py +0 -24
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_request_policy_item_access_item.py +0 -7
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy.py +0 -23
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item.py +0 -24
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py +0 -7
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item.py +0 -27
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy.py +0 -23
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item.py +0 -24
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py +0 -7
- letta_client/core/__init__.py +0 -51
- letta_client/core/api_error.py +0 -15
- letta_client/core/client_wrapper.py +0 -77
- letta_client/core/datetime_utils.py +0 -28
- letta_client/core/file.py +0 -67
- letta_client/core/http_client.py +0 -499
- letta_client/core/jsonable_encoder.py +0 -101
- letta_client/core/pydantic_utilities.py +0 -296
- letta_client/core/query_encoder.py +0 -58
- letta_client/core/remove_none_from_dict.py +0 -11
- letta_client/core/request_options.py +0 -35
- letta_client/core/serialization.py +0 -272
- letta_client/core/unchecked_base_model.py +0 -305
- letta_client/embedding_models/__init__.py +0 -2
- letta_client/embedding_models/client.py +0 -136
- letta_client/environment.py +0 -8
- letta_client/errors/__init__.py +0 -17
- letta_client/errors/bad_request_error.py +0 -9
- letta_client/errors/conflict_error.py +0 -9
- letta_client/errors/internal_server_error.py +0 -9
- letta_client/errors/not_found_error.py +0 -9
- letta_client/errors/payment_required_error.py +0 -9
- letta_client/errors/unprocessable_entity_error.py +0 -9
- letta_client/folders/__init__.py +0 -5
- letta_client/folders/client.py +0 -1307
- letta_client/folders/files/__init__.py +0 -2
- letta_client/folders/files/client.py +0 -474
- letta_client/folders/passages/__init__.py +0 -2
- letta_client/folders/passages/client.py +0 -189
- letta_client/groups/__init__.py +0 -14
- letta_client/groups/client.py +0 -964
- letta_client/groups/messages/__init__.py +0 -5
- letta_client/groups/messages/client.py +0 -1015
- letta_client/groups/messages/types/__init__.py +0 -7
- letta_client/groups/messages/types/letta_streaming_response.py +0 -20
- letta_client/groups/messages/types/messages_modify_request.py +0 -11
- letta_client/groups/messages/types/messages_modify_response.py +0 -20
- letta_client/groups/types/__init__.py +0 -6
- letta_client/groups/types/group_create_manager_config.py +0 -12
- letta_client/groups/types/group_update_manager_config.py +0 -16
- letta_client/health/__init__.py +0 -2
- letta_client/health/client.py +0 -110
- letta_client/identities/__init__.py +0 -5
- letta_client/identities/client.py +0 -1201
- letta_client/identities/properties/__init__.py +0 -2
- letta_client/identities/properties/client.py +0 -183
- letta_client/jobs/__init__.py +0 -2
- letta_client/jobs/client.py +0 -749
- letta_client/messages/__init__.py +0 -2
- letta_client/messages/client.py +0 -213
- letta_client/models/__init__.py +0 -2
- letta_client/models/client.py +0 -174
- letta_client/projects/__init__.py +0 -5
- letta_client/projects/client.py +0 -150
- letta_client/projects/types/__init__.py +0 -6
- letta_client/projects/types/projects_list_response.py +0 -23
- letta_client/projects/types/projects_list_response_projects_item.py +0 -21
- letta_client/providers/__init__.py +0 -2
- letta_client/providers/client.py +0 -789
- letta_client/runs/__init__.py +0 -5
- letta_client/runs/client.py +0 -551
- letta_client/runs/messages/__init__.py +0 -2
- letta_client/runs/messages/client.py +0 -236
- letta_client/runs/steps/__init__.py +0 -2
- letta_client/runs/steps/client.py +0 -219
- letta_client/runs/usage/__init__.py +0 -2
- letta_client/runs/usage/client.py +0 -147
- letta_client/sources/__init__.py +0 -5
- letta_client/sources/client.py +0 -1462
- letta_client/sources/files/__init__.py +0 -2
- letta_client/sources/files/client.py +0 -474
- letta_client/sources/passages/__init__.py +0 -2
- letta_client/sources/passages/client.py +0 -189
- letta_client/steps/__init__.py +0 -6
- letta_client/steps/client.py +0 -408
- letta_client/steps/feedback/__init__.py +0 -2
- letta_client/steps/feedback/client.py +0 -168
- letta_client/steps/types/__init__.py +0 -5
- letta_client/steps/types/steps_list_request_feedback.py +0 -5
- letta_client/tags/__init__.py +0 -2
- letta_client/tags/client.py +0 -171
- letta_client/telemetry/__init__.py +0 -2
- letta_client/telemetry/client.py +0 -145
- letta_client/templates/__init__.py +0 -18
- letta_client/templates/agents/__init__.py +0 -13
- letta_client/templates/agents/client.py +0 -256
- letta_client/templates/agents/types/__init__.py +0 -11
- letta_client/templates/agents/types/agents_create_request_initial_message_sequence_item.py +0 -26
- letta_client/templates/agents/types/agents_create_request_initial_message_sequence_item_role.py +0 -7
- letta_client/templates/agents/types/agents_create_response.py +0 -20
- letta_client/templates/client.py +0 -162
- letta_client/templates/types/__init__.py +0 -6
- letta_client/templates/types/templates_list_response.py +0 -23
- letta_client/templates/types/templates_list_response_templates_item.py +0 -20
- letta_client/tools/__init__.py +0 -27
- letta_client/tools/client.py +0 -3063
- letta_client/tools/types/__init__.py +0 -25
- letta_client/tools/types/add_mcp_server_request.py +0 -8
- letta_client/tools/types/add_mcp_server_response_item.py +0 -8
- letta_client/tools/types/connect_mcp_server_request.py +0 -8
- letta_client/tools/types/connect_mcp_server_response_event.py +0 -8
- letta_client/tools/types/delete_mcp_server_response_item.py +0 -8
- letta_client/tools/types/list_mcp_servers_response_value.py +0 -8
- letta_client/tools/types/streaming_response.py +0 -23
- letta_client/tools/types/test_mcp_server_request.py +0 -8
- letta_client/tools/types/update_mcp_server_request.py +0 -8
- letta_client/tools/types/update_mcp_server_response.py +0 -8
- letta_client/types/action_model.py +0 -38
- letta_client/types/action_parameters_model.py +0 -27
- letta_client/types/action_response_model.py +0 -27
- letta_client/types/agent_schema.py +0 -49
- letta_client/types/agent_schema_tool_rules_item.py +0 -11
- letta_client/types/agent_state_response_format.py +0 -8
- letta_client/types/agent_state_tool_rules_item.py +0 -22
- letta_client/types/app_auth_scheme.py +0 -34
- letta_client/types/app_auth_scheme_auth_mode.py +0 -19
- letta_client/types/app_model.py +0 -44
- letta_client/types/assistant_message.py +0 -42
- letta_client/types/assistant_message_content.py +0 -6
- letta_client/types/audio.py +0 -19
- letta_client/types/auth_request.py +0 -22
- letta_client/types/auth_response.py +0 -29
- letta_client/types/auth_scheme_field.py +0 -30
- letta_client/types/bad_request_error_body.py +0 -19
- letta_client/types/base_64_image.py +0 -33
- letta_client/types/base_tool_rule_schema.py +0 -20
- letta_client/types/batch_job.py +0 -81
- letta_client/types/block.py +0 -97
- letta_client/types/block_update.py +0 -71
- letta_client/types/chat_completion_assistant_message_param.py +0 -29
- letta_client/types/chat_completion_assistant_message_param_content.py +0 -8
- letta_client/types/chat_completion_assistant_message_param_content_item.py +0 -9
- letta_client/types/chat_completion_audio_param.py +0 -22
- letta_client/types/chat_completion_audio_param_format.py +0 -5
- letta_client/types/chat_completion_audio_param_voice.py +0 -15
- letta_client/types/chat_completion_content_part_image_param.py +0 -21
- letta_client/types/chat_completion_content_part_input_audio_param.py +0 -21
- letta_client/types/chat_completion_content_part_refusal_param.py +0 -20
- letta_client/types/chat_completion_content_part_text_param.py +0 -20
- letta_client/types/chat_completion_developer_message_param.py +0 -22
- letta_client/types/chat_completion_developer_message_param_content.py +0 -6
- letta_client/types/chat_completion_function_call_option_param.py +0 -19
- letta_client/types/chat_completion_function_message_param.py +0 -21
- letta_client/types/chat_completion_message_tool_call.py +0 -22
- letta_client/types/chat_completion_message_tool_call_param.py +0 -24
- letta_client/types/chat_completion_named_tool_choice_param.py +0 -23
- letta_client/types/chat_completion_prediction_content_param.py +0 -21
- letta_client/types/chat_completion_prediction_content_param_content.py +0 -6
- letta_client/types/chat_completion_stream_options_param.py +0 -19
- letta_client/types/chat_completion_system_message_param.py +0 -22
- letta_client/types/chat_completion_system_message_param_content.py +0 -6
- letta_client/types/chat_completion_tool_message_param.py +0 -22
- letta_client/types/chat_completion_tool_message_param_content.py +0 -6
- letta_client/types/chat_completion_tool_param.py +0 -21
- letta_client/types/chat_completion_user_message_param.py +0 -22
- letta_client/types/chat_completion_user_message_param_content.py +0 -6
- letta_client/types/chat_completion_user_message_param_content_item.py +0 -14
- letta_client/types/child_tool_rule_schema.py +0 -21
- letta_client/types/code_input.py +0 -22
- letta_client/types/completion_create_params_non_streaming.py +0 -64
- letta_client/types/completion_create_params_non_streaming_function_call.py +0 -8
- letta_client/types/completion_create_params_non_streaming_messages_item.py +0 -18
- letta_client/types/completion_create_params_non_streaming_modalities_item.py +0 -5
- letta_client/types/completion_create_params_non_streaming_model.py +0 -62
- letta_client/types/completion_create_params_non_streaming_reasoning_effort.py +0 -5
- letta_client/types/completion_create_params_non_streaming_response_format.py +0 -10
- letta_client/types/completion_create_params_non_streaming_service_tier.py +0 -7
- letta_client/types/completion_create_params_non_streaming_stop.py +0 -5
- letta_client/types/completion_create_params_non_streaming_tool_choice.py +0 -8
- letta_client/types/completion_create_params_streaming.py +0 -64
- letta_client/types/completion_create_params_streaming_function_call.py +0 -8
- letta_client/types/completion_create_params_streaming_messages_item.py +0 -18
- letta_client/types/completion_create_params_streaming_modalities_item.py +0 -5
- letta_client/types/completion_create_params_streaming_model.py +0 -62
- letta_client/types/completion_create_params_streaming_reasoning_effort.py +0 -5
- letta_client/types/completion_create_params_streaming_response_format.py +0 -10
- letta_client/types/completion_create_params_streaming_service_tier.py +0 -7
- letta_client/types/completion_create_params_streaming_stop.py +0 -5
- letta_client/types/completion_create_params_streaming_tool_choice.py +0 -8
- letta_client/types/components_schemas_text_content.py +0 -5
- letta_client/types/conditional_tool_rule_schema.py +0 -23
- letta_client/types/conflict_error_body.py +0 -21
- letta_client/types/context_window_overview.py +0 -108
- letta_client/types/core_memory_block_schema.py +0 -31
- letta_client/types/create_block.py +0 -67
- letta_client/types/duplicate_file_handling.py +0 -5
- letta_client/types/dynamic_manager.py +0 -33
- letta_client/types/dynamic_manager_update.py +0 -33
- letta_client/types/e_2_b_sandbox_config.py +0 -32
- letta_client/types/embedding_config_embedding_endpoint_type.py +0 -29
- letta_client/types/feedback_type.py +0 -5
- letta_client/types/file.py +0 -21
- letta_client/types/file_block.py +0 -103
- letta_client/types/file_file.py +0 -21
- letta_client/types/file_metadata.py +0 -103
- letta_client/types/file_processing_status.py +0 -5
- letta_client/types/file_stats.py +0 -36
- letta_client/types/function_call.py +0 -20
- letta_client/types/function_definition_input.py +0 -22
- letta_client/types/function_definition_output.py +0 -22
- letta_client/types/function_output.py +0 -20
- letta_client/types/function_tool.py +0 -21
- letta_client/types/generate_tool_input.py +0 -42
- letta_client/types/generate_tool_output.py +0 -33
- letta_client/types/group.py +0 -88
- letta_client/types/health.py +0 -24
- letta_client/types/hidden_reasoning_message.py +0 -43
- letta_client/types/hidden_reasoning_message_state.py +0 -5
- letta_client/types/http_validation_error.py +0 -20
- letta_client/types/identity.py +0 -59
- letta_client/types/identity_property.py +0 -38
- letta_client/types/identity_property_type.py +0 -5
- letta_client/types/identity_property_value.py +0 -5
- letta_client/types/identity_type.py +0 -5
- letta_client/types/image_content.py +0 -24
- letta_client/types/image_content_source.py +0 -8
- letta_client/types/image_url.py +0 -21
- letta_client/types/image_url_detail.py +0 -5
- letta_client/types/input_audio.py +0 -21
- letta_client/types/input_audio_format.py +0 -5
- letta_client/types/internal_server_error_body.py +0 -19
- letta_client/types/job.py +0 -96
- letta_client/types/job_status.py +0 -7
- letta_client/types/job_type.py +0 -5
- letta_client/types/json_schema.py +0 -26
- letta_client/types/letta_batch_messages.py +0 -20
- letta_client/types/letta_batch_request.py +0 -59
- letta_client/types/letta_image.py +0 -38
- letta_client/types/letta_message_content_union.py +0 -13
- letta_client/types/letta_message_union.py +0 -20
- letta_client/types/letta_ping.py +0 -26
- letta_client/types/letta_request.py +0 -54
- letta_client/types/letta_request_config.py +0 -38
- letta_client/types/letta_response.py +0 -40
- letta_client/types/letta_stop_reason.py +0 -32
- letta_client/types/letta_streaming_request.py +0 -59
- letta_client/types/letta_usage_statistics.py +0 -59
- letta_client/types/letta_user_message_content_union.py +0 -7
- letta_client/types/llm_config_compatibility_type.py +0 -5
- letta_client/types/llm_config_model_endpoint_type.py +0 -31
- letta_client/types/llm_config_reasoning_effort.py +0 -5
- letta_client/types/local_sandbox_config.py +0 -38
- letta_client/types/manager_type.py +0 -7
- letta_client/types/max_count_per_step_tool_rule_schema.py +0 -21
- letta_client/types/mcp_server_type.py +0 -5
- letta_client/types/mcp_tool.py +0 -38
- letta_client/types/memory.py +0 -38
- letta_client/types/message.py +0 -139
- letta_client/types/message_content_item.py +0 -20
- letta_client/types/message_create.py +0 -58
- letta_client/types/message_create_content.py +0 -6
- letta_client/types/message_create_role.py +0 -5
- letta_client/types/message_role.py +0 -5
- letta_client/types/message_schema.py +0 -29
- letta_client/types/message_type.py +0 -16
- letta_client/types/not_found_error_body.py +0 -19
- letta_client/types/not_found_error_body_message.py +0 -11
- letta_client/types/omitted_reasoning_content.py +0 -19
- letta_client/types/openai_types_chat_chat_completion_message_tool_call_param_function.py +0 -20
- letta_client/types/openai_types_chat_chat_completion_named_tool_choice_param_function.py +0 -19
- letta_client/types/openai_types_chat_completion_create_params_function.py +0 -21
- letta_client/types/organization.py +0 -38
- letta_client/types/organization_create.py +0 -27
- letta_client/types/organization_sources_stats.py +0 -42
- letta_client/types/organization_update.py +0 -27
- letta_client/types/parameter_properties.py +0 -20
- letta_client/types/parameters_schema.py +0 -22
- letta_client/types/payment_required_error_body.py +0 -20
- letta_client/types/provider.py +0 -65
- letta_client/types/provider_check.py +0 -38
- letta_client/types/reasoning_content.py +0 -33
- letta_client/types/reasoning_message.py +0 -44
- letta_client/types/reasoning_message_source.py +0 -5
- letta_client/types/redacted_reasoning_content.py +0 -23
- letta_client/types/response_format_json_object.py +0 -19
- letta_client/types/response_format_json_schema.py +0 -21
- letta_client/types/response_format_text.py +0 -19
- letta_client/types/round_robin_manager.py +0 -23
- letta_client/types/round_robin_manager_update.py +0 -23
- letta_client/types/run.py +0 -99
- letta_client/types/sandbox_config.py +0 -54
- letta_client/types/sandbox_config_create.py +0 -23
- letta_client/types/sandbox_config_create_config.py +0 -7
- letta_client/types/sandbox_config_update.py +0 -27
- letta_client/types/sandbox_config_update_config.py +0 -7
- letta_client/types/sandbox_environment_variable.py +0 -63
- letta_client/types/sandbox_environment_variable_create.py +0 -32
- letta_client/types/sandbox_environment_variable_update.py +0 -32
- letta_client/types/sandbox_type.py +0 -5
- letta_client/types/sleeptime_manager.py +0 -28
- letta_client/types/sleeptime_manager_update.py +0 -28
- letta_client/types/source.py +0 -81
- letta_client/types/source_create.py +0 -57
- letta_client/types/source_stats.py +0 -47
- letta_client/types/source_update.py +0 -47
- letta_client/types/sse_server_config.py +0 -55
- letta_client/types/stdio_server_config.py +0 -39
- letta_client/types/step_feedback.py +0 -5
- letta_client/types/streamable_http_server_config.py +0 -55
- letta_client/types/supervisor_manager.py +0 -23
- letta_client/types/supervisor_manager_update.py +0 -23
- letta_client/types/system_message.py +0 -41
- letta_client/types/tag_schema.py +0 -19
- letta_client/types/text_content.py +0 -23
- letta_client/types/tool_annotations.py +0 -36
- letta_client/types/tool_call.py +0 -21
- letta_client/types/tool_call_content.py +0 -33
- letta_client/types/tool_call_delta.py +0 -21
- letta_client/types/tool_call_message.py +0 -39
- letta_client/types/tool_call_message_tool_call.py +0 -7
- letta_client/types/tool_create.py +0 -58
- letta_client/types/tool_env_var_schema.py +0 -23
- letta_client/types/tool_json_schema.py +0 -24
- letta_client/types/tool_return.py +0 -33
- letta_client/types/tool_return_content.py +0 -33
- letta_client/types/tool_return_message_status.py +0 -5
- letta_client/types/tool_return_status.py +0 -5
- letta_client/types/tool_schema.py +0 -35
- letta_client/types/update_assistant_message.py +0 -24
- letta_client/types/update_assistant_message_content.py +0 -6
- letta_client/types/update_reasoning_message.py +0 -20
- letta_client/types/update_ssemcp_server.py +0 -41
- letta_client/types/update_stdio_mcp_server.py +0 -32
- letta_client/types/update_streamable_httpmcp_server.py +0 -46
- letta_client/types/update_system_message.py +0 -23
- letta_client/types/update_user_message.py +0 -24
- letta_client/types/update_user_message_content.py +0 -6
- letta_client/types/url_image.py +0 -23
- letta_client/types/usage_statistics.py +0 -25
- letta_client/types/usage_statistics_completion_token_details.py +0 -19
- letta_client/types/usage_statistics_prompt_token_details.py +0 -19
- letta_client/types/user.py +0 -52
- letta_client/types/user_create.py +0 -22
- letta_client/types/user_message.py +0 -42
- letta_client/types/user_message_content.py +0 -6
- letta_client/types/user_update.py +0 -27
- letta_client/types/validation_error.py +0 -22
- letta_client/types/validation_error_loc_item.py +0 -5
- letta_client/types/voice_sleeptime_manager.py +0 -33
- letta_client/types/voice_sleeptime_manager_update.py +0 -33
- letta_client/types/web_search_options.py +0 -22
- letta_client/types/web_search_options_search_context_size.py +0 -5
- letta_client/types/web_search_options_user_location.py +0 -21
- letta_client/types/web_search_options_user_location_approximate.py +0 -22
- letta_client/version.py +0 -3
- letta_client/voice/__init__.py +0 -2
- letta_client/voice/client.py +0 -177
- letta_client-0.1.232.dist-info/METADATA +0 -190
- letta_client-0.1.232.dist-info/RECORD +0 -454
|
@@ -1,37 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
import
|
|
5
|
-
import typing
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
7
5
|
|
|
6
|
+
from .._models import BaseModel
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
"""
|
|
11
|
-
Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.
|
|
12
|
-
"""
|
|
8
|
+
__all__ = ["MaxCountPerStepToolRule"]
|
|
13
9
|
|
|
14
|
-
tool_name: str = pydantic.Field()
|
|
15
|
-
"""
|
|
16
|
-
The name of the tool. Must exist in the database for the user's organization.
|
|
17
|
-
"""
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
11
|
+
class MaxCountPerStepToolRule(BaseModel):
|
|
21
12
|
"""
|
|
22
|
-
|
|
13
|
+
Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.
|
|
23
14
|
"""
|
|
24
15
|
|
|
25
|
-
max_count_limit: int
|
|
16
|
+
max_count_limit: int
|
|
26
17
|
"""
|
|
27
|
-
The max limit for the total number of times this tool can be invoked in a single
|
|
18
|
+
The max limit for the total number of times this tool can be invoked in a single
|
|
19
|
+
step.
|
|
28
20
|
"""
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
tool_name: str
|
|
23
|
+
"""The name of the tool. Must exist in the database for the user's organization."""
|
|
24
|
+
|
|
25
|
+
prompt_template: Optional[str] = None
|
|
26
|
+
"""Optional template string (ignored)."""
|
|
33
27
|
|
|
34
|
-
|
|
35
|
-
frozen = True
|
|
36
|
-
smart_union = True
|
|
37
|
-
extra = pydantic.Extra.allow
|
|
28
|
+
type: Optional[Literal["max_count_per_step"]] = None
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["MaxCountPerStepToolRuleParam"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MaxCountPerStepToolRuleParam(TypedDict, total=False):
|
|
12
|
+
"""
|
|
13
|
+
Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
max_count_limit: Required[int]
|
|
17
|
+
"""
|
|
18
|
+
The max limit for the total number of times this tool can be invoked in a single
|
|
19
|
+
step.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
tool_name: Required[str]
|
|
23
|
+
"""The name of the tool. Must exist in the database for the user's organization."""
|
|
24
|
+
|
|
25
|
+
prompt_template: Optional[str]
|
|
26
|
+
"""Optional template string (ignored)."""
|
|
27
|
+
|
|
28
|
+
type: Literal["max_count_per_step"]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union
|
|
6
|
+
from typing_extensions import Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from .create_sse_mcp_server_param import CreateSseMcpServerParam
|
|
9
|
+
from .create_stdio_mcp_server_param import CreateStdioMcpServerParam
|
|
10
|
+
from .create_streamable_http_mcp_server_param import CreateStreamableHTTPMcpServerParam
|
|
11
|
+
|
|
12
|
+
__all__ = ["McpServerCreateParams", "Config"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class McpServerCreateParams(TypedDict, total=False):
|
|
16
|
+
config: Required[Config]
|
|
17
|
+
"""The MCP server configuration (Stdio, SSE, or Streamable HTTP)"""
|
|
18
|
+
|
|
19
|
+
server_name: Required[str]
|
|
20
|
+
"""The name of the MCP server"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Config: TypeAlias = Union[CreateStdioMcpServerParam, CreateSseMcpServerParam, CreateStreamableHTTPMcpServerParam]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .sse_mcp_server import SseMcpServer
|
|
7
|
+
from .stdio_mcp_server import StdioMcpServer
|
|
8
|
+
from .streamable_http_mcp_server import StreamableHTTPMcpServer
|
|
9
|
+
|
|
10
|
+
__all__ = ["McpServerCreateResponse"]
|
|
11
|
+
|
|
12
|
+
McpServerCreateResponse: TypeAlias = Union[StdioMcpServer, SseMcpServer, StreamableHTTPMcpServer]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Union
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .sse_mcp_server import SseMcpServer
|
|
7
|
+
from .stdio_mcp_server import StdioMcpServer
|
|
8
|
+
from .streamable_http_mcp_server import StreamableHTTPMcpServer
|
|
9
|
+
|
|
10
|
+
__all__ = ["McpServerListResponse", "McpServerListResponseItem"]
|
|
11
|
+
|
|
12
|
+
McpServerListResponseItem: TypeAlias = Union[StdioMcpServer, SseMcpServer, StreamableHTTPMcpServer]
|
|
13
|
+
|
|
14
|
+
McpServerListResponse: TypeAlias = List[McpServerListResponseItem]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["McpServerRefreshParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class McpServerRefreshParams(TypedDict, total=False):
|
|
12
|
+
agent_id: Optional[str]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .sse_mcp_server import SseMcpServer
|
|
7
|
+
from .stdio_mcp_server import StdioMcpServer
|
|
8
|
+
from .streamable_http_mcp_server import StreamableHTTPMcpServer
|
|
9
|
+
|
|
10
|
+
__all__ = ["McpServerRetrieveResponse"]
|
|
11
|
+
|
|
12
|
+
McpServerRetrieveResponse: TypeAlias = Union[StdioMcpServer, SseMcpServer, StreamableHTTPMcpServer]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Optional
|
|
6
|
+
from typing_extensions import Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from .update_sse_mcp_server_param import UpdateSseMcpServerParam
|
|
9
|
+
from .update_stdio_mcp_server_param import UpdateStdioMcpServerParam
|
|
10
|
+
from .update_streamable_http_mcp_server_param import UpdateStreamableHTTPMcpServerParam
|
|
11
|
+
|
|
12
|
+
__all__ = ["McpServerUpdateParams", "Config"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class McpServerUpdateParams(TypedDict, total=False):
|
|
16
|
+
config: Required[Config]
|
|
17
|
+
"""The MCP server configuration updates (Stdio, SSE, or Streamable HTTP)"""
|
|
18
|
+
|
|
19
|
+
server_name: Optional[str]
|
|
20
|
+
"""The name of the MCP server"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Config: TypeAlias = Union[UpdateStdioMcpServerParam, UpdateSseMcpServerParam, UpdateStreamableHTTPMcpServerParam]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .sse_mcp_server import SseMcpServer
|
|
7
|
+
from .stdio_mcp_server import StdioMcpServer
|
|
8
|
+
from .streamable_http_mcp_server import StreamableHTTPMcpServer
|
|
9
|
+
|
|
10
|
+
__all__ = ["McpServerUpdateResponse"]
|
|
11
|
+
|
|
12
|
+
McpServerUpdateResponse: TypeAlias = Union[StdioMcpServer, SseMcpServer, StreamableHTTPMcpServer]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from ..tool import Tool
|
|
7
|
+
|
|
8
|
+
__all__ = ["ToolListResponse"]
|
|
9
|
+
|
|
10
|
+
ToolListResponse: TypeAlias = List[Tool]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict
|
|
6
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["ToolRunParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ToolRunParams(TypedDict, total=False):
|
|
12
|
+
mcp_server_id: Required[str]
|
|
13
|
+
|
|
14
|
+
args: Dict[str, object]
|
|
15
|
+
"""Arguments to pass to the tool"""
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Iterable, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .letta_message_content_union_param import LettaMessageContentUnionParam
|
|
9
|
+
|
|
10
|
+
__all__ = ["MessageCreateParam"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class MessageCreateParam(TypedDict, total=False):
|
|
14
|
+
"""Request to create a message"""
|
|
15
|
+
|
|
16
|
+
content: Required[Union[Iterable[LettaMessageContentUnionParam], str]]
|
|
17
|
+
"""The content of the message."""
|
|
18
|
+
|
|
19
|
+
role: Required[Literal["user", "system", "assistant"]]
|
|
20
|
+
"""The role of the participant."""
|
|
21
|
+
|
|
22
|
+
batch_item_id: Optional[str]
|
|
23
|
+
"""The id of the LLMBatchItem that this message is associated with"""
|
|
24
|
+
|
|
25
|
+
group_id: Optional[str]
|
|
26
|
+
"""The multi-agent group that the message was sent in"""
|
|
27
|
+
|
|
28
|
+
name: Optional[str]
|
|
29
|
+
"""The name of the participant."""
|
|
30
|
+
|
|
31
|
+
otid: Optional[str]
|
|
32
|
+
"""The offline threading id associated with this message"""
|
|
33
|
+
|
|
34
|
+
sender_id: Optional[str]
|
|
35
|
+
"""The id of the sender of the message, can be an identity id or agent id"""
|
|
36
|
+
|
|
37
|
+
type: Optional[Literal["message"]]
|
|
38
|
+
"""The message type to be created."""
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["MessageListParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class MessageListParams(TypedDict, total=False):
|
|
12
|
+
after: Optional[str]
|
|
13
|
+
"""Message ID cursor for pagination.
|
|
14
|
+
|
|
15
|
+
Returns messages that come after this message ID in the specified sort order
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
before: Optional[str]
|
|
19
|
+
"""Message ID cursor for pagination.
|
|
20
|
+
|
|
21
|
+
Returns messages that come before this message ID in the specified sort order
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
conversation_id: Optional[str]
|
|
25
|
+
"""Conversation ID to filter messages by"""
|
|
26
|
+
|
|
27
|
+
limit: Optional[int]
|
|
28
|
+
"""Maximum number of messages to return"""
|
|
29
|
+
|
|
30
|
+
order: Literal["asc", "desc"]
|
|
31
|
+
"""Sort order for messages by creation time.
|
|
32
|
+
|
|
33
|
+
'asc' for oldest first, 'desc' for newest first
|
|
34
|
+
"""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .agents.message import Message
|
|
7
|
+
|
|
8
|
+
__all__ = ["MessageListResponse"]
|
|
9
|
+
|
|
10
|
+
MessageListResponse: TypeAlias = List[Message]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .agents.message import Message
|
|
7
|
+
|
|
8
|
+
__all__ = ["MessageRetrieveResponse"]
|
|
9
|
+
|
|
10
|
+
MessageRetrieveResponse: TypeAlias = List[Message]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Optional
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
from .._utils import PropertyInfo
|
|
10
|
+
|
|
11
|
+
__all__ = ["MessageSearchParams"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class MessageSearchParams(TypedDict, total=False):
|
|
15
|
+
query: Required[str]
|
|
16
|
+
"""Text query for full-text search"""
|
|
17
|
+
|
|
18
|
+
agent_id: Optional[str]
|
|
19
|
+
"""Filter messages by agent ID"""
|
|
20
|
+
|
|
21
|
+
conversation_id: Optional[str]
|
|
22
|
+
"""Filter messages by conversation ID"""
|
|
23
|
+
|
|
24
|
+
end_date: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
25
|
+
"""Filter messages created on or before this date"""
|
|
26
|
+
|
|
27
|
+
limit: int
|
|
28
|
+
"""Maximum number of results to return"""
|
|
29
|
+
|
|
30
|
+
search_mode: Literal["vector", "fts", "hybrid"]
|
|
31
|
+
"""Search mode to use"""
|
|
32
|
+
|
|
33
|
+
start_date: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
34
|
+
"""Filter messages created after this date"""
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Union, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
|
6
|
+
|
|
7
|
+
from .._utils import PropertyInfo
|
|
8
|
+
from .._models import BaseModel
|
|
9
|
+
from .agents.letta_user_message_content_union import LettaUserMessageContentUnion
|
|
10
|
+
from .agents.letta_assistant_message_content_union import LettaAssistantMessageContentUnion
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"MessageSearchResponse",
|
|
14
|
+
"MessageSearchResponseItem",
|
|
15
|
+
"MessageSearchResponseItemSystemMessageListResult",
|
|
16
|
+
"MessageSearchResponseItemUserMessageListResult",
|
|
17
|
+
"MessageSearchResponseItemReasoningMessageListResult",
|
|
18
|
+
"MessageSearchResponseItemAssistantMessageListResult",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class MessageSearchResponseItemSystemMessageListResult(BaseModel):
|
|
23
|
+
"""System message list result with agent context.
|
|
24
|
+
|
|
25
|
+
Shape is identical to UpdateSystemMessage but includes the owning agent_id and message id.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
content: str
|
|
29
|
+
"""
|
|
30
|
+
The message content sent by the system (can be a string or an array of
|
|
31
|
+
multi-modal content parts)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
created_at: datetime
|
|
35
|
+
"""The time the message was created in ISO format."""
|
|
36
|
+
|
|
37
|
+
message_id: str
|
|
38
|
+
"""The unique identifier of the message."""
|
|
39
|
+
|
|
40
|
+
agent_id: Optional[str] = None
|
|
41
|
+
"""The unique identifier of the agent that owns the message."""
|
|
42
|
+
|
|
43
|
+
message_type: Optional[Literal["system_message"]] = None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class MessageSearchResponseItemUserMessageListResult(BaseModel):
|
|
47
|
+
"""User message list result with agent context.
|
|
48
|
+
|
|
49
|
+
Shape is identical to UpdateUserMessage but includes the owning agent_id and message id.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
content: Union[List[LettaUserMessageContentUnion], str]
|
|
53
|
+
"""
|
|
54
|
+
The message content sent by the user (can be a string or an array of multi-modal
|
|
55
|
+
content parts)
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
created_at: datetime
|
|
59
|
+
"""The time the message was created in ISO format."""
|
|
60
|
+
|
|
61
|
+
message_id: str
|
|
62
|
+
"""The unique identifier of the message."""
|
|
63
|
+
|
|
64
|
+
agent_id: Optional[str] = None
|
|
65
|
+
"""The unique identifier of the agent that owns the message."""
|
|
66
|
+
|
|
67
|
+
message_type: Optional[Literal["user_message"]] = None
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class MessageSearchResponseItemReasoningMessageListResult(BaseModel):
|
|
71
|
+
"""Reasoning message list result with agent context.
|
|
72
|
+
|
|
73
|
+
Shape is identical to UpdateReasoningMessage but includes the owning agent_id and message id.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
created_at: datetime
|
|
77
|
+
"""The time the message was created in ISO format."""
|
|
78
|
+
|
|
79
|
+
message_id: str
|
|
80
|
+
"""The unique identifier of the message."""
|
|
81
|
+
|
|
82
|
+
reasoning: str
|
|
83
|
+
|
|
84
|
+
agent_id: Optional[str] = None
|
|
85
|
+
"""The unique identifier of the agent that owns the message."""
|
|
86
|
+
|
|
87
|
+
message_type: Optional[Literal["reasoning_message"]] = None
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class MessageSearchResponseItemAssistantMessageListResult(BaseModel):
|
|
91
|
+
"""Assistant message list result with agent context.
|
|
92
|
+
|
|
93
|
+
Shape is identical to UpdateAssistantMessage but includes the owning agent_id and message id.
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
content: Union[List[LettaAssistantMessageContentUnion], str]
|
|
97
|
+
"""
|
|
98
|
+
The message content sent by the assistant (can be a string or an array of
|
|
99
|
+
content parts)
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
created_at: datetime
|
|
103
|
+
"""The time the message was created in ISO format."""
|
|
104
|
+
|
|
105
|
+
message_id: str
|
|
106
|
+
"""The unique identifier of the message."""
|
|
107
|
+
|
|
108
|
+
agent_id: Optional[str] = None
|
|
109
|
+
"""The unique identifier of the agent that owns the message."""
|
|
110
|
+
|
|
111
|
+
message_type: Optional[Literal["assistant_message"]] = None
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
MessageSearchResponseItem: TypeAlias = Annotated[
|
|
115
|
+
Union[
|
|
116
|
+
MessageSearchResponseItemSystemMessageListResult,
|
|
117
|
+
MessageSearchResponseItemUserMessageListResult,
|
|
118
|
+
MessageSearchResponseItemReasoningMessageListResult,
|
|
119
|
+
MessageSearchResponseItemAssistantMessageListResult,
|
|
120
|
+
],
|
|
121
|
+
PropertyInfo(discriminator="message_type"),
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
MessageSearchResponse: TypeAlias = List[MessageSearchResponseItem]
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union, Optional
|
|
4
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from .._utils import PropertyInfo
|
|
9
|
+
from .._models import BaseModel
|
|
10
|
+
from .provider_type import ProviderType
|
|
11
|
+
from .provider_category import ProviderCategory
|
|
12
|
+
from .text_response_format import TextResponseFormat
|
|
13
|
+
from .json_object_response_format import JsonObjectResponseFormat
|
|
14
|
+
from .json_schema_response_format import JsonSchemaResponseFormat
|
|
15
|
+
|
|
16
|
+
__all__ = ["Model", "ResponseFormat"]
|
|
17
|
+
|
|
18
|
+
ResponseFormat: TypeAlias = Annotated[
|
|
19
|
+
Union[TextResponseFormat, JsonSchemaResponseFormat, JsonObjectResponseFormat, None],
|
|
20
|
+
PropertyInfo(discriminator="type"),
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Model(BaseModel):
|
|
25
|
+
context_window: int
|
|
26
|
+
"""Deprecated: Use 'max_context_window' field instead.
|
|
27
|
+
|
|
28
|
+
The context window size for the model.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
max_context_window: int
|
|
32
|
+
"""The maximum context window for the model"""
|
|
33
|
+
|
|
34
|
+
model: str
|
|
35
|
+
"""Deprecated: Use 'name' field instead. LLM model name."""
|
|
36
|
+
|
|
37
|
+
api_model_endpoint_type: Literal[
|
|
38
|
+
"openai",
|
|
39
|
+
"anthropic",
|
|
40
|
+
"google_ai",
|
|
41
|
+
"google_vertex",
|
|
42
|
+
"azure",
|
|
43
|
+
"groq",
|
|
44
|
+
"ollama",
|
|
45
|
+
"webui",
|
|
46
|
+
"webui-legacy",
|
|
47
|
+
"lmstudio",
|
|
48
|
+
"lmstudio-legacy",
|
|
49
|
+
"lmstudio-chatcompletions",
|
|
50
|
+
"llamacpp",
|
|
51
|
+
"koboldcpp",
|
|
52
|
+
"vllm",
|
|
53
|
+
"hugging-face",
|
|
54
|
+
"mistral",
|
|
55
|
+
"together",
|
|
56
|
+
"bedrock",
|
|
57
|
+
"deepseek",
|
|
58
|
+
"xai",
|
|
59
|
+
"zai",
|
|
60
|
+
"chatgpt_oauth",
|
|
61
|
+
] = FieldInfo(alias="model_endpoint_type")
|
|
62
|
+
"""Deprecated: Use 'provider_type' field instead. The endpoint type for the model."""
|
|
63
|
+
|
|
64
|
+
name: str
|
|
65
|
+
"""The actual model name used by the provider"""
|
|
66
|
+
|
|
67
|
+
provider_type: ProviderType
|
|
68
|
+
"""The type of the provider"""
|
|
69
|
+
|
|
70
|
+
compatibility_type: Optional[Literal["gguf", "mlx"]] = None
|
|
71
|
+
"""Deprecated: The framework compatibility type for the model."""
|
|
72
|
+
|
|
73
|
+
display_name: Optional[str] = None
|
|
74
|
+
"""A human-friendly display name for the model."""
|
|
75
|
+
|
|
76
|
+
effort: Optional[Literal["low", "medium", "high"]] = None
|
|
77
|
+
"""The effort level for Anthropic Opus 4.5 model (controls token spending).
|
|
78
|
+
|
|
79
|
+
Not setting this gives similar performance to 'high'.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
enable_reasoner: Optional[bool] = None
|
|
83
|
+
"""
|
|
84
|
+
Deprecated: Whether or not the model should use extended thinking if it is a
|
|
85
|
+
'reasoning' style model.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
frequency_penalty: Optional[float] = None
|
|
89
|
+
"""
|
|
90
|
+
Deprecated: Positive values penalize new tokens based on their existing
|
|
91
|
+
frequency in the text so far.
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
handle: Optional[str] = None
|
|
95
|
+
"""The handle for this config, in the format provider/model-name."""
|
|
96
|
+
|
|
97
|
+
max_reasoning_tokens: Optional[int] = None
|
|
98
|
+
"""Deprecated: Configurable thinking budget for extended thinking."""
|
|
99
|
+
|
|
100
|
+
max_tokens: Optional[int] = None
|
|
101
|
+
"""Deprecated: The maximum number of tokens to generate."""
|
|
102
|
+
|
|
103
|
+
api_model_endpoint: Optional[str] = FieldInfo(alias="model_endpoint", default=None)
|
|
104
|
+
"""Deprecated: The endpoint for the model."""
|
|
105
|
+
|
|
106
|
+
api_model_type: Optional[Literal["llm"]] = FieldInfo(alias="model_type", default=None)
|
|
107
|
+
"""Type of model (llm or embedding)"""
|
|
108
|
+
|
|
109
|
+
api_model_wrapper: Optional[str] = FieldInfo(alias="model_wrapper", default=None)
|
|
110
|
+
"""Deprecated: The wrapper for the model."""
|
|
111
|
+
|
|
112
|
+
parallel_tool_calls: Optional[bool] = None
|
|
113
|
+
"""Deprecated: If set to True, enables parallel tool calling."""
|
|
114
|
+
|
|
115
|
+
provider_category: Optional[ProviderCategory] = None
|
|
116
|
+
"""Deprecated: The provider category for the model."""
|
|
117
|
+
|
|
118
|
+
provider_name: Optional[str] = None
|
|
119
|
+
"""The provider name for the model."""
|
|
120
|
+
|
|
121
|
+
put_inner_thoughts_in_kwargs: Optional[bool] = None
|
|
122
|
+
"""Deprecated: Puts 'inner_thoughts' as a kwarg in the function call."""
|
|
123
|
+
|
|
124
|
+
reasoning_effort: Optional[Literal["none", "minimal", "low", "medium", "high", "xhigh"]] = None
|
|
125
|
+
"""Deprecated: The reasoning effort to use when generating text reasoning models."""
|
|
126
|
+
|
|
127
|
+
response_format: Optional[ResponseFormat] = None
|
|
128
|
+
"""The response format for the model's output.
|
|
129
|
+
|
|
130
|
+
Supports text, json_object, and json_schema (structured outputs). Can be set via
|
|
131
|
+
model_settings.
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
strict: Optional[bool] = None
|
|
135
|
+
"""Enable strict mode for tool calling.
|
|
136
|
+
|
|
137
|
+
When true, tool schemas include strict: true and additionalProperties: false,
|
|
138
|
+
guaranteeing tool outputs match JSON schemas.
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
temperature: Optional[float] = None
|
|
142
|
+
"""Deprecated: The temperature to use when generating text with the model."""
|
|
143
|
+
|
|
144
|
+
tier: Optional[str] = None
|
|
145
|
+
"""Deprecated: The cost tier for the model (cloud only)."""
|
|
146
|
+
|
|
147
|
+
verbosity: Optional[Literal["low", "medium", "high"]] = None
|
|
148
|
+
"""Deprecated: Soft control for how verbose model output should be."""
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List, Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
from .provider_type import ProviderType
|
|
9
|
+
from .provider_category import ProviderCategory
|
|
10
|
+
|
|
11
|
+
__all__ = ["ModelListParams"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ModelListParams(TypedDict, total=False):
|
|
15
|
+
provider_category: Optional[List[ProviderCategory]]
|
|
16
|
+
|
|
17
|
+
provider_name: Optional[str]
|
|
18
|
+
|
|
19
|
+
provider_type: Optional[ProviderType]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .model import Model
|
|
7
|
+
|
|
8
|
+
__all__ = ["ModelListResponse"]
|
|
9
|
+
|
|
10
|
+
ModelListResponse: TypeAlias = List[Model]
|