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.
- 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
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
from .
|
|
4
|
+
from .function_output import FunctionOutput
|
|
5
5
|
import typing
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class ChatCompletionMessageToolCallOutput(UncheckedBaseModel):
|
|
11
11
|
id: str
|
|
12
|
-
function:
|
|
12
|
+
function: FunctionOutput
|
|
13
13
|
type: typing.Literal["function"] = "function"
|
|
14
14
|
|
|
15
15
|
if IS_PYDANTIC_V2:
|
|
@@ -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_param_function import (
|
|
5
|
+
OpenaiTypesChatChatCompletionMessageToolCallParamFunction,
|
|
6
|
+
)
|
|
7
|
+
import typing
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ChatCompletionMessageToolCallParam(UncheckedBaseModel):
|
|
13
|
+
id: str
|
|
14
|
+
function: OpenaiTypesChatChatCompletionMessageToolCallParamFunction
|
|
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
|
|
@@ -0,0 +1,23 @@
|
|
|
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_named_tool_choice_param_function import (
|
|
5
|
+
OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction,
|
|
6
|
+
)
|
|
7
|
+
import typing
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ChatCompletionNamedToolChoiceParam(UncheckedBaseModel):
|
|
13
|
+
function: OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction
|
|
14
|
+
type: typing.Literal["function"] = "function"
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
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 .chat_completion_prediction_content_param_content import ChatCompletionPredictionContentParamContent
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionPredictionContentParam(UncheckedBaseModel):
|
|
11
|
+
content: ChatCompletionPredictionContentParamContent
|
|
12
|
+
type: typing.Literal["content"] = "content"
|
|
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,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
|
+
ChatCompletionPredictionContentParamContent = 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
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChatCompletionStreamOptionsParam(UncheckedBaseModel):
|
|
10
|
+
include_usage: typing.Optional[bool] = None
|
|
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,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_system_message_param_content import ChatCompletionSystemMessageParamContent
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionSystemMessageParam(UncheckedBaseModel):
|
|
11
|
+
content: ChatCompletionSystemMessageParamContent
|
|
12
|
+
role: typing.Literal["system"] = "system"
|
|
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
|
+
ChatCompletionSystemMessageParamContent = typing.Union[str, typing.List[ChatCompletionContentPartTextParam]]
|
|
@@ -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_tool_message_param_content import ChatCompletionToolMessageParamContent
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionToolMessageParam(UncheckedBaseModel):
|
|
11
|
+
content: ChatCompletionToolMessageParamContent
|
|
12
|
+
role: typing.Literal["tool"] = "tool"
|
|
13
|
+
tool_call_id: str
|
|
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
|
+
ChatCompletionToolMessageParamContent = typing.Union[str, typing.List[ChatCompletionContentPartTextParam]]
|
|
@@ -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 .function_definition_input import FunctionDefinitionInput
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionToolParam(UncheckedBaseModel):
|
|
11
|
+
function: FunctionDefinitionInput
|
|
12
|
+
type: 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,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_user_message_param_content import ChatCompletionUserMessageParamContent
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionUserMessageParam(UncheckedBaseModel):
|
|
11
|
+
content: ChatCompletionUserMessageParamContent
|
|
12
|
+
role: typing.Literal["user"] = "user"
|
|
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_user_message_param_content_item import ChatCompletionUserMessageParamContentItem
|
|
5
|
+
|
|
6
|
+
ChatCompletionUserMessageParamContent = typing.Union[str, typing.List[ChatCompletionUserMessageParamContentItem]]
|
|
@@ -0,0 +1,10 @@
|
|
|
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_image_param import ChatCompletionContentPartImageParam
|
|
6
|
+
from .chat_completion_content_part_input_audio_param import ChatCompletionContentPartInputAudioParam
|
|
7
|
+
|
|
8
|
+
ChatCompletionUserMessageParamContentItem = typing.Union[
|
|
9
|
+
ChatCompletionContentPartTextParam, ChatCompletionContentPartImageParam, ChatCompletionContentPartInputAudioParam
|
|
10
|
+
]
|
|
@@ -0,0 +1,62 @@
|
|
|
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 .completion_create_params_non_streaming_messages_item import CompletionCreateParamsNonStreamingMessagesItem
|
|
6
|
+
from .completion_create_params_non_streaming_model import CompletionCreateParamsNonStreamingModel
|
|
7
|
+
from .chat_completion_audio_param import ChatCompletionAudioParam
|
|
8
|
+
from .completion_create_params_non_streaming_function_call import CompletionCreateParamsNonStreamingFunctionCall
|
|
9
|
+
from .openai_types_chat_completion_create_params_function import OpenaiTypesChatCompletionCreateParamsFunction
|
|
10
|
+
from .completion_create_params_non_streaming_modalities_item import CompletionCreateParamsNonStreamingModalitiesItem
|
|
11
|
+
from .chat_completion_prediction_content_param import ChatCompletionPredictionContentParam
|
|
12
|
+
from .completion_create_params_non_streaming_reasoning_effort import CompletionCreateParamsNonStreamingReasoningEffort
|
|
13
|
+
from .completion_create_params_non_streaming_response_format import CompletionCreateParamsNonStreamingResponseFormat
|
|
14
|
+
from .completion_create_params_non_streaming_service_tier import CompletionCreateParamsNonStreamingServiceTier
|
|
15
|
+
from .completion_create_params_non_streaming_stop import CompletionCreateParamsNonStreamingStop
|
|
16
|
+
from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
|
|
17
|
+
from .completion_create_params_non_streaming_tool_choice import CompletionCreateParamsNonStreamingToolChoice
|
|
18
|
+
from .chat_completion_tool_param import ChatCompletionToolParam
|
|
19
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
20
|
+
import pydantic
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CompletionCreateParamsNonStreaming(UncheckedBaseModel):
|
|
24
|
+
messages: typing.List[CompletionCreateParamsNonStreamingMessagesItem]
|
|
25
|
+
model: CompletionCreateParamsNonStreamingModel
|
|
26
|
+
audio: typing.Optional[ChatCompletionAudioParam] = None
|
|
27
|
+
frequency_penalty: typing.Optional[float] = None
|
|
28
|
+
function_call: typing.Optional[CompletionCreateParamsNonStreamingFunctionCall] = None
|
|
29
|
+
functions: typing.Optional[typing.List[OpenaiTypesChatCompletionCreateParamsFunction]] = None
|
|
30
|
+
logit_bias: typing.Optional[typing.Dict[str, typing.Optional[int]]] = None
|
|
31
|
+
logprobs: typing.Optional[bool] = None
|
|
32
|
+
max_completion_tokens: typing.Optional[int] = None
|
|
33
|
+
max_tokens: typing.Optional[int] = None
|
|
34
|
+
metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
35
|
+
modalities: typing.Optional[typing.List[CompletionCreateParamsNonStreamingModalitiesItem]] = None
|
|
36
|
+
n: typing.Optional[int] = None
|
|
37
|
+
parallel_tool_calls: typing.Optional[bool] = None
|
|
38
|
+
prediction: typing.Optional[ChatCompletionPredictionContentParam] = None
|
|
39
|
+
presence_penalty: typing.Optional[float] = None
|
|
40
|
+
reasoning_effort: typing.Optional[CompletionCreateParamsNonStreamingReasoningEffort] = None
|
|
41
|
+
response_format: typing.Optional[CompletionCreateParamsNonStreamingResponseFormat] = None
|
|
42
|
+
seed: typing.Optional[int] = None
|
|
43
|
+
service_tier: typing.Optional[CompletionCreateParamsNonStreamingServiceTier] = None
|
|
44
|
+
stop: typing.Optional[CompletionCreateParamsNonStreamingStop] = None
|
|
45
|
+
store: typing.Optional[bool] = None
|
|
46
|
+
stream_options: typing.Optional[ChatCompletionStreamOptionsParam] = None
|
|
47
|
+
temperature: typing.Optional[float] = None
|
|
48
|
+
tool_choice: typing.Optional[CompletionCreateParamsNonStreamingToolChoice] = None
|
|
49
|
+
tools: typing.Optional[typing.List[ChatCompletionToolParam]] = None
|
|
50
|
+
top_logprobs: typing.Optional[int] = None
|
|
51
|
+
top_p: typing.Optional[float] = None
|
|
52
|
+
user: typing.Optional[str] = None
|
|
53
|
+
stream: typing.Optional[bool] = None
|
|
54
|
+
|
|
55
|
+
if IS_PYDANTIC_V2:
|
|
56
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
57
|
+
else:
|
|
58
|
+
|
|
59
|
+
class Config:
|
|
60
|
+
frozen = True
|
|
61
|
+
smart_union = True
|
|
62
|
+
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_function_call_option_param import ChatCompletionFunctionCallOptionParam
|
|
5
|
+
|
|
6
|
+
CompletionCreateParamsNonStreamingFunctionCall = typing.Union[
|
|
7
|
+
typing.Literal["none"], typing.Literal["auto"], ChatCompletionFunctionCallOptionParam
|
|
8
|
+
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .chat_completion_developer_message_param import ChatCompletionDeveloperMessageParam
|
|
5
|
+
from .chat_completion_system_message_param import ChatCompletionSystemMessageParam
|
|
6
|
+
from .chat_completion_user_message_param import ChatCompletionUserMessageParam
|
|
7
|
+
from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
|
|
8
|
+
from .chat_completion_tool_message_param import ChatCompletionToolMessageParam
|
|
9
|
+
from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam
|
|
10
|
+
|
|
11
|
+
CompletionCreateParamsNonStreamingMessagesItem = typing.Union[
|
|
12
|
+
ChatCompletionDeveloperMessageParam,
|
|
13
|
+
ChatCompletionSystemMessageParam,
|
|
14
|
+
ChatCompletionUserMessageParam,
|
|
15
|
+
ChatCompletionAssistantMessageParam,
|
|
16
|
+
ChatCompletionToolMessageParam,
|
|
17
|
+
ChatCompletionFunctionMessageParam,
|
|
18
|
+
]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
CompletionCreateParamsNonStreamingModel = typing.Union[
|
|
6
|
+
str,
|
|
7
|
+
typing.Literal["o1"],
|
|
8
|
+
typing.Literal["o1-2024-12-17"],
|
|
9
|
+
typing.Literal["o1-preview"],
|
|
10
|
+
typing.Literal["o1-preview-2024-09-12"],
|
|
11
|
+
typing.Literal["o1-mini"],
|
|
12
|
+
typing.Literal["o1-mini-2024-09-12"],
|
|
13
|
+
typing.Literal["gpt-4o"],
|
|
14
|
+
typing.Literal["gpt-4o-2024-11-20"],
|
|
15
|
+
typing.Literal["gpt-4o-2024-08-06"],
|
|
16
|
+
typing.Literal["gpt-4o-2024-05-13"],
|
|
17
|
+
typing.Literal["gpt-4o-audio-preview"],
|
|
18
|
+
typing.Literal["gpt-4o-audio-preview-2024-10-01"],
|
|
19
|
+
typing.Literal["gpt-4o-audio-preview-2024-12-17"],
|
|
20
|
+
typing.Literal["gpt-4o-mini-audio-preview"],
|
|
21
|
+
typing.Literal["gpt-4o-mini-audio-preview-2024-12-17"],
|
|
22
|
+
typing.Literal["chatgpt-4o-latest"],
|
|
23
|
+
typing.Literal["gpt-4o-mini"],
|
|
24
|
+
typing.Literal["gpt-4o-mini-2024-07-18"],
|
|
25
|
+
typing.Literal["gpt-4-turbo"],
|
|
26
|
+
typing.Literal["gpt-4-turbo-2024-04-09"],
|
|
27
|
+
typing.Literal["gpt-4-0125-preview"],
|
|
28
|
+
typing.Literal["gpt-4-turbo-preview"],
|
|
29
|
+
typing.Literal["gpt-4-1106-preview"],
|
|
30
|
+
typing.Literal["gpt-4-vision-preview"],
|
|
31
|
+
typing.Literal["gpt-4"],
|
|
32
|
+
typing.Literal["gpt-4-0314"],
|
|
33
|
+
typing.Literal["gpt-4-0613"],
|
|
34
|
+
typing.Literal["gpt-4-32k"],
|
|
35
|
+
typing.Literal["gpt-4-32k-0314"],
|
|
36
|
+
typing.Literal["gpt-4-32k-0613"],
|
|
37
|
+
typing.Literal["gpt-3.5-turbo"],
|
|
38
|
+
typing.Literal["gpt-3.5-turbo-16k"],
|
|
39
|
+
typing.Literal["gpt-3.5-turbo-0301"],
|
|
40
|
+
typing.Literal["gpt-3.5-turbo-0613"],
|
|
41
|
+
typing.Literal["gpt-3.5-turbo-1106"],
|
|
42
|
+
typing.Literal["gpt-3.5-turbo-0125"],
|
|
43
|
+
typing.Literal["gpt-3.5-turbo-16k-0613"],
|
|
44
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .response_format_text import ResponseFormatText
|
|
5
|
+
from .response_format_json_object import ResponseFormatJsonObject
|
|
6
|
+
from .response_format_json_schema import ResponseFormatJsonSchema
|
|
7
|
+
|
|
8
|
+
CompletionCreateParamsNonStreamingResponseFormat = typing.Union[
|
|
9
|
+
ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema
|
|
10
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam
|
|
5
|
+
|
|
6
|
+
CompletionCreateParamsNonStreamingToolChoice = typing.Union[
|
|
7
|
+
typing.Literal["none"], typing.Literal["auto"], typing.Literal["required"], ChatCompletionNamedToolChoiceParam
|
|
8
|
+
]
|
|
@@ -0,0 +1,62 @@
|
|
|
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 .completion_create_params_streaming_messages_item import CompletionCreateParamsStreamingMessagesItem
|
|
6
|
+
from .completion_create_params_streaming_model import CompletionCreateParamsStreamingModel
|
|
7
|
+
from .chat_completion_audio_param import ChatCompletionAudioParam
|
|
8
|
+
from .completion_create_params_streaming_function_call import CompletionCreateParamsStreamingFunctionCall
|
|
9
|
+
from .openai_types_chat_completion_create_params_function import OpenaiTypesChatCompletionCreateParamsFunction
|
|
10
|
+
from .completion_create_params_streaming_modalities_item import CompletionCreateParamsStreamingModalitiesItem
|
|
11
|
+
from .chat_completion_prediction_content_param import ChatCompletionPredictionContentParam
|
|
12
|
+
from .completion_create_params_streaming_reasoning_effort import CompletionCreateParamsStreamingReasoningEffort
|
|
13
|
+
from .completion_create_params_streaming_response_format import CompletionCreateParamsStreamingResponseFormat
|
|
14
|
+
from .completion_create_params_streaming_service_tier import CompletionCreateParamsStreamingServiceTier
|
|
15
|
+
from .completion_create_params_streaming_stop import CompletionCreateParamsStreamingStop
|
|
16
|
+
from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
|
|
17
|
+
from .completion_create_params_streaming_tool_choice import CompletionCreateParamsStreamingToolChoice
|
|
18
|
+
from .chat_completion_tool_param import ChatCompletionToolParam
|
|
19
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
20
|
+
import pydantic
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CompletionCreateParamsStreaming(UncheckedBaseModel):
|
|
24
|
+
messages: typing.List[CompletionCreateParamsStreamingMessagesItem]
|
|
25
|
+
model: CompletionCreateParamsStreamingModel
|
|
26
|
+
audio: typing.Optional[ChatCompletionAudioParam] = None
|
|
27
|
+
frequency_penalty: typing.Optional[float] = None
|
|
28
|
+
function_call: typing.Optional[CompletionCreateParamsStreamingFunctionCall] = None
|
|
29
|
+
functions: typing.Optional[typing.List[OpenaiTypesChatCompletionCreateParamsFunction]] = None
|
|
30
|
+
logit_bias: typing.Optional[typing.Dict[str, typing.Optional[int]]] = None
|
|
31
|
+
logprobs: typing.Optional[bool] = None
|
|
32
|
+
max_completion_tokens: typing.Optional[int] = None
|
|
33
|
+
max_tokens: typing.Optional[int] = None
|
|
34
|
+
metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
35
|
+
modalities: typing.Optional[typing.List[CompletionCreateParamsStreamingModalitiesItem]] = None
|
|
36
|
+
n: typing.Optional[int] = None
|
|
37
|
+
parallel_tool_calls: typing.Optional[bool] = None
|
|
38
|
+
prediction: typing.Optional[ChatCompletionPredictionContentParam] = None
|
|
39
|
+
presence_penalty: typing.Optional[float] = None
|
|
40
|
+
reasoning_effort: typing.Optional[CompletionCreateParamsStreamingReasoningEffort] = None
|
|
41
|
+
response_format: typing.Optional[CompletionCreateParamsStreamingResponseFormat] = None
|
|
42
|
+
seed: typing.Optional[int] = None
|
|
43
|
+
service_tier: typing.Optional[CompletionCreateParamsStreamingServiceTier] = None
|
|
44
|
+
stop: typing.Optional[CompletionCreateParamsStreamingStop] = None
|
|
45
|
+
store: typing.Optional[bool] = None
|
|
46
|
+
stream_options: typing.Optional[ChatCompletionStreamOptionsParam] = None
|
|
47
|
+
temperature: typing.Optional[float] = None
|
|
48
|
+
tool_choice: typing.Optional[CompletionCreateParamsStreamingToolChoice] = None
|
|
49
|
+
tools: typing.Optional[typing.List[ChatCompletionToolParam]] = None
|
|
50
|
+
top_logprobs: typing.Optional[int] = None
|
|
51
|
+
top_p: typing.Optional[float] = None
|
|
52
|
+
user: typing.Optional[str] = None
|
|
53
|
+
stream: bool
|
|
54
|
+
|
|
55
|
+
if IS_PYDANTIC_V2:
|
|
56
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
57
|
+
else:
|
|
58
|
+
|
|
59
|
+
class Config:
|
|
60
|
+
frozen = True
|
|
61
|
+
smart_union = True
|
|
62
|
+
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_function_call_option_param import ChatCompletionFunctionCallOptionParam
|
|
5
|
+
|
|
6
|
+
CompletionCreateParamsStreamingFunctionCall = typing.Union[
|
|
7
|
+
typing.Literal["none"], typing.Literal["auto"], ChatCompletionFunctionCallOptionParam
|
|
8
|
+
]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .chat_completion_developer_message_param import ChatCompletionDeveloperMessageParam
|
|
5
|
+
from .chat_completion_system_message_param import ChatCompletionSystemMessageParam
|
|
6
|
+
from .chat_completion_user_message_param import ChatCompletionUserMessageParam
|
|
7
|
+
from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
|
|
8
|
+
from .chat_completion_tool_message_param import ChatCompletionToolMessageParam
|
|
9
|
+
from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam
|
|
10
|
+
|
|
11
|
+
CompletionCreateParamsStreamingMessagesItem = typing.Union[
|
|
12
|
+
ChatCompletionDeveloperMessageParam,
|
|
13
|
+
ChatCompletionSystemMessageParam,
|
|
14
|
+
ChatCompletionUserMessageParam,
|
|
15
|
+
ChatCompletionAssistantMessageParam,
|
|
16
|
+
ChatCompletionToolMessageParam,
|
|
17
|
+
ChatCompletionFunctionMessageParam,
|
|
18
|
+
]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
CompletionCreateParamsStreamingModel = typing.Union[
|
|
6
|
+
str,
|
|
7
|
+
typing.Literal["o1"],
|
|
8
|
+
typing.Literal["o1-2024-12-17"],
|
|
9
|
+
typing.Literal["o1-preview"],
|
|
10
|
+
typing.Literal["o1-preview-2024-09-12"],
|
|
11
|
+
typing.Literal["o1-mini"],
|
|
12
|
+
typing.Literal["o1-mini-2024-09-12"],
|
|
13
|
+
typing.Literal["gpt-4o"],
|
|
14
|
+
typing.Literal["gpt-4o-2024-11-20"],
|
|
15
|
+
typing.Literal["gpt-4o-2024-08-06"],
|
|
16
|
+
typing.Literal["gpt-4o-2024-05-13"],
|
|
17
|
+
typing.Literal["gpt-4o-audio-preview"],
|
|
18
|
+
typing.Literal["gpt-4o-audio-preview-2024-10-01"],
|
|
19
|
+
typing.Literal["gpt-4o-audio-preview-2024-12-17"],
|
|
20
|
+
typing.Literal["gpt-4o-mini-audio-preview"],
|
|
21
|
+
typing.Literal["gpt-4o-mini-audio-preview-2024-12-17"],
|
|
22
|
+
typing.Literal["chatgpt-4o-latest"],
|
|
23
|
+
typing.Literal["gpt-4o-mini"],
|
|
24
|
+
typing.Literal["gpt-4o-mini-2024-07-18"],
|
|
25
|
+
typing.Literal["gpt-4-turbo"],
|
|
26
|
+
typing.Literal["gpt-4-turbo-2024-04-09"],
|
|
27
|
+
typing.Literal["gpt-4-0125-preview"],
|
|
28
|
+
typing.Literal["gpt-4-turbo-preview"],
|
|
29
|
+
typing.Literal["gpt-4-1106-preview"],
|
|
30
|
+
typing.Literal["gpt-4-vision-preview"],
|
|
31
|
+
typing.Literal["gpt-4"],
|
|
32
|
+
typing.Literal["gpt-4-0314"],
|
|
33
|
+
typing.Literal["gpt-4-0613"],
|
|
34
|
+
typing.Literal["gpt-4-32k"],
|
|
35
|
+
typing.Literal["gpt-4-32k-0314"],
|
|
36
|
+
typing.Literal["gpt-4-32k-0613"],
|
|
37
|
+
typing.Literal["gpt-3.5-turbo"],
|
|
38
|
+
typing.Literal["gpt-3.5-turbo-16k"],
|
|
39
|
+
typing.Literal["gpt-3.5-turbo-0301"],
|
|
40
|
+
typing.Literal["gpt-3.5-turbo-0613"],
|
|
41
|
+
typing.Literal["gpt-3.5-turbo-1106"],
|
|
42
|
+
typing.Literal["gpt-3.5-turbo-0125"],
|
|
43
|
+
typing.Literal["gpt-3.5-turbo-16k-0613"],
|
|
44
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .response_format_text import ResponseFormatText
|
|
5
|
+
from .response_format_json_object import ResponseFormatJsonObject
|
|
6
|
+
from .response_format_json_schema import ResponseFormatJsonSchema
|
|
7
|
+
|
|
8
|
+
CompletionCreateParamsStreamingResponseFormat = typing.Union[
|
|
9
|
+
ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema
|
|
10
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam
|
|
5
|
+
|
|
6
|
+
CompletionCreateParamsStreamingToolChoice = typing.Union[
|
|
7
|
+
typing.Literal["none"], typing.Literal["auto"], typing.Literal["required"], ChatCompletionNamedToolChoiceParam
|
|
8
|
+
]
|
|
@@ -6,7 +6,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
6
6
|
import pydantic
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class FunctionDefinitionInput(UncheckedBaseModel):
|
|
10
10
|
name: str
|
|
11
11
|
description: typing.Optional[str] = None
|
|
12
12
|
parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|