letta-client 0.1.21__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 +124 -63
- letta_client/agents/messages/types/__init__.py +1 -2
- letta_client/base_client.py +4 -0
- letta_client/client.py +0 -4
- 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/tools/client.py +0 -30
- 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/types/tool_create.py +0 -5
- {letta_client-0.1.21.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.21.dist-info/RECORD +0 -179
- {letta_client-0.1.21.dist-info → letta_client-0.1.23.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemEmbeddingConfigEmbeddingEndpointType = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"openai",
|
|
8
|
+
"anthropic",
|
|
9
|
+
"bedrock",
|
|
10
|
+
"cohere",
|
|
11
|
+
"google_ai",
|
|
12
|
+
"azure",
|
|
13
|
+
"groq",
|
|
14
|
+
"ollama",
|
|
15
|
+
"webui",
|
|
16
|
+
"webui-legacy",
|
|
17
|
+
"lmstudio",
|
|
18
|
+
"lmstudio-legacy",
|
|
19
|
+
"llamacpp",
|
|
20
|
+
"koboldcpp",
|
|
21
|
+
"vllm",
|
|
22
|
+
"hugging-face",
|
|
23
|
+
"mistral",
|
|
24
|
+
"together",
|
|
25
|
+
],
|
|
26
|
+
typing.Any,
|
|
27
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
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_sources_item_embedding_config_handle_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemEmbeddingConfigHandleItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemEmbeddingConfigHandle = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemEmbeddingConfigHandleItem]
|
|
13
|
+
],
|
|
14
|
+
typing.Optional[typing.Any],
|
|
15
|
+
]
|
|
@@ -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_sources_item_last_updated_by_id_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemLastUpdatedByIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemLastUpdatedById = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemLastUpdatedByIdItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -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_sources_item_metadata_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemMetadataItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemMetadata = typing.Union[
|
|
9
|
+
typing.Optional[str],
|
|
10
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemMetadataItem]],
|
|
11
|
+
typing.Optional[typing.Any],
|
|
12
|
+
]
|
|
@@ -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_sources_item_organization_id_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemOrganizationIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemOrganizationId = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemOrganizationIdItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -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_sources_item_updated_at_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemUpdatedAtItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemUpdatedAt = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSourcesItemUpdatedAtItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
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_tool_exec_environment_variables_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariables = typing.Union[
|
|
9
|
+
typing.List[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem],
|
|
10
|
+
typing.Optional[typing.Any],
|
|
11
|
+
]
|
|
@@ -0,0 +1,61 @@
|
|
|
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 .templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id import (
|
|
6
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedById,
|
|
7
|
+
)
|
|
8
|
+
from .templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id import (
|
|
9
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemLastUpdatedById,
|
|
10
|
+
)
|
|
11
|
+
from .templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at import (
|
|
12
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedAt,
|
|
13
|
+
)
|
|
14
|
+
from .templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at import (
|
|
15
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemUpdatedAt,
|
|
16
|
+
)
|
|
17
|
+
from .templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_id import (
|
|
18
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemId,
|
|
19
|
+
)
|
|
20
|
+
from .templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description import (
|
|
21
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemDescription,
|
|
22
|
+
)
|
|
23
|
+
from .templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id import (
|
|
24
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemOrganizationId,
|
|
25
|
+
)
|
|
26
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
27
|
+
import pydantic
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem(UncheckedBaseModel):
|
|
31
|
+
created_by_id: typing.Optional[
|
|
32
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedById
|
|
33
|
+
] = None
|
|
34
|
+
last_updated_by_id: typing.Optional[
|
|
35
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemLastUpdatedById
|
|
36
|
+
] = None
|
|
37
|
+
created_at: typing.Optional[
|
|
38
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedAt
|
|
39
|
+
] = None
|
|
40
|
+
updated_at: typing.Optional[
|
|
41
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemUpdatedAt
|
|
42
|
+
] = None
|
|
43
|
+
id: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemId] = None
|
|
44
|
+
key: str
|
|
45
|
+
value: str
|
|
46
|
+
description: typing.Optional[
|
|
47
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemDescription
|
|
48
|
+
] = None
|
|
49
|
+
organization_id: typing.Optional[
|
|
50
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemOrganizationId
|
|
51
|
+
] = None
|
|
52
|
+
agent_id: str
|
|
53
|
+
|
|
54
|
+
if IS_PYDANTIC_V2:
|
|
55
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
56
|
+
else:
|
|
57
|
+
|
|
58
|
+
class Config:
|
|
59
|
+
frozen = True
|
|
60
|
+
smart_union = True
|
|
61
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,17 @@
|
|
|
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_tool_exec_environment_variables_item_created_at_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedAtItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedAt = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[
|
|
13
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedAtItem
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
typing.Optional[typing.Any],
|
|
17
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
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_tool_exec_environment_variables_item_created_by_id_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedByIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedById = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[
|
|
13
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemCreatedByIdItem
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
typing.Optional[typing.Any],
|
|
17
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
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_tool_exec_environment_variables_item_description_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemDescriptionItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemDescription = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[
|
|
13
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemDescriptionItem
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
typing.Optional[typing.Any],
|
|
17
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
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_tool_exec_environment_variables_item_last_updated_by_id_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemLastUpdatedByIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemLastUpdatedById = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[
|
|
13
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemLastUpdatedByIdItem
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
typing.Optional[typing.Any],
|
|
17
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
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_tool_exec_environment_variables_item_organization_id_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemOrganizationIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemOrganizationId = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[
|
|
13
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemOrganizationIdItem
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
typing.Optional[typing.Any],
|
|
17
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
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_tool_exec_environment_variables_item_updated_at_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemUpdatedAtItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemUpdatedAt = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[
|
|
13
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemUpdatedAtItem
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
typing.Optional[typing.Any],
|
|
17
|
+
]
|
|
@@ -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_tool_rules_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRules = typing.Union[
|
|
9
|
+
typing.List[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItem],
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
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_tool_rules_item_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItem = typing.Union[
|
|
9
|
+
typing.List[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem], typing.Optional[str]
|
|
10
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
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 .templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_type import (
|
|
6
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType,
|
|
7
|
+
)
|
|
8
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child import (
|
|
9
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild,
|
|
10
|
+
)
|
|
11
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_require_output_mapping import (
|
|
12
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping,
|
|
13
|
+
)
|
|
14
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
15
|
+
import pydantic
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMapping(UncheckedBaseModel):
|
|
19
|
+
tool_name: str
|
|
20
|
+
type: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType] = None
|
|
21
|
+
default_child: typing.Optional[
|
|
22
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild
|
|
23
|
+
] = None
|
|
24
|
+
child_output_mapping: typing.Optional[typing.Optional[typing.Any]] = None
|
|
25
|
+
require_output_mapping: typing.Optional[
|
|
26
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingRequireOutputMapping
|
|
27
|
+
] = None
|
|
28
|
+
|
|
29
|
+
if IS_PYDANTIC_V2:
|
|
30
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
31
|
+
else:
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
frozen = True
|
|
35
|
+
smart_union = True
|
|
36
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,17 @@
|
|
|
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_tool_rules_item_child_output_mapping_default_child_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingDefaultChildItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingDefaultChild = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[
|
|
13
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingDefaultChildItem
|
|
14
|
+
]
|
|
15
|
+
],
|
|
16
|
+
typing.Optional[typing.Any],
|
|
17
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType = typing.Union[
|
|
6
|
+
typing.Literal["InitToolRule"],
|
|
7
|
+
typing.Literal["TerminalToolRule"],
|
|
8
|
+
typing.Literal["continue_loop"],
|
|
9
|
+
typing.Literal["conditional"],
|
|
10
|
+
typing.Literal["ToolRule"],
|
|
11
|
+
typing.Literal["require_parent_tools"],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -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
|
+
import typing
|
|
5
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_children_type import (
|
|
6
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType,
|
|
7
|
+
)
|
|
8
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildren(UncheckedBaseModel):
|
|
13
|
+
tool_name: str
|
|
14
|
+
type: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType] = None
|
|
15
|
+
children: typing.List[str]
|
|
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,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType = typing.Union[
|
|
6
|
+
typing.Literal["InitToolRule"],
|
|
7
|
+
typing.Literal["TerminalToolRule"],
|
|
8
|
+
typing.Literal["continue_loop"],
|
|
9
|
+
typing.Literal["conditional"],
|
|
10
|
+
typing.Literal["ToolRule"],
|
|
11
|
+
typing.Literal["require_parent_tools"],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
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_tool_rules_item_item_children import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildren,
|
|
6
|
+
)
|
|
7
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_item_one import (
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOne,
|
|
9
|
+
)
|
|
10
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two import (
|
|
11
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwo,
|
|
12
|
+
)
|
|
13
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping import (
|
|
14
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMapping,
|
|
15
|
+
)
|
|
16
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item import (
|
|
17
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem = typing.Union[
|
|
21
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildren,
|
|
22
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOne,
|
|
23
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwo,
|
|
24
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMapping,
|
|
25
|
+
typing.List[TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem],
|
|
26
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
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 .templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_type import (
|
|
6
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType,
|
|
7
|
+
)
|
|
8
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child import (
|
|
9
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild,
|
|
10
|
+
)
|
|
11
|
+
from .templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_require_output_mapping import (
|
|
12
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping,
|
|
13
|
+
)
|
|
14
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
15
|
+
import pydantic
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMapping(UncheckedBaseModel):
|
|
19
|
+
tool_name: str
|
|
20
|
+
type: typing.Optional[
|
|
21
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType
|
|
22
|
+
] = None
|
|
23
|
+
default_child: typing.Optional[
|
|
24
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingDefaultChild
|
|
25
|
+
] = None
|
|
26
|
+
child_output_mapping: typing.Optional[typing.Optional[typing.Any]] = None
|
|
27
|
+
require_output_mapping: typing.Optional[
|
|
28
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingRequireOutputMapping
|
|
29
|
+
] = None
|
|
30
|
+
|
|
31
|
+
if IS_PYDANTIC_V2:
|
|
32
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
33
|
+
else:
|
|
34
|
+
|
|
35
|
+
class Config:
|
|
36
|
+
frozen = True
|
|
37
|
+
smart_union = True
|
|
38
|
+
extra = pydantic.Extra.allow
|