letta-client 0.1.22__py3-none-any.whl → 0.1.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of letta-client might be problematic. Click here for more details.
- letta_client/__init__.py +464 -7
- letta_client/agents/__init__.py +1 -2
- letta_client/agents/messages/__init__.py +2 -2
- letta_client/agents/messages/client.py +114 -63
- letta_client/agents/messages/types/__init__.py +1 -2
- letta_client/base_client.py +4 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/templates/__init__.py +335 -0
- letta_client/templates/client.py +188 -0
- letta_client/templates/types/__init__.py +659 -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 +88 -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_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 +46 -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_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_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_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 +13 -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 +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item.py +26 -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 +13 -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 +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item.py +22 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_child_output_mapping.py +38 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_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_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_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_item_child_output_mapping_type.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_children.py +24 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_children_type.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_one.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_one_type.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_two.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_two_type.py +13 -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 +13 -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 +13 -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 +13 -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 +13 -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 +8 -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/types/__init__.py +138 -6
- letta_client/types/action_model.py +6 -4
- letta_client/types/audio.py +19 -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.py → chat_completion_message_tool_call_output.py} +3 -3
- 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/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 +44 -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 +44 -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/{function.py → function_call.py} +1 -1
- letta_client/types/{function_definition.py → function_definition_input.py} +1 -1
- letta_client/types/function_definition_output.py +22 -0
- letta_client/types/function_output.py +20 -0
- letta_client/types/function_tool.py +2 -2
- letta_client/types/image_url.py +21 -0
- letta_client/types/image_url_detail.py +5 -0
- letta_client/types/input_audio.py +21 -0
- letta_client/types/input_audio_format.py +5 -0
- letta_client/types/json_schema.py +26 -0
- letta_client/types/letta_request.py +12 -3
- letta_client/types/message.py +2 -2
- 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/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-0.1.22.dist-info → letta_client-0.1.23.dist-info}/METADATA +1 -1
- letta_client-0.1.23.dist-info/RECORD +408 -0
- letta_client/agents/messages/types/messages_list_response.py +0 -7
- letta_client-0.1.22.dist-info/RECORD +0 -179
- {letta_client-0.1.22.dist-info → letta_client-0.1.23.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_from_template_response_agents_item_tools_item_organization_id_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemOrganizationIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemOrganizationId = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemOrganizationIdItem]],
|
|
12
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_from_template_response_agents_item_tools_item_source_code_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemSourceCodeItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemSourceCode = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemSourceCodeItem]],
|
|
12
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_from_template_response_agents_item_tools_item_source_type_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemSourceTypeItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemSourceType = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemSourceTypeItem]],
|
|
12
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType = typing.Union[
|
|
6
|
+
typing.Literal["custom", "letta_core", "letta_memory_core", "letta_multi_agent_core", "external_composio"],
|
|
7
|
+
typing.Any,
|
|
8
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_from_template_response_agents_item_updated_at_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemUpdatedAtItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemUpdatedAt = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemUpdatedAtItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
letta_client/types/__init__.py
CHANGED
|
@@ -12,13 +12,62 @@ from .app_auth_scheme_auth_mode import AppAuthSchemeAuthMode
|
|
|
12
12
|
from .app_model import AppModel
|
|
13
13
|
from .assistant_message import AssistantMessage
|
|
14
14
|
from .assistant_message_content import AssistantMessageContent
|
|
15
|
+
from .audio import Audio
|
|
15
16
|
from .auth_request import AuthRequest
|
|
16
17
|
from .auth_response import AuthResponse
|
|
17
18
|
from .auth_scheme_field import AuthSchemeField
|
|
18
19
|
from .block import Block
|
|
19
20
|
from .block_update import BlockUpdate
|
|
20
|
-
from .
|
|
21
|
+
from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
|
|
22
|
+
from .chat_completion_assistant_message_param_content import ChatCompletionAssistantMessageParamContent
|
|
23
|
+
from .chat_completion_assistant_message_param_content_item import ChatCompletionAssistantMessageParamContentItem
|
|
24
|
+
from .chat_completion_audio_param import ChatCompletionAudioParam
|
|
25
|
+
from .chat_completion_audio_param_format import ChatCompletionAudioParamFormat
|
|
26
|
+
from .chat_completion_audio_param_voice import ChatCompletionAudioParamVoice
|
|
27
|
+
from .chat_completion_content_part_image_param import ChatCompletionContentPartImageParam
|
|
28
|
+
from .chat_completion_content_part_input_audio_param import ChatCompletionContentPartInputAudioParam
|
|
29
|
+
from .chat_completion_content_part_refusal_param import ChatCompletionContentPartRefusalParam
|
|
30
|
+
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
|
|
31
|
+
from .chat_completion_developer_message_param import ChatCompletionDeveloperMessageParam
|
|
32
|
+
from .chat_completion_developer_message_param_content import ChatCompletionDeveloperMessageParamContent
|
|
33
|
+
from .chat_completion_function_call_option_param import ChatCompletionFunctionCallOptionParam
|
|
34
|
+
from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam
|
|
35
|
+
from .chat_completion_message_tool_call_input import ChatCompletionMessageToolCallInput
|
|
36
|
+
from .chat_completion_message_tool_call_output import ChatCompletionMessageToolCallOutput
|
|
37
|
+
from .chat_completion_message_tool_call_param import ChatCompletionMessageToolCallParam
|
|
38
|
+
from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam
|
|
39
|
+
from .chat_completion_prediction_content_param import ChatCompletionPredictionContentParam
|
|
40
|
+
from .chat_completion_prediction_content_param_content import ChatCompletionPredictionContentParamContent
|
|
41
|
+
from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
|
|
42
|
+
from .chat_completion_system_message_param import ChatCompletionSystemMessageParam
|
|
43
|
+
from .chat_completion_system_message_param_content import ChatCompletionSystemMessageParamContent
|
|
44
|
+
from .chat_completion_tool_message_param import ChatCompletionToolMessageParam
|
|
45
|
+
from .chat_completion_tool_message_param_content import ChatCompletionToolMessageParamContent
|
|
46
|
+
from .chat_completion_tool_param import ChatCompletionToolParam
|
|
47
|
+
from .chat_completion_user_message_param import ChatCompletionUserMessageParam
|
|
48
|
+
from .chat_completion_user_message_param_content import ChatCompletionUserMessageParamContent
|
|
49
|
+
from .chat_completion_user_message_param_content_item import ChatCompletionUserMessageParamContentItem
|
|
21
50
|
from .child_tool_rule import ChildToolRule
|
|
51
|
+
from .completion_create_params_non_streaming import CompletionCreateParamsNonStreaming
|
|
52
|
+
from .completion_create_params_non_streaming_function_call import CompletionCreateParamsNonStreamingFunctionCall
|
|
53
|
+
from .completion_create_params_non_streaming_messages_item import CompletionCreateParamsNonStreamingMessagesItem
|
|
54
|
+
from .completion_create_params_non_streaming_modalities_item import CompletionCreateParamsNonStreamingModalitiesItem
|
|
55
|
+
from .completion_create_params_non_streaming_model import CompletionCreateParamsNonStreamingModel
|
|
56
|
+
from .completion_create_params_non_streaming_reasoning_effort import CompletionCreateParamsNonStreamingReasoningEffort
|
|
57
|
+
from .completion_create_params_non_streaming_response_format import CompletionCreateParamsNonStreamingResponseFormat
|
|
58
|
+
from .completion_create_params_non_streaming_service_tier import CompletionCreateParamsNonStreamingServiceTier
|
|
59
|
+
from .completion_create_params_non_streaming_stop import CompletionCreateParamsNonStreamingStop
|
|
60
|
+
from .completion_create_params_non_streaming_tool_choice import CompletionCreateParamsNonStreamingToolChoice
|
|
61
|
+
from .completion_create_params_streaming import CompletionCreateParamsStreaming
|
|
62
|
+
from .completion_create_params_streaming_function_call import CompletionCreateParamsStreamingFunctionCall
|
|
63
|
+
from .completion_create_params_streaming_messages_item import CompletionCreateParamsStreamingMessagesItem
|
|
64
|
+
from .completion_create_params_streaming_modalities_item import CompletionCreateParamsStreamingModalitiesItem
|
|
65
|
+
from .completion_create_params_streaming_model import CompletionCreateParamsStreamingModel
|
|
66
|
+
from .completion_create_params_streaming_reasoning_effort import CompletionCreateParamsStreamingReasoningEffort
|
|
67
|
+
from .completion_create_params_streaming_response_format import CompletionCreateParamsStreamingResponseFormat
|
|
68
|
+
from .completion_create_params_streaming_service_tier import CompletionCreateParamsStreamingServiceTier
|
|
69
|
+
from .completion_create_params_streaming_stop import CompletionCreateParamsStreamingStop
|
|
70
|
+
from .completion_create_params_streaming_tool_choice import CompletionCreateParamsStreamingToolChoice
|
|
22
71
|
from .conditional_tool_rule import ConditionalToolRule
|
|
23
72
|
from .conflict_error_body import ConflictErrorBody
|
|
24
73
|
from .context_window_overview import ContextWindowOverview
|
|
@@ -27,16 +76,23 @@ from .e_2_b_sandbox_config import E2BSandboxConfig
|
|
|
27
76
|
from .embedding_config import EmbeddingConfig
|
|
28
77
|
from .embedding_config_embedding_endpoint_type import EmbeddingConfigEmbeddingEndpointType
|
|
29
78
|
from .file_metadata import FileMetadata
|
|
30
|
-
from .
|
|
31
|
-
from .
|
|
79
|
+
from .function_call import FunctionCall
|
|
80
|
+
from .function_definition_input import FunctionDefinitionInput
|
|
81
|
+
from .function_definition_output import FunctionDefinitionOutput
|
|
82
|
+
from .function_output import FunctionOutput
|
|
32
83
|
from .function_tool import FunctionTool
|
|
33
84
|
from .health import Health
|
|
34
85
|
from .http_validation_error import HttpValidationError
|
|
86
|
+
from .image_url import ImageUrl
|
|
87
|
+
from .image_url_detail import ImageUrlDetail
|
|
35
88
|
from .init_tool_rule import InitToolRule
|
|
89
|
+
from .input_audio import InputAudio
|
|
90
|
+
from .input_audio_format import InputAudioFormat
|
|
36
91
|
from .internal_server_error_body import InternalServerErrorBody
|
|
37
92
|
from .job import Job
|
|
38
93
|
from .job_status import JobStatus
|
|
39
94
|
from .job_type import JobType
|
|
95
|
+
from .json_schema import JsonSchema
|
|
40
96
|
from .letta_message_union import LettaMessageUnion
|
|
41
97
|
from .letta_request import LettaRequest
|
|
42
98
|
from .letta_request_config import LettaRequestConfig
|
|
@@ -53,11 +109,24 @@ from .message_create_role import MessageCreateRole
|
|
|
53
109
|
from .message_role import MessageRole
|
|
54
110
|
from .not_found_error_body import NotFoundErrorBody
|
|
55
111
|
from .not_found_error_body_message import NotFoundErrorBodyMessage
|
|
112
|
+
from .openai_types_chat_chat_completion_message_tool_call_function import (
|
|
113
|
+
OpenaiTypesChatChatCompletionMessageToolCallFunction,
|
|
114
|
+
)
|
|
115
|
+
from .openai_types_chat_chat_completion_message_tool_call_param_function import (
|
|
116
|
+
OpenaiTypesChatChatCompletionMessageToolCallParamFunction,
|
|
117
|
+
)
|
|
118
|
+
from .openai_types_chat_chat_completion_named_tool_choice_param_function import (
|
|
119
|
+
OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction,
|
|
120
|
+
)
|
|
121
|
+
from .openai_types_chat_completion_create_params_function import OpenaiTypesChatCompletionCreateParamsFunction
|
|
56
122
|
from .organization import Organization
|
|
57
123
|
from .organization_create import OrganizationCreate
|
|
58
124
|
from .passage import Passage
|
|
59
125
|
from .provider import Provider
|
|
60
126
|
from .reasoning_message import ReasoningMessage
|
|
127
|
+
from .response_format_json_object import ResponseFormatJsonObject
|
|
128
|
+
from .response_format_json_schema import ResponseFormatJsonSchema
|
|
129
|
+
from .response_format_text import ResponseFormatText
|
|
61
130
|
from .run import Run
|
|
62
131
|
from .sandbox_config import SandboxConfig
|
|
63
132
|
from .sandbox_config_create import SandboxConfigCreate
|
|
@@ -105,13 +174,62 @@ __all__ = [
|
|
|
105
174
|
"AppModel",
|
|
106
175
|
"AssistantMessage",
|
|
107
176
|
"AssistantMessageContent",
|
|
177
|
+
"Audio",
|
|
108
178
|
"AuthRequest",
|
|
109
179
|
"AuthResponse",
|
|
110
180
|
"AuthSchemeField",
|
|
111
181
|
"Block",
|
|
112
182
|
"BlockUpdate",
|
|
113
|
-
"
|
|
183
|
+
"ChatCompletionAssistantMessageParam",
|
|
184
|
+
"ChatCompletionAssistantMessageParamContent",
|
|
185
|
+
"ChatCompletionAssistantMessageParamContentItem",
|
|
186
|
+
"ChatCompletionAudioParam",
|
|
187
|
+
"ChatCompletionAudioParamFormat",
|
|
188
|
+
"ChatCompletionAudioParamVoice",
|
|
189
|
+
"ChatCompletionContentPartImageParam",
|
|
190
|
+
"ChatCompletionContentPartInputAudioParam",
|
|
191
|
+
"ChatCompletionContentPartRefusalParam",
|
|
192
|
+
"ChatCompletionContentPartTextParam",
|
|
193
|
+
"ChatCompletionDeveloperMessageParam",
|
|
194
|
+
"ChatCompletionDeveloperMessageParamContent",
|
|
195
|
+
"ChatCompletionFunctionCallOptionParam",
|
|
196
|
+
"ChatCompletionFunctionMessageParam",
|
|
197
|
+
"ChatCompletionMessageToolCallInput",
|
|
198
|
+
"ChatCompletionMessageToolCallOutput",
|
|
199
|
+
"ChatCompletionMessageToolCallParam",
|
|
200
|
+
"ChatCompletionNamedToolChoiceParam",
|
|
201
|
+
"ChatCompletionPredictionContentParam",
|
|
202
|
+
"ChatCompletionPredictionContentParamContent",
|
|
203
|
+
"ChatCompletionStreamOptionsParam",
|
|
204
|
+
"ChatCompletionSystemMessageParam",
|
|
205
|
+
"ChatCompletionSystemMessageParamContent",
|
|
206
|
+
"ChatCompletionToolMessageParam",
|
|
207
|
+
"ChatCompletionToolMessageParamContent",
|
|
208
|
+
"ChatCompletionToolParam",
|
|
209
|
+
"ChatCompletionUserMessageParam",
|
|
210
|
+
"ChatCompletionUserMessageParamContent",
|
|
211
|
+
"ChatCompletionUserMessageParamContentItem",
|
|
114
212
|
"ChildToolRule",
|
|
213
|
+
"CompletionCreateParamsNonStreaming",
|
|
214
|
+
"CompletionCreateParamsNonStreamingFunctionCall",
|
|
215
|
+
"CompletionCreateParamsNonStreamingMessagesItem",
|
|
216
|
+
"CompletionCreateParamsNonStreamingModalitiesItem",
|
|
217
|
+
"CompletionCreateParamsNonStreamingModel",
|
|
218
|
+
"CompletionCreateParamsNonStreamingReasoningEffort",
|
|
219
|
+
"CompletionCreateParamsNonStreamingResponseFormat",
|
|
220
|
+
"CompletionCreateParamsNonStreamingServiceTier",
|
|
221
|
+
"CompletionCreateParamsNonStreamingStop",
|
|
222
|
+
"CompletionCreateParamsNonStreamingToolChoice",
|
|
223
|
+
"CompletionCreateParamsStreaming",
|
|
224
|
+
"CompletionCreateParamsStreamingFunctionCall",
|
|
225
|
+
"CompletionCreateParamsStreamingMessagesItem",
|
|
226
|
+
"CompletionCreateParamsStreamingModalitiesItem",
|
|
227
|
+
"CompletionCreateParamsStreamingModel",
|
|
228
|
+
"CompletionCreateParamsStreamingReasoningEffort",
|
|
229
|
+
"CompletionCreateParamsStreamingResponseFormat",
|
|
230
|
+
"CompletionCreateParamsStreamingServiceTier",
|
|
231
|
+
"CompletionCreateParamsStreamingStop",
|
|
232
|
+
"CompletionCreateParamsStreamingToolChoice",
|
|
115
233
|
"ConditionalToolRule",
|
|
116
234
|
"ConflictErrorBody",
|
|
117
235
|
"ContextWindowOverview",
|
|
@@ -120,16 +238,23 @@ __all__ = [
|
|
|
120
238
|
"EmbeddingConfig",
|
|
121
239
|
"EmbeddingConfigEmbeddingEndpointType",
|
|
122
240
|
"FileMetadata",
|
|
123
|
-
"
|
|
124
|
-
"
|
|
241
|
+
"FunctionCall",
|
|
242
|
+
"FunctionDefinitionInput",
|
|
243
|
+
"FunctionDefinitionOutput",
|
|
244
|
+
"FunctionOutput",
|
|
125
245
|
"FunctionTool",
|
|
126
246
|
"Health",
|
|
127
247
|
"HttpValidationError",
|
|
248
|
+
"ImageUrl",
|
|
249
|
+
"ImageUrlDetail",
|
|
128
250
|
"InitToolRule",
|
|
251
|
+
"InputAudio",
|
|
252
|
+
"InputAudioFormat",
|
|
129
253
|
"InternalServerErrorBody",
|
|
130
254
|
"Job",
|
|
131
255
|
"JobStatus",
|
|
132
256
|
"JobType",
|
|
257
|
+
"JsonSchema",
|
|
133
258
|
"LettaMessageUnion",
|
|
134
259
|
"LettaRequest",
|
|
135
260
|
"LettaRequestConfig",
|
|
@@ -146,11 +271,18 @@ __all__ = [
|
|
|
146
271
|
"MessageRole",
|
|
147
272
|
"NotFoundErrorBody",
|
|
148
273
|
"NotFoundErrorBodyMessage",
|
|
274
|
+
"OpenaiTypesChatChatCompletionMessageToolCallFunction",
|
|
275
|
+
"OpenaiTypesChatChatCompletionMessageToolCallParamFunction",
|
|
276
|
+
"OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction",
|
|
277
|
+
"OpenaiTypesChatCompletionCreateParamsFunction",
|
|
149
278
|
"Organization",
|
|
150
279
|
"OrganizationCreate",
|
|
151
280
|
"Passage",
|
|
152
281
|
"Provider",
|
|
153
282
|
"ReasoningMessage",
|
|
283
|
+
"ResponseFormatJsonObject",
|
|
284
|
+
"ResponseFormatJsonSchema",
|
|
285
|
+
"ResponseFormatText",
|
|
154
286
|
"Run",
|
|
155
287
|
"SandboxConfig",
|
|
156
288
|
"SandboxConfigCreate",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import typing
|
|
5
4
|
from .action_parameters_model import ActionParametersModel
|
|
6
5
|
from .action_response_model import ActionResponseModel
|
|
7
6
|
import typing_extensions
|
|
8
7
|
from ..core.serialization import FieldMetadata
|
|
8
|
+
import typing
|
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
10
|
import pydantic
|
|
11
11
|
|
|
@@ -16,15 +16,17 @@ class ActionModel(UncheckedBaseModel):
|
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
name: str
|
|
19
|
-
|
|
19
|
+
description: str
|
|
20
20
|
parameters: ActionParametersModel
|
|
21
21
|
response: ActionResponseModel
|
|
22
22
|
app_name: typing_extensions.Annotated[str, FieldMetadata(alias="appName")]
|
|
23
23
|
app_id: typing_extensions.Annotated[str, FieldMetadata(alias="appId")]
|
|
24
|
+
version: str
|
|
25
|
+
available_versions: typing.List[str]
|
|
24
26
|
tags: typing.List[str]
|
|
25
|
-
enabled: typing.Optional[bool] = None
|
|
26
27
|
logo: typing.Optional[str] = None
|
|
27
|
-
|
|
28
|
+
display_name: typing.Optional[str] = None
|
|
29
|
+
enabled: typing.Optional[bool] = None
|
|
28
30
|
|
|
29
31
|
if IS_PYDANTIC_V2:
|
|
30
32
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
|
+
import typing
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Audio(UncheckedBaseModel):
|
|
10
|
+
id: str
|
|
11
|
+
|
|
12
|
+
if IS_PYDANTIC_V2:
|
|
13
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
14
|
+
else:
|
|
15
|
+
|
|
16
|
+
class Config:
|
|
17
|
+
frozen = True
|
|
18
|
+
smart_union = True
|
|
19
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .audio import Audio
|
|
6
|
+
from .chat_completion_assistant_message_param_content import ChatCompletionAssistantMessageParamContent
|
|
7
|
+
from .function_call import FunctionCall
|
|
8
|
+
from .chat_completion_message_tool_call_param import ChatCompletionMessageToolCallParam
|
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
|
+
import pydantic
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ChatCompletionAssistantMessageParam(UncheckedBaseModel):
|
|
14
|
+
role: typing.Literal["assistant"] = "assistant"
|
|
15
|
+
audio: typing.Optional[Audio] = None
|
|
16
|
+
content: typing.Optional[ChatCompletionAssistantMessageParamContent] = None
|
|
17
|
+
function_call: typing.Optional[FunctionCall] = None
|
|
18
|
+
name: typing.Optional[str] = None
|
|
19
|
+
refusal: typing.Optional[str] = None
|
|
20
|
+
tool_calls: typing.Optional[typing.List[ChatCompletionMessageToolCallParam]] = None
|
|
21
|
+
|
|
22
|
+
if IS_PYDANTIC_V2:
|
|
23
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
24
|
+
else:
|
|
25
|
+
|
|
26
|
+
class Config:
|
|
27
|
+
frozen = True
|
|
28
|
+
smart_union = True
|
|
29
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .chat_completion_assistant_message_param_content_item import ChatCompletionAssistantMessageParamContentItem
|
|
5
|
+
|
|
6
|
+
ChatCompletionAssistantMessageParamContent = typing.Union[
|
|
7
|
+
str, typing.List[ChatCompletionAssistantMessageParamContentItem]
|
|
8
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
|
|
5
|
+
from .chat_completion_content_part_refusal_param import ChatCompletionContentPartRefusalParam
|
|
6
|
+
|
|
7
|
+
ChatCompletionAssistantMessageParamContentItem = typing.Union[
|
|
8
|
+
ChatCompletionContentPartTextParam, ChatCompletionContentPartRefusalParam
|
|
9
|
+
]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .chat_completion_audio_param_format import ChatCompletionAudioParamFormat
|
|
5
|
+
from .chat_completion_audio_param_voice import ChatCompletionAudioParamVoice
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import typing
|
|
8
|
+
import pydantic
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ChatCompletionAudioParam(UncheckedBaseModel):
|
|
12
|
+
format: ChatCompletionAudioParamFormat
|
|
13
|
+
voice: ChatCompletionAudioParamVoice
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .image_url import ImageUrl
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionContentPartImageParam(UncheckedBaseModel):
|
|
11
|
+
image_url: ImageUrl
|
|
12
|
+
type: typing.Literal["image_url"] = "image_url"
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .input_audio import InputAudio
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionContentPartInputAudioParam(UncheckedBaseModel):
|
|
11
|
+
input_audio: InputAudio
|
|
12
|
+
type: typing.Literal["input_audio"] = "input_audio"
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChatCompletionContentPartRefusalParam(UncheckedBaseModel):
|
|
10
|
+
refusal: str
|
|
11
|
+
type: typing.Literal["refusal"] = "refusal"
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChatCompletionContentPartTextParam(UncheckedBaseModel):
|
|
10
|
+
text: str
|
|
11
|
+
type: typing.Literal["text"] = "text"
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .chat_completion_developer_message_param_content import ChatCompletionDeveloperMessageParamContent
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionDeveloperMessageParam(UncheckedBaseModel):
|
|
11
|
+
content: ChatCompletionDeveloperMessageParamContent
|
|
12
|
+
role: typing.Literal["developer"] = "developer"
|
|
13
|
+
name: typing.Optional[str] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
|
|
5
|
+
|
|
6
|
+
ChatCompletionDeveloperMessageParamContent = typing.Union[str, typing.List[ChatCompletionContentPartTextParam]]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
|
+
import typing
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChatCompletionFunctionCallOptionParam(UncheckedBaseModel):
|
|
10
|
+
name: str
|
|
11
|
+
|
|
12
|
+
if IS_PYDANTIC_V2:
|
|
13
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
14
|
+
else:
|
|
15
|
+
|
|
16
|
+
class Config:
|
|
17
|
+
frozen = True
|
|
18
|
+
smart_union = True
|
|
19
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChatCompletionFunctionMessageParam(UncheckedBaseModel):
|
|
10
|
+
content: typing.Optional[str] = None
|
|
11
|
+
name: str
|
|
12
|
+
role: typing.Literal["function"] = "function"
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .openai_types_chat_chat_completion_message_tool_call_function import (
|
|
5
|
+
OpenaiTypesChatChatCompletionMessageToolCallFunction,
|
|
6
|
+
)
|
|
7
|
+
import typing
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ChatCompletionMessageToolCallInput(UncheckedBaseModel):
|
|
13
|
+
id: str
|
|
14
|
+
function: OpenaiTypesChatChatCompletionMessageToolCallFunction
|
|
15
|
+
type: typing.Literal["function"] = "function"
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|