letta-client 0.0.1285__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 +1000 -0
- letta_client/agents/__init__.py +358 -0
- letta_client/agents/archival_memory/__init__.py +2 -0
- letta_client/agents/archival_memory/client.py +466 -0
- letta_client/agents/client.py +1598 -0
- letta_client/agents/context/__init__.py +2 -0
- letta_client/agents/context/client.py +147 -0
- letta_client/agents/core_memory/__init__.py +2 -0
- letta_client/agents/core_memory/client.py +878 -0
- letta_client/agents/memory_variables/__init__.py +5 -0
- letta_client/agents/memory_variables/client.py +150 -0
- letta_client/agents/memory_variables/types/__init__.py +5 -0
- letta_client/agents/memory_variables/types/memory_variables_list_response.py +19 -0
- letta_client/agents/messages/__init__.py +5 -0
- letta_client/agents/messages/client.py +1061 -0
- letta_client/agents/messages/types/__init__.py +6 -0
- letta_client/agents/messages/types/letta_streaming_response.py +20 -0
- letta_client/agents/messages/types/message_update_content.py +6 -0
- letta_client/agents/sources/__init__.py +2 -0
- letta_client/agents/sources/client.py +406 -0
- letta_client/agents/templates/__init__.py +5 -0
- letta_client/agents/templates/client.py +573 -0
- letta_client/agents/templates/types/__init__.py +6 -0
- letta_client/agents/templates/types/templates_create_response.py +22 -0
- letta_client/agents/templates/types/templates_migrate_response.py +19 -0
- letta_client/agents/tools/__init__.py +2 -0
- letta_client/agents/tools/client.py +406 -0
- letta_client/agents/types/__init__.py +565 -0
- letta_client/agents/types/agents_search_request_search_item.py +10 -0
- letta_client/agents/types/agents_search_request_search_item_field.py +21 -0
- letta_client/agents/types/agents_search_request_search_item_one.py +22 -0
- letta_client/agents/types/agents_search_request_search_item_one_operator.py +5 -0
- letta_client/agents/types/agents_search_request_search_item_zero.py +20 -0
- letta_client/agents/types/agents_search_response.py +23 -0
- letta_client/agents/types/agents_search_response_agents_item.py +63 -0
- letta_client/agents/types/agents_search_response_agents_item_agent_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_base_template_id.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_base_template_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_created_at.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_created_at_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_created_by_id.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_created_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_description.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_description_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config.py +48 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_azure_deployment.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_azure_deployment_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_azure_endpoint.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_azure_endpoint_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_azure_version.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_azure_version_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_embedding_chunk_size.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_embedding_chunk_size_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_embedding_endpoint.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_embedding_endpoint_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_embedding_endpoint_type.py +27 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_handle.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_embedding_config_handle_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_last_updated_by_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_last_updated_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config.py +46 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_handle.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_handle_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_max_tokens.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_max_tokens_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_model_endpoint.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_model_endpoint_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_model_endpoint_type.py +27 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_model_wrapper.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_model_wrapper_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_put_inner_thoughts_in_kwargs.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_put_inner_thoughts_in_kwargs_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_llm_config_temperature.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory.py +24 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item.py +57 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_created_by_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_created_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_description.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_description_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_id.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_is_template.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_label.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_label_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_last_updated_by_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_last_updated_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_limit.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_metadata.py +12 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_metadata_item.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_name.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_name_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_organization_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_blocks_item_organization_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_memory_prompt_template.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_message_ids.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_message_ids_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_metadata.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_metadata_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_organization_id.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_organization_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_project_id.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_project_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item.py +51 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_created_at.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_created_at_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_created_by_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_created_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_description.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_description_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config.py +52 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_azure_deployment.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_azure_deployment_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_azure_endpoint.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_azure_endpoint_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_azure_version.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_azure_version_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_embedding_chunk_size.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_embedding_chunk_size_item.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_embedding_endpoint.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_embedding_endpoint_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_embedding_endpoint_type.py +27 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_handle.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_embedding_config_handle_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_id.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_last_updated_by_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_last_updated_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_metadata.py +12 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_metadata_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_organization_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_organization_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_updated_at.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_sources_item_updated_at_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_template_id.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_template_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item.py +53 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_created_at.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_created_at_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_created_by_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_created_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_description.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_description_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_id.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id_item.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_organization_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_organization_id_item.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_updated_at.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_exec_environment_variables_item_updated_at_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item.py +8 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_child_output_mapping.py +34 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_child_output_mapping_default_child.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_child_output_mapping_default_child_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_child_output_mapping_require_output_mapping.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_child_output_mapping_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_children.py +24 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_children_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item.py +22 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_child_output_mapping.py +34 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_child_output_mapping_default_child.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_child_output_mapping_default_child_item.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_child_output_mapping_require_output_mapping.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_child_output_mapping_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_children.py +24 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_children_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_one.py +23 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_one_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_two.py +23 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_two_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_one.py +23 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_one_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_two.py +23 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_two_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item.py +47 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_created_by_id.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_created_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_description.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_description_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_json_schema.py +12 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_json_schema_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_last_updated_by_id.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_last_updated_by_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_name.py +8 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_name_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_organization_id.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_organization_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_source_code.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_source_code_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_source_type.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_source_type_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_tools_item_tool_type.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_updated_at.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_updated_at_item.py +5 -0
- letta_client/agents/types/create_agent_request_tool_rules_item.py +9 -0
- letta_client/agents/types/update_agent_tool_rules_item.py +9 -0
- letta_client/base_client.py +184 -0
- letta_client/blocks/__init__.py +2 -0
- letta_client/blocks/client.py +933 -0
- letta_client/client.py +76 -0
- letta_client/core/__init__.py +51 -0
- letta_client/core/api_error.py +15 -0
- letta_client/core/client_wrapper.py +65 -0
- letta_client/core/datetime_utils.py +28 -0
- letta_client/core/file.py +67 -0
- letta_client/core/http_client.py +499 -0
- letta_client/core/jsonable_encoder.py +101 -0
- letta_client/core/pydantic_utilities.py +296 -0
- letta_client/core/query_encoder.py +58 -0
- letta_client/core/remove_none_from_dict.py +11 -0
- letta_client/core/request_options.py +35 -0
- letta_client/core/serialization.py +272 -0
- letta_client/core/unchecked_base_model.py +305 -0
- letta_client/environment.py +8 -0
- letta_client/errors/__init__.py +8 -0
- letta_client/errors/conflict_error.py +9 -0
- letta_client/errors/internal_server_error.py +9 -0
- letta_client/errors/not_found_error.py +9 -0
- letta_client/errors/unprocessable_entity_error.py +9 -0
- letta_client/health/__init__.py +2 -0
- letta_client/health/client.py +108 -0
- letta_client/jobs/__init__.py +2 -0
- letta_client/jobs/client.py +503 -0
- letta_client/models/__init__.py +2 -0
- letta_client/models/client.py +201 -0
- letta_client/providers/__init__.py +2 -0
- letta_client/providers/client.py +597 -0
- letta_client/py.typed +0 -0
- letta_client/runs/__init__.py +2 -0
- letta_client/runs/client.py +824 -0
- letta_client/sources/__init__.py +5 -0
- letta_client/sources/client.py +878 -0
- letta_client/sources/files/__init__.py +2 -0
- letta_client/sources/files/client.py +436 -0
- letta_client/sources/passages/__init__.py +2 -0
- letta_client/sources/passages/client.py +145 -0
- letta_client/steps/__init__.py +2 -0
- letta_client/steps/client.py +339 -0
- letta_client/tag/__init__.py +2 -0
- letta_client/tag/client.py +169 -0
- letta_client/templates/__init__.py +327 -0
- letta_client/templates/client.py +198 -0
- letta_client/templates/types/__init__.py +643 -0
- letta_client/templates/types/templates_create_agents_from_template_response.py +22 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py +100 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_agent_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config.py +58 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_type.py +27 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py +50 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_type.py +27 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_temperature.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory.py +26 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item.py +65 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_id.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_is_template.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_limit.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_organization_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_organization_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_prompt_template.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_organization_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_organization_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item.py +59 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config.py +60 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_type.py +27 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_id.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables.py +11 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item.py +61 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_id.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item.py +10 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping.py +36 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_require_output_mapping.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_children.py +24 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_children_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item.py +22 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping.py +38 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_require_output_mapping.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_children.py +24 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_children_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_one.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_one_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_one.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_one_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item.py +59 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_organization_id.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_organization_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_tool_type.py +10 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at_item.py +5 -0
- letta_client/tools/__init__.py +2 -0
- letta_client/tools/client.py +1665 -0
- letta_client/types/__init__.py +321 -0
- letta_client/types/action_model.py +38 -0
- letta_client/types/action_parameters_model.py +26 -0
- letta_client/types/action_response_model.py +26 -0
- letta_client/types/agent_environment_variable.py +63 -0
- letta_client/types/agent_state.py +153 -0
- letta_client/types/agent_state_tool_rules_item.py +9 -0
- letta_client/types/agent_type.py +7 -0
- letta_client/types/app_auth_scheme.py +34 -0
- letta_client/types/app_auth_scheme_auth_mode.py +7 -0
- letta_client/types/app_model.py +44 -0
- letta_client/types/assistant_message.py +24 -0
- letta_client/types/assistant_message_content.py +6 -0
- letta_client/types/audio.py +19 -0
- letta_client/types/auth_request.py +22 -0
- letta_client/types/auth_response.py +29 -0
- letta_client/types/auth_scheme_field.py +30 -0
- letta_client/types/block.py +82 -0
- letta_client/types/block_update.py +56 -0
- letta_client/types/chat_completion_assistant_message_param.py +29 -0
- letta_client/types/chat_completion_assistant_message_param_content.py +8 -0
- letta_client/types/chat_completion_assistant_message_param_content_item.py +9 -0
- letta_client/types/chat_completion_audio_param.py +22 -0
- letta_client/types/chat_completion_audio_param_format.py +5 -0
- letta_client/types/chat_completion_audio_param_voice.py +7 -0
- letta_client/types/chat_completion_content_part_image_param.py +21 -0
- letta_client/types/chat_completion_content_part_input_audio_param.py +21 -0
- letta_client/types/chat_completion_content_part_refusal_param.py +20 -0
- letta_client/types/chat_completion_content_part_text_param.py +20 -0
- letta_client/types/chat_completion_developer_message_param.py +22 -0
- letta_client/types/chat_completion_developer_message_param_content.py +6 -0
- letta_client/types/chat_completion_function_call_option_param.py +19 -0
- letta_client/types/chat_completion_function_message_param.py +21 -0
- letta_client/types/chat_completion_message_tool_call_input.py +24 -0
- letta_client/types/chat_completion_message_tool_call_output.py +22 -0
- letta_client/types/chat_completion_message_tool_call_param.py +24 -0
- letta_client/types/chat_completion_named_tool_choice_param.py +23 -0
- letta_client/types/chat_completion_prediction_content_param.py +21 -0
- letta_client/types/chat_completion_prediction_content_param_content.py +6 -0
- letta_client/types/chat_completion_stream_options_param.py +19 -0
- letta_client/types/chat_completion_system_message_param.py +22 -0
- letta_client/types/chat_completion_system_message_param_content.py +6 -0
- letta_client/types/chat_completion_tool_message_param.py +22 -0
- letta_client/types/chat_completion_tool_message_param_content.py +6 -0
- letta_client/types/chat_completion_tool_param.py +21 -0
- letta_client/types/chat_completion_user_message_param.py +22 -0
- letta_client/types/chat_completion_user_message_param_content.py +6 -0
- letta_client/types/chat_completion_user_message_param_content_item.py +10 -0
- letta_client/types/child_tool_rule.py +32 -0
- letta_client/types/completion_create_params_non_streaming.py +62 -0
- letta_client/types/completion_create_params_non_streaming_function_call.py +8 -0
- letta_client/types/completion_create_params_non_streaming_messages_item.py +18 -0
- letta_client/types/completion_create_params_non_streaming_modalities_item.py +5 -0
- letta_client/types/completion_create_params_non_streaming_model.py +46 -0
- letta_client/types/completion_create_params_non_streaming_reasoning_effort.py +5 -0
- letta_client/types/completion_create_params_non_streaming_response_format.py +10 -0
- letta_client/types/completion_create_params_non_streaming_service_tier.py +5 -0
- letta_client/types/completion_create_params_non_streaming_stop.py +5 -0
- letta_client/types/completion_create_params_non_streaming_tool_choice.py +8 -0
- letta_client/types/completion_create_params_streaming.py +62 -0
- letta_client/types/completion_create_params_streaming_function_call.py +8 -0
- letta_client/types/completion_create_params_streaming_messages_item.py +18 -0
- letta_client/types/completion_create_params_streaming_modalities_item.py +5 -0
- letta_client/types/completion_create_params_streaming_model.py +46 -0
- letta_client/types/completion_create_params_streaming_reasoning_effort.py +5 -0
- letta_client/types/completion_create_params_streaming_response_format.py +10 -0
- letta_client/types/completion_create_params_streaming_service_tier.py +5 -0
- letta_client/types/completion_create_params_streaming_stop.py +5 -0
- letta_client/types/completion_create_params_streaming_tool_choice.py +8 -0
- letta_client/types/conditional_tool_rule.py +42 -0
- letta_client/types/conflict_error_body.py +21 -0
- letta_client/types/context_window_overview.py +108 -0
- letta_client/types/create_block.py +52 -0
- letta_client/types/e_2_b_sandbox_config.py +32 -0
- letta_client/types/embedding_config.py +77 -0
- letta_client/types/embedding_config_embedding_endpoint_type.py +27 -0
- letta_client/types/file_metadata.py +77 -0
- letta_client/types/function_call.py +20 -0
- letta_client/types/function_definition_input.py +22 -0
- letta_client/types/function_definition_output.py +22 -0
- letta_client/types/function_output.py +20 -0
- letta_client/types/function_tool.py +21 -0
- letta_client/types/health.py +24 -0
- letta_client/types/http_validation_error.py +20 -0
- letta_client/types/image_url.py +21 -0
- letta_client/types/image_url_detail.py +5 -0
- letta_client/types/init_tool_rule.py +28 -0
- letta_client/types/input_audio.py +21 -0
- letta_client/types/input_audio_format.py +5 -0
- letta_client/types/internal_server_error_body.py +19 -0
- letta_client/types/job.py +76 -0
- letta_client/types/job_status.py +5 -0
- letta_client/types/job_type.py +5 -0
- letta_client/types/json_schema.py +26 -0
- letta_client/types/letta_message_union.py +13 -0
- letta_client/types/letta_request.py +38 -0
- letta_client/types/letta_request_config.py +32 -0
- letta_client/types/letta_response.py +38 -0
- letta_client/types/letta_usage_statistics.py +48 -0
- letta_client/types/llm_config.py +77 -0
- letta_client/types/llm_config_model_endpoint_type.py +27 -0
- letta_client/types/local_sandbox_config.py +38 -0
- letta_client/types/memory.py +32 -0
- letta_client/types/message.py +102 -0
- letta_client/types/message_create.py +38 -0
- letta_client/types/message_create_content.py +6 -0
- letta_client/types/message_create_role.py +5 -0
- letta_client/types/message_role.py +5 -0
- letta_client/types/not_found_error_body.py +19 -0
- letta_client/types/not_found_error_body_message.py +11 -0
- letta_client/types/openai_types_chat_chat_completion_message_tool_call_function.py +20 -0
- letta_client/types/openai_types_chat_chat_completion_message_tool_call_param_function.py +20 -0
- letta_client/types/openai_types_chat_chat_completion_named_tool_choice_param_function.py +19 -0
- letta_client/types/openai_types_chat_completion_create_params_function.py +21 -0
- letta_client/types/organization.py +33 -0
- letta_client/types/organization_create.py +22 -0
- letta_client/types/passage.py +98 -0
- letta_client/types/pip_requirement.py +27 -0
- letta_client/types/provider.py +38 -0
- letta_client/types/reasoning_message.py +32 -0
- letta_client/types/response_format_json_object.py +19 -0
- letta_client/types/response_format_json_schema.py +21 -0
- letta_client/types/response_format_text.py +19 -0
- letta_client/types/run.py +79 -0
- letta_client/types/sandbox_config.py +54 -0
- letta_client/types/sandbox_config_create.py +23 -0
- letta_client/types/sandbox_config_create_config.py +7 -0
- letta_client/types/sandbox_config_update.py +27 -0
- letta_client/types/sandbox_config_update_config.py +7 -0
- letta_client/types/sandbox_environment_variable.py +63 -0
- letta_client/types/sandbox_environment_variable_create.py +32 -0
- letta_client/types/sandbox_environment_variable_update.py +32 -0
- letta_client/types/sandbox_type.py +5 -0
- letta_client/types/source.py +76 -0
- letta_client/types/step.py +95 -0
- letta_client/types/system_message.py +33 -0
- letta_client/types/system_message_content.py +6 -0
- letta_client/types/terminal_tool_rule.py +28 -0
- letta_client/types/text_content.py +23 -0
- letta_client/types/tool.py +84 -0
- letta_client/types/tool_call.py +21 -0
- letta_client/types/tool_call_delta.py +21 -0
- letta_client/types/tool_call_message.py +33 -0
- letta_client/types/tool_call_message_tool_call.py +7 -0
- letta_client/types/tool_create.py +47 -0
- letta_client/types/tool_return_message.py +41 -0
- letta_client/types/tool_return_message_status.py +5 -0
- letta_client/types/tool_type.py +10 -0
- letta_client/types/usage_statistics.py +21 -0
- letta_client/types/user.py +52 -0
- letta_client/types/user_create.py +22 -0
- letta_client/types/user_message.py +33 -0
- letta_client/types/user_message_content.py +6 -0
- letta_client/types/user_update.py +27 -0
- letta_client/types/validation_error.py +22 -0
- letta_client/types/validation_error_loc_item.py +5 -0
- letta_client/version.py +3 -0
- letta_client-0.0.1285.dist-info/METADATA +189 -0
- letta_client-0.0.1285.dist-info/RECORD +564 -0
- letta_client-0.0.1285.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import inspect
|
|
5
|
+
import typing
|
|
6
|
+
import uuid
|
|
7
|
+
|
|
8
|
+
import typing_extensions
|
|
9
|
+
from pydantic_core import PydanticUndefined
|
|
10
|
+
|
|
11
|
+
import pydantic
|
|
12
|
+
|
|
13
|
+
from .pydantic_utilities import (
|
|
14
|
+
IS_PYDANTIC_V2,
|
|
15
|
+
ModelField,
|
|
16
|
+
UniversalBaseModel,
|
|
17
|
+
get_args,
|
|
18
|
+
get_origin,
|
|
19
|
+
is_literal_type,
|
|
20
|
+
is_union,
|
|
21
|
+
parse_date,
|
|
22
|
+
parse_datetime,
|
|
23
|
+
parse_obj_as,
|
|
24
|
+
)
|
|
25
|
+
from .serialization import get_field_to_alias_mapping
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class UnionMetadata:
|
|
29
|
+
discriminant: str
|
|
30
|
+
|
|
31
|
+
def __init__(self, *, discriminant: str) -> None:
|
|
32
|
+
self.discriminant = discriminant
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
Model = typing.TypeVar("Model", bound=pydantic.BaseModel)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class UncheckedBaseModel(UniversalBaseModel):
|
|
39
|
+
if IS_PYDANTIC_V2:
|
|
40
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow") # type: ignore # Pydantic v2
|
|
41
|
+
else:
|
|
42
|
+
|
|
43
|
+
class Config:
|
|
44
|
+
extra = pydantic.Extra.allow
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def model_construct(
|
|
48
|
+
cls: typing.Type["Model"],
|
|
49
|
+
_fields_set: typing.Optional[typing.Set[str]] = None,
|
|
50
|
+
**values: typing.Any,
|
|
51
|
+
) -> "Model":
|
|
52
|
+
# Fallback construct function to the specified override below.
|
|
53
|
+
return cls.construct(_fields_set=_fields_set, **values)
|
|
54
|
+
|
|
55
|
+
# Allow construct to not validate model
|
|
56
|
+
# Implementation taken from: https://github.com/pydantic/pydantic/issues/1168#issuecomment-817742836
|
|
57
|
+
@classmethod
|
|
58
|
+
def construct(
|
|
59
|
+
cls: typing.Type["Model"],
|
|
60
|
+
_fields_set: typing.Optional[typing.Set[str]] = None,
|
|
61
|
+
**values: typing.Any,
|
|
62
|
+
) -> "Model":
|
|
63
|
+
m = cls.__new__(cls)
|
|
64
|
+
fields_values = {}
|
|
65
|
+
|
|
66
|
+
if _fields_set is None:
|
|
67
|
+
_fields_set = set(values.keys())
|
|
68
|
+
|
|
69
|
+
fields = _get_model_fields(cls)
|
|
70
|
+
populate_by_name = _get_is_populate_by_name(cls)
|
|
71
|
+
field_aliases = get_field_to_alias_mapping(cls)
|
|
72
|
+
|
|
73
|
+
for name, field in fields.items():
|
|
74
|
+
# Key here is only used to pull data from the values dict
|
|
75
|
+
# you should always use the NAME of the field to for field_values, etc.
|
|
76
|
+
# because that's how the object is constructed from a pydantic perspective
|
|
77
|
+
key = field.alias
|
|
78
|
+
if (key is None or field.alias == name) and name in field_aliases:
|
|
79
|
+
key = field_aliases[name]
|
|
80
|
+
|
|
81
|
+
if key is None or (key not in values and populate_by_name): # Added this to allow population by field name
|
|
82
|
+
key = name
|
|
83
|
+
|
|
84
|
+
if key in values:
|
|
85
|
+
if IS_PYDANTIC_V2:
|
|
86
|
+
type_ = field.annotation # type: ignore # Pydantic v2
|
|
87
|
+
else:
|
|
88
|
+
type_ = typing.cast(typing.Type, field.outer_type_) # type: ignore # Pydantic < v1.10.15
|
|
89
|
+
|
|
90
|
+
fields_values[name] = (
|
|
91
|
+
construct_type(object_=values[key], type_=type_) if type_ is not None else values[key]
|
|
92
|
+
)
|
|
93
|
+
_fields_set.add(name)
|
|
94
|
+
else:
|
|
95
|
+
default = _get_field_default(field)
|
|
96
|
+
fields_values[name] = default
|
|
97
|
+
|
|
98
|
+
# If the default values are non-null act like they've been set
|
|
99
|
+
# This effectively allows exclude_unset to work like exclude_none where
|
|
100
|
+
# the latter passes through intentionally set none values.
|
|
101
|
+
if default != None and default != PydanticUndefined:
|
|
102
|
+
_fields_set.add(name)
|
|
103
|
+
|
|
104
|
+
# Add extras back in
|
|
105
|
+
extras = {}
|
|
106
|
+
pydantic_alias_fields = [field.alias for field in fields.values()]
|
|
107
|
+
internal_alias_fields = list(field_aliases.values())
|
|
108
|
+
for key, value in values.items():
|
|
109
|
+
# If the key is not a field by name, nor an alias to a field, then it's extra
|
|
110
|
+
if (key not in pydantic_alias_fields and key not in internal_alias_fields) and key not in fields:
|
|
111
|
+
if IS_PYDANTIC_V2:
|
|
112
|
+
extras[key] = value
|
|
113
|
+
else:
|
|
114
|
+
_fields_set.add(key)
|
|
115
|
+
fields_values[key] = value
|
|
116
|
+
|
|
117
|
+
object.__setattr__(m, "__dict__", fields_values)
|
|
118
|
+
|
|
119
|
+
if IS_PYDANTIC_V2:
|
|
120
|
+
object.__setattr__(m, "__pydantic_private__", None)
|
|
121
|
+
object.__setattr__(m, "__pydantic_extra__", extras)
|
|
122
|
+
object.__setattr__(m, "__pydantic_fields_set__", _fields_set)
|
|
123
|
+
else:
|
|
124
|
+
object.__setattr__(m, "__fields_set__", _fields_set)
|
|
125
|
+
m._init_private_attributes() # type: ignore # Pydantic v1
|
|
126
|
+
return m
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def _convert_undiscriminated_union_type(union_type: typing.Type[typing.Any], object_: typing.Any) -> typing.Any:
|
|
130
|
+
inner_types = get_args(union_type)
|
|
131
|
+
if typing.Any in inner_types:
|
|
132
|
+
return object_
|
|
133
|
+
|
|
134
|
+
for inner_type in inner_types:
|
|
135
|
+
try:
|
|
136
|
+
if inspect.isclass(inner_type) and issubclass(inner_type, pydantic.BaseModel):
|
|
137
|
+
# Attempt a validated parse until one works
|
|
138
|
+
return parse_obj_as(inner_type, object_)
|
|
139
|
+
except Exception:
|
|
140
|
+
continue
|
|
141
|
+
|
|
142
|
+
# If none of the types work, just return the first successful cast
|
|
143
|
+
for inner_type in inner_types:
|
|
144
|
+
try:
|
|
145
|
+
return construct_type(object_=object_, type_=inner_type)
|
|
146
|
+
except Exception:
|
|
147
|
+
continue
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def _convert_union_type(type_: typing.Type[typing.Any], object_: typing.Any) -> typing.Any:
|
|
151
|
+
base_type = get_origin(type_) or type_
|
|
152
|
+
union_type = type_
|
|
153
|
+
if base_type == typing_extensions.Annotated:
|
|
154
|
+
union_type = get_args(type_)[0]
|
|
155
|
+
annotated_metadata = get_args(type_)[1:]
|
|
156
|
+
for metadata in annotated_metadata:
|
|
157
|
+
if isinstance(metadata, UnionMetadata):
|
|
158
|
+
try:
|
|
159
|
+
# Cast to the correct type, based on the discriminant
|
|
160
|
+
for inner_type in get_args(union_type):
|
|
161
|
+
try:
|
|
162
|
+
objects_discriminant = getattr(object_, metadata.discriminant)
|
|
163
|
+
except:
|
|
164
|
+
objects_discriminant = object_[metadata.discriminant]
|
|
165
|
+
if inner_type.__fields__[metadata.discriminant].default == objects_discriminant:
|
|
166
|
+
return construct_type(object_=object_, type_=inner_type)
|
|
167
|
+
except Exception:
|
|
168
|
+
# Allow to fall through to our regular union handling
|
|
169
|
+
pass
|
|
170
|
+
return _convert_undiscriminated_union_type(union_type, object_)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def construct_type(*, type_: typing.Type[typing.Any], object_: typing.Any) -> typing.Any:
|
|
174
|
+
"""
|
|
175
|
+
Here we are essentially creating the same `construct` method in spirit as the above, but for all types, not just
|
|
176
|
+
Pydantic models.
|
|
177
|
+
The idea is to essentially attempt to coerce object_ to type_ (recursively)
|
|
178
|
+
"""
|
|
179
|
+
# Short circuit when dealing with optionals, don't try to coerces None to a type
|
|
180
|
+
if object_ is None:
|
|
181
|
+
return None
|
|
182
|
+
|
|
183
|
+
base_type = get_origin(type_) or type_
|
|
184
|
+
is_annotated = base_type == typing_extensions.Annotated
|
|
185
|
+
maybe_annotation_members = get_args(type_)
|
|
186
|
+
is_annotated_union = is_annotated and is_union(get_origin(maybe_annotation_members[0]))
|
|
187
|
+
|
|
188
|
+
if base_type == typing.Any:
|
|
189
|
+
return object_
|
|
190
|
+
|
|
191
|
+
if base_type == dict:
|
|
192
|
+
if not isinstance(object_, typing.Mapping):
|
|
193
|
+
return object_
|
|
194
|
+
|
|
195
|
+
key_type, items_type = get_args(type_)
|
|
196
|
+
d = {
|
|
197
|
+
construct_type(object_=key, type_=key_type): construct_type(object_=item, type_=items_type)
|
|
198
|
+
for key, item in object_.items()
|
|
199
|
+
}
|
|
200
|
+
return d
|
|
201
|
+
|
|
202
|
+
if base_type == list:
|
|
203
|
+
if not isinstance(object_, list):
|
|
204
|
+
return object_
|
|
205
|
+
|
|
206
|
+
inner_type = get_args(type_)[0]
|
|
207
|
+
return [construct_type(object_=entry, type_=inner_type) for entry in object_]
|
|
208
|
+
|
|
209
|
+
if base_type == set:
|
|
210
|
+
if not isinstance(object_, set) and not isinstance(object_, list):
|
|
211
|
+
return object_
|
|
212
|
+
|
|
213
|
+
inner_type = get_args(type_)[0]
|
|
214
|
+
return {construct_type(object_=entry, type_=inner_type) for entry in object_}
|
|
215
|
+
|
|
216
|
+
if is_union(base_type) or is_annotated_union:
|
|
217
|
+
return _convert_union_type(type_, object_)
|
|
218
|
+
|
|
219
|
+
# Cannot do an `issubclass` with a literal type, let's also just confirm we have a class before this call
|
|
220
|
+
if (
|
|
221
|
+
object_ is not None
|
|
222
|
+
and not is_literal_type(type_)
|
|
223
|
+
and (
|
|
224
|
+
(inspect.isclass(base_type) and issubclass(base_type, pydantic.BaseModel))
|
|
225
|
+
or (
|
|
226
|
+
is_annotated
|
|
227
|
+
and inspect.isclass(maybe_annotation_members[0])
|
|
228
|
+
and issubclass(maybe_annotation_members[0], pydantic.BaseModel)
|
|
229
|
+
)
|
|
230
|
+
)
|
|
231
|
+
):
|
|
232
|
+
if IS_PYDANTIC_V2:
|
|
233
|
+
return type_.model_construct(**object_)
|
|
234
|
+
else:
|
|
235
|
+
return type_.construct(**object_)
|
|
236
|
+
|
|
237
|
+
if base_type == dt.datetime:
|
|
238
|
+
try:
|
|
239
|
+
return parse_datetime(object_)
|
|
240
|
+
except Exception:
|
|
241
|
+
return object_
|
|
242
|
+
|
|
243
|
+
if base_type == dt.date:
|
|
244
|
+
try:
|
|
245
|
+
return parse_date(object_)
|
|
246
|
+
except Exception:
|
|
247
|
+
return object_
|
|
248
|
+
|
|
249
|
+
if base_type == uuid.UUID:
|
|
250
|
+
try:
|
|
251
|
+
return uuid.UUID(object_)
|
|
252
|
+
except Exception:
|
|
253
|
+
return object_
|
|
254
|
+
|
|
255
|
+
if base_type == int:
|
|
256
|
+
try:
|
|
257
|
+
return int(object_)
|
|
258
|
+
except Exception:
|
|
259
|
+
return object_
|
|
260
|
+
|
|
261
|
+
if base_type == bool:
|
|
262
|
+
try:
|
|
263
|
+
if isinstance(object_, str):
|
|
264
|
+
stringified_object = object_.lower()
|
|
265
|
+
return stringified_object == "true" or stringified_object == "1"
|
|
266
|
+
|
|
267
|
+
return bool(object_)
|
|
268
|
+
except Exception:
|
|
269
|
+
return object_
|
|
270
|
+
|
|
271
|
+
return object_
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def _get_is_populate_by_name(model: typing.Type["Model"]) -> bool:
|
|
275
|
+
if IS_PYDANTIC_V2:
|
|
276
|
+
return model.model_config.get("populate_by_name", False) # type: ignore # Pydantic v2
|
|
277
|
+
return model.__config__.allow_population_by_field_name # type: ignore # Pydantic v1
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
PydanticField = typing.Union[ModelField, pydantic.fields.FieldInfo]
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
# Pydantic V1 swapped the typing of __fields__'s values from ModelField to FieldInfo
|
|
284
|
+
# And so we try to handle both V1 cases, as well as V2 (FieldInfo from model.model_fields)
|
|
285
|
+
def _get_model_fields(
|
|
286
|
+
model: typing.Type["Model"],
|
|
287
|
+
) -> typing.Mapping[str, PydanticField]:
|
|
288
|
+
if IS_PYDANTIC_V2:
|
|
289
|
+
return model.model_fields # type: ignore # Pydantic v2
|
|
290
|
+
else:
|
|
291
|
+
return model.__fields__ # type: ignore # Pydantic v1
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def _get_field_default(field: PydanticField) -> typing.Any:
|
|
295
|
+
try:
|
|
296
|
+
value = field.get_default() # type: ignore # Pydantic < v1.10.15
|
|
297
|
+
except:
|
|
298
|
+
value = field.default
|
|
299
|
+
if IS_PYDANTIC_V2:
|
|
300
|
+
from pydantic_core import PydanticUndefined
|
|
301
|
+
|
|
302
|
+
if value == PydanticUndefined:
|
|
303
|
+
return None
|
|
304
|
+
return value
|
|
305
|
+
return value
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from .conflict_error import ConflictError
|
|
4
|
+
from .internal_server_error import InternalServerError
|
|
5
|
+
from .not_found_error import NotFoundError
|
|
6
|
+
from .unprocessable_entity_error import UnprocessableEntityError
|
|
7
|
+
|
|
8
|
+
__all__ = ["ConflictError", "InternalServerError", "NotFoundError", "UnprocessableEntityError"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.api_error import ApiError
|
|
4
|
+
from ..types.conflict_error_body import ConflictErrorBody
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ConflictError(ApiError):
|
|
8
|
+
def __init__(self, body: ConflictErrorBody):
|
|
9
|
+
super().__init__(status_code=409, body=body)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.api_error import ApiError
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class InternalServerError(ApiError):
|
|
8
|
+
def __init__(self, body: typing.Optional[typing.Any]):
|
|
9
|
+
super().__init__(status_code=500, body=body)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.api_error import ApiError
|
|
4
|
+
from ..types.http_validation_error import HttpValidationError
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UnprocessableEntityError(ApiError):
|
|
8
|
+
def __init__(self, body: HttpValidationError):
|
|
9
|
+
super().__init__(status_code=422, body=body)
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.client_wrapper import SyncClientWrapper
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.request_options import RequestOptions
|
|
6
|
+
from ..types.health import Health
|
|
7
|
+
from ..core.unchecked_base_model import construct_type
|
|
8
|
+
from json.decoder import JSONDecodeError
|
|
9
|
+
from ..core.api_error import ApiError
|
|
10
|
+
from ..core.client_wrapper import AsyncClientWrapper
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class HealthClient:
|
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
+
self._client_wrapper = client_wrapper
|
|
16
|
+
|
|
17
|
+
def check(self, *, request_options: typing.Optional[RequestOptions] = None) -> Health:
|
|
18
|
+
"""
|
|
19
|
+
Parameters
|
|
20
|
+
----------
|
|
21
|
+
request_options : typing.Optional[RequestOptions]
|
|
22
|
+
Request-specific configuration.
|
|
23
|
+
|
|
24
|
+
Returns
|
|
25
|
+
-------
|
|
26
|
+
Health
|
|
27
|
+
Successful Response
|
|
28
|
+
|
|
29
|
+
Examples
|
|
30
|
+
--------
|
|
31
|
+
from letta_client import Letta
|
|
32
|
+
|
|
33
|
+
client = Letta(
|
|
34
|
+
token="YOUR_TOKEN",
|
|
35
|
+
)
|
|
36
|
+
client.health.check()
|
|
37
|
+
"""
|
|
38
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
39
|
+
"v1/health/",
|
|
40
|
+
method="GET",
|
|
41
|
+
request_options=request_options,
|
|
42
|
+
)
|
|
43
|
+
try:
|
|
44
|
+
if 200 <= _response.status_code < 300:
|
|
45
|
+
return typing.cast(
|
|
46
|
+
Health,
|
|
47
|
+
construct_type(
|
|
48
|
+
type_=Health, # type: ignore
|
|
49
|
+
object_=_response.json(),
|
|
50
|
+
),
|
|
51
|
+
)
|
|
52
|
+
_response_json = _response.json()
|
|
53
|
+
except JSONDecodeError:
|
|
54
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
55
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class AsyncHealthClient:
|
|
59
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
60
|
+
self._client_wrapper = client_wrapper
|
|
61
|
+
|
|
62
|
+
async def check(self, *, request_options: typing.Optional[RequestOptions] = None) -> Health:
|
|
63
|
+
"""
|
|
64
|
+
Parameters
|
|
65
|
+
----------
|
|
66
|
+
request_options : typing.Optional[RequestOptions]
|
|
67
|
+
Request-specific configuration.
|
|
68
|
+
|
|
69
|
+
Returns
|
|
70
|
+
-------
|
|
71
|
+
Health
|
|
72
|
+
Successful Response
|
|
73
|
+
|
|
74
|
+
Examples
|
|
75
|
+
--------
|
|
76
|
+
import asyncio
|
|
77
|
+
|
|
78
|
+
from letta_client import AsyncLetta
|
|
79
|
+
|
|
80
|
+
client = AsyncLetta(
|
|
81
|
+
token="YOUR_TOKEN",
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
async def main() -> None:
|
|
86
|
+
await client.health.check()
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
asyncio.run(main())
|
|
90
|
+
"""
|
|
91
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
92
|
+
"v1/health/",
|
|
93
|
+
method="GET",
|
|
94
|
+
request_options=request_options,
|
|
95
|
+
)
|
|
96
|
+
try:
|
|
97
|
+
if 200 <= _response.status_code < 300:
|
|
98
|
+
return typing.cast(
|
|
99
|
+
Health,
|
|
100
|
+
construct_type(
|
|
101
|
+
type_=Health, # type: ignore
|
|
102
|
+
object_=_response.json(),
|
|
103
|
+
),
|
|
104
|
+
)
|
|
105
|
+
_response_json = _response.json()
|
|
106
|
+
except JSONDecodeError:
|
|
107
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
108
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|