letta-client 0.1.323__py3-none-any.whl → 1.0.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of letta-client might be problematic. Click here for more details.
- letta_client/__init__.py +916 -4
- letta_client/agents/messages/client.py +2 -4
- letta_client/agents/messages/raw_client.py +2 -4
- letta_client/core/client_wrapper.py +2 -2
- letta_client/runs/client.py +2 -2
- letta_client/runs/raw_client.py +2 -2
- letta_client/templates/__init__.py +912 -70
- letta_client/templates/agents/__init__.py +0 -69
- letta_client/templates/agents/client.py +8 -103
- letta_client/templates/agents/raw_client.py +8 -155
- letta_client/templates/client.py +405 -100
- letta_client/templates/raw_client.py +487 -80
- letta_client/templates/types/__init__.py +1820 -8
- letta_client/templates/{agents/types/agents_create_request_initial_message_sequence_item.py → types/templates_create_agents_from_template_request_initial_message_sequence_item.py} +7 -5
- letta_client/templates/{agents/types/agents_create_request_initial_message_sequence_item_role.py → types/templates_create_agents_from_template_request_initial_message_sequence_item_role.py} +1 -1
- letta_client/templates/types/templates_create_agents_from_template_response.py +29 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py +157 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_agent_type.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at.py +14 -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 +14 -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_deployment_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_deployment_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description.py +14 -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 +63 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment.py +14 -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 +14 -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 +14 -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_batch_size.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size.py +16 -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 +16 -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 +28 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle.py +14 -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_enable_sleeptime.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_enable_sleeptime_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_entity_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_entity_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_hidden.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_hidden_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identity_ids.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_completion.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_completion_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_duration_ms.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_duration_ms_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id.py +14 -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 +97 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_compatibility_type.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_compatibility_type_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_enable_reasoner.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_frequency_penalty.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_frequency_penalty_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_reasoning_tokens.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint.py +14 -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 +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper.py +14 -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_provider_category.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_category_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_name.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_name_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs.py +16 -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_reasoning_effort.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_reasoning_effort_item.py +11 -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_llm_config_tier.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_tier_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_verbosity.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_verbosity_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_max_files_open.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_max_files_open_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory.py +35 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_agent_type.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_agent_type_item.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item.py +94 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_base_template_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_base_template_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id.py +14 -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_deployment_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_deployment_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description.py +14 -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_entity_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_entity_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_hidden.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_hidden_item.py +5 -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 +14 -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 +16 -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 +13 -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 +14 -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_preserve_on_migration.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_preserve_on_migration_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_project_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_project_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_read_only.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks.py +11 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item.py +107 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_base_template_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_base_template_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_created_by_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_created_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_deployment_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_deployment_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_description.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_description_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_entity_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_entity_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_hidden.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_hidden_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_id.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_is_template.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_label.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_label_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_accessed_at.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_accessed_at_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_updated_by_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_updated_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_limit.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_metadata.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_metadata_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_name.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_name_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_preserve_on_migration.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_preserve_on_migration_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_project_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_project_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_read_only.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_buffer_autoclear.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids.py +14 -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 +13 -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_multi_agent_group.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids.py +108 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_base_template_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_base_template_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_deployment_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_deployment_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_hidden.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_hidden_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_last_processed_message_id.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_last_processed_message_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_agent_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_agent_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_message_buffer_length.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_message_buffer_length_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_turns.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_turns_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_min_message_buffer_length.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_min_message_buffer_length_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_project_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_project_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_shared_block_ids.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_sleeptime_agent_frequency.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_sleeptime_agent_frequency_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_template_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_template_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_termination_token.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_termination_token_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_turns_counter.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_turns_counter_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item.py +11 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids.py +108 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_base_template_id.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_base_template_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_deployment_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_deployment_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_hidden.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_hidden_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_last_processed_message_id.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_last_processed_message_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_message_buffer_length.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_message_buffer_length_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_turns.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_turns_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_min_message_buffer_length.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_min_message_buffer_length_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_project_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_project_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_shared_block_ids.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_sleeptime_agent_frequency.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_sleeptime_agent_frequency_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_template_id.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_template_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_termination_token.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_termination_token_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_turns_counter.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_turns_counter_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_per_file_view_window_char_limit.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_per_file_view_window_char_limit_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format.py +25 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item.py +20 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_json_schema.py +24 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_json_schema_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_type.py +20 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_zero.py +20 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_json_schema.py +24 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_json_schema_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_type.py +20 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_zero.py +20 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets.py +11 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item.py +54 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_at.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_at_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_by_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_by_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_description.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_description_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_id.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_last_updated_by_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_last_updated_by_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_organization_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_organization_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_updated_at.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_updated_at_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item.py +70 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at.py +14 -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 +14 -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 +14 -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 +67 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment.py +18 -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 +16 -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 +16 -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_batch_size.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size.py +18 -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 +18 -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 +28 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle.py +16 -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_instructions.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_instructions_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id.py +14 -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 +13 -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 +14 -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 +14 -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_sources_item_vector_db_provider.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_timezone.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_timezone_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item.py +62 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at.py +18 -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 +18 -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 +18 -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 +18 -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 +18 -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 +18 -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 +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item.py +11 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args.py +34 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_args.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_args_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes.py +37 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_args.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_args_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_item.py +28 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_item_args.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_item_args_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping.py +43 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child.py +18 -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_prompt_template.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_require_output_mapping.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item.py +43 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args.py +34 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_args.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_args_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes.py +37 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_args.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_args_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_item.py +28 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_item_args.py +17 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item_item_args_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_prompt_template.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping.py +45 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child.py +18 -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_prompt_template.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_require_output_mapping.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit.py +31 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_prompt_template.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_prompt_template.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven.py +31 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit.py +31 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_prompt_template.py +18 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven.py +31 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_prompt_template.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two.py +30 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_prompt_template.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_prompt_template_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_type.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item.py +87 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_args_json_schema.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_args_json_schema_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id.py +13 -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_default_requires_approval.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_default_requires_approval_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description.py +13 -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 +13 -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 +13 -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_metadata.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_metadata_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name.py +13 -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_npm_requirements.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item.py +26 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item_version.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item_version_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_version.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_version_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item.py +12 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item.py +26 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item_version.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item_version_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_version.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_version_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code.py +13 -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 +13 -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 +20 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group.py +90 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_base_template_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_base_template_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_deployment_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_deployment_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_hidden.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_hidden_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_last_processed_message_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_last_processed_message_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_agent_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_agent_id_item.py +5 -0
- letta_client/templates/{agents/types/agents_create_response_group_manager_type.py → types/templates_create_agents_from_template_response_group_manager_type.py} +1 -1
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_message_buffer_length.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_message_buffer_length_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_turns.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_turns_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_min_message_buffer_length.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_min_message_buffer_length_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_project_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_project_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_shared_block_ids.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_sleeptime_agent_frequency.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_sleeptime_agent_frequency_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_template_id.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_template_id_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_termination_token.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_termination_token_item.py +5 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_turns_counter.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_group_turns_counter_item.py +5 -0
- letta_client/templates/types/templates_create_template_request_agent_file.py +5 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item.py +8 -8
- letta_client/templates/types/{templates_get_template_snapshot_response_agents_item_tool_rules_item_one.py → templates_get_template_snapshot_response_agents_item_tool_rules_item_args.py} +2 -1
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_arg_nodes.py +29 -0
- letta_client/templates/types/{templates_get_template_snapshot_response_agents_item_tool_rules_item_zero.py → templates_get_template_snapshot_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item.py} +3 -5
- letta_client/templates/types/templates_update_current_template_from_agent_file_response.py +21 -0
- letta_client/types/__init__.py +4 -0
- letta_client/types/child_tool_rule.py +6 -0
- letta_client/types/init_tool_rule.py +5 -0
- letta_client/types/message.py +5 -0
- letta_client/types/run.py +28 -41
- letta_client/types/run_status.py +5 -0
- letta_client/types/step.py +2 -2
- letta_client/types/step_metrics.py +2 -2
- letta_client/types/tool_call_node.py +35 -0
- {letta_client-0.1.323.dist-info → letta_client-1.0.0a1.dist-info}/METADATA +1 -1
- letta_client-1.0.0a1.dist-info/RECORD +1037 -0
- letta_client/templates/agents/types/__init__.py +0 -79
- letta_client/templates/agents/types/agents_create_response.py +0 -27
- letta_client/templates/agents/types/agents_create_response_group.py +0 -52
- letta_client/templates/agents/types/agents_create_response_group_base_template_id.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_base_template_id_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_deployment_id.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_deployment_id_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_hidden.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_hidden_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_last_processed_message_id.py +0 -14
- letta_client/templates/agents/types/agents_create_response_group_last_processed_message_id_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_manager_agent_id.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_manager_agent_id_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_max_message_buffer_length.py +0 -14
- letta_client/templates/agents/types/agents_create_response_group_max_message_buffer_length_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_max_turns.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_max_turns_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_min_message_buffer_length.py +0 -14
- letta_client/templates/agents/types/agents_create_response_group_min_message_buffer_length_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_project_id.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_project_id_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_shared_block_ids.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_sleeptime_agent_frequency.py +0 -14
- letta_client/templates/agents/types/agents_create_response_group_sleeptime_agent_frequency_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_template_id.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_template_id_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_termination_token.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_termination_token_item.py +0 -5
- letta_client/templates/agents/types/agents_create_response_group_turns_counter.py +0 -12
- letta_client/templates/agents/types/agents_create_response_group_turns_counter_item.py +0 -5
- letta_client-0.1.323.dist-info/RECORD +0 -614
- {letta_client-0.1.323.dist-info → letta_client-1.0.0a1.dist-info}/WHEEL +0 -0
|
@@ -14,7 +14,13 @@ from ..errors.bad_request_error import BadRequestError
|
|
|
14
14
|
from ..errors.conflict_error import ConflictError
|
|
15
15
|
from ..errors.internal_server_error import InternalServerError
|
|
16
16
|
from ..errors.not_found_error import NotFoundError
|
|
17
|
+
from ..errors.payment_required_error import PaymentRequiredError
|
|
17
18
|
from ..types.conflict_error_body import ConflictErrorBody
|
|
19
|
+
from ..types.payment_required_error_body import PaymentRequiredErrorBody
|
|
20
|
+
from .types.templates_create_agents_from_template_request_initial_message_sequence_item import (
|
|
21
|
+
TemplatesCreateAgentsFromTemplateRequestInitialMessageSequenceItem,
|
|
22
|
+
)
|
|
23
|
+
from .types.templates_create_agents_from_template_response import TemplatesCreateAgentsFromTemplateResponse
|
|
18
24
|
from .types.templates_create_template_request import TemplatesCreateTemplateRequest
|
|
19
25
|
from .types.templates_create_template_response import TemplatesCreateTemplateResponse
|
|
20
26
|
from .types.templates_delete_template_response import TemplatesDeleteTemplateResponse
|
|
@@ -27,6 +33,9 @@ from .types.templates_migrate_deployment_response import TemplatesMigrateDeploym
|
|
|
27
33
|
from .types.templates_rename_template_response import TemplatesRenameTemplateResponse
|
|
28
34
|
from .types.templates_save_template_version_response import TemplatesSaveTemplateVersionResponse
|
|
29
35
|
from .types.templates_set_current_template_from_snapshot_response import TemplatesSetCurrentTemplateFromSnapshotResponse
|
|
36
|
+
from .types.templates_update_current_template_from_agent_file_response import (
|
|
37
|
+
TemplatesUpdateCurrentTemplateFromAgentFileResponse,
|
|
38
|
+
)
|
|
30
39
|
from .types.templates_update_template_description_response import TemplatesUpdateTemplateDescriptionResponse
|
|
31
40
|
|
|
32
41
|
# this is used as the default value for optional parameters
|
|
@@ -37,6 +46,105 @@ class RawTemplatesClient:
|
|
|
37
46
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
38
47
|
self._client_wrapper = client_wrapper
|
|
39
48
|
|
|
49
|
+
def createagentsfromtemplate(
|
|
50
|
+
self,
|
|
51
|
+
project_id: str,
|
|
52
|
+
template_version: str,
|
|
53
|
+
*,
|
|
54
|
+
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
55
|
+
agent_name: typing.Optional[str] = OMIT,
|
|
56
|
+
initial_message_sequence: typing.Optional[
|
|
57
|
+
typing.Sequence[TemplatesCreateAgentsFromTemplateRequestInitialMessageSequenceItem]
|
|
58
|
+
] = OMIT,
|
|
59
|
+
memory_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
60
|
+
tool_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
61
|
+
identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
62
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
63
|
+
) -> HttpResponse[TemplatesCreateAgentsFromTemplateResponse]:
|
|
64
|
+
"""
|
|
65
|
+
Creates an Agent or multiple Agents from a template
|
|
66
|
+
|
|
67
|
+
Parameters
|
|
68
|
+
----------
|
|
69
|
+
project_id : str
|
|
70
|
+
The project id
|
|
71
|
+
|
|
72
|
+
template_version : str
|
|
73
|
+
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
74
|
+
|
|
75
|
+
tags : typing.Optional[typing.Sequence[str]]
|
|
76
|
+
The tags to assign to the agent
|
|
77
|
+
|
|
78
|
+
agent_name : typing.Optional[str]
|
|
79
|
+
The name of the agent, optional otherwise a random one will be assigned
|
|
80
|
+
|
|
81
|
+
initial_message_sequence : typing.Optional[typing.Sequence[TemplatesCreateAgentsFromTemplateRequestInitialMessageSequenceItem]]
|
|
82
|
+
Set an initial sequence of messages, if not provided, the agent will start with the default message sequence, if an empty array is provided, the agent will start with no messages
|
|
83
|
+
|
|
84
|
+
memory_variables : typing.Optional[typing.Dict[str, str]]
|
|
85
|
+
The memory variables to assign to the agent
|
|
86
|
+
|
|
87
|
+
tool_variables : typing.Optional[typing.Dict[str, str]]
|
|
88
|
+
The tool variables to assign to the agent
|
|
89
|
+
|
|
90
|
+
identity_ids : typing.Optional[typing.Sequence[str]]
|
|
91
|
+
The identity ids to assign to the agent
|
|
92
|
+
|
|
93
|
+
request_options : typing.Optional[RequestOptions]
|
|
94
|
+
Request-specific configuration.
|
|
95
|
+
|
|
96
|
+
Returns
|
|
97
|
+
-------
|
|
98
|
+
HttpResponse[TemplatesCreateAgentsFromTemplateResponse]
|
|
99
|
+
201
|
|
100
|
+
"""
|
|
101
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
102
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/agents",
|
|
103
|
+
method="POST",
|
|
104
|
+
json={
|
|
105
|
+
"tags": tags,
|
|
106
|
+
"agent_name": agent_name,
|
|
107
|
+
"initial_message_sequence": convert_and_respect_annotation_metadata(
|
|
108
|
+
object_=initial_message_sequence,
|
|
109
|
+
annotation=typing.Sequence[TemplatesCreateAgentsFromTemplateRequestInitialMessageSequenceItem],
|
|
110
|
+
direction="write",
|
|
111
|
+
),
|
|
112
|
+
"memory_variables": memory_variables,
|
|
113
|
+
"tool_variables": tool_variables,
|
|
114
|
+
"identity_ids": identity_ids,
|
|
115
|
+
},
|
|
116
|
+
headers={
|
|
117
|
+
"content-type": "application/json",
|
|
118
|
+
},
|
|
119
|
+
request_options=request_options,
|
|
120
|
+
omit=OMIT,
|
|
121
|
+
)
|
|
122
|
+
try:
|
|
123
|
+
if 200 <= _response.status_code < 300:
|
|
124
|
+
_data = typing.cast(
|
|
125
|
+
TemplatesCreateAgentsFromTemplateResponse,
|
|
126
|
+
construct_type(
|
|
127
|
+
type_=TemplatesCreateAgentsFromTemplateResponse, # type: ignore
|
|
128
|
+
object_=_response.json(),
|
|
129
|
+
),
|
|
130
|
+
)
|
|
131
|
+
return HttpResponse(response=_response, data=_data)
|
|
132
|
+
if _response.status_code == 402:
|
|
133
|
+
raise PaymentRequiredError(
|
|
134
|
+
headers=dict(_response.headers),
|
|
135
|
+
body=typing.cast(
|
|
136
|
+
PaymentRequiredErrorBody,
|
|
137
|
+
construct_type(
|
|
138
|
+
type_=PaymentRequiredErrorBody, # type: ignore
|
|
139
|
+
object_=_response.json(),
|
|
140
|
+
),
|
|
141
|
+
),
|
|
142
|
+
)
|
|
143
|
+
_response_json = _response.json()
|
|
144
|
+
except JSONDecodeError:
|
|
145
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
146
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
147
|
+
|
|
40
148
|
def list(
|
|
41
149
|
self,
|
|
42
150
|
*,
|
|
@@ -121,7 +229,7 @@ class RawTemplatesClient:
|
|
|
121
229
|
|
|
122
230
|
def savetemplateversion(
|
|
123
231
|
self,
|
|
124
|
-
|
|
232
|
+
project_id: str,
|
|
125
233
|
template_name: str,
|
|
126
234
|
*,
|
|
127
235
|
preserve_environment_variables_on_migration: typing.Optional[bool] = OMIT,
|
|
@@ -135,8 +243,8 @@ class RawTemplatesClient:
|
|
|
135
243
|
|
|
136
244
|
Parameters
|
|
137
245
|
----------
|
|
138
|
-
|
|
139
|
-
The project
|
|
246
|
+
project_id : str
|
|
247
|
+
The project id
|
|
140
248
|
|
|
141
249
|
template_name : str
|
|
142
250
|
The template version, formatted as {template-name}, any version appended will be ignored
|
|
@@ -162,7 +270,7 @@ class RawTemplatesClient:
|
|
|
162
270
|
200
|
|
163
271
|
"""
|
|
164
272
|
_response = self._client_wrapper.httpx_client.request(
|
|
165
|
-
f"v1/templates/{jsonable_encoder(
|
|
273
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}",
|
|
166
274
|
method="POST",
|
|
167
275
|
json={
|
|
168
276
|
"preserve_environment_variables_on_migration": preserve_environment_variables_on_migration,
|
|
@@ -203,15 +311,15 @@ class RawTemplatesClient:
|
|
|
203
311
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
204
312
|
|
|
205
313
|
def deletetemplate(
|
|
206
|
-
self,
|
|
314
|
+
self, project_id: str, template_name: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
207
315
|
) -> HttpResponse[TemplatesDeleteTemplateResponse]:
|
|
208
316
|
"""
|
|
209
317
|
Deletes all versions of a template with the specified name
|
|
210
318
|
|
|
211
319
|
Parameters
|
|
212
320
|
----------
|
|
213
|
-
|
|
214
|
-
The project
|
|
321
|
+
project_id : str
|
|
322
|
+
The project id
|
|
215
323
|
|
|
216
324
|
template_name : str
|
|
217
325
|
The template name (without version)
|
|
@@ -225,7 +333,7 @@ class RawTemplatesClient:
|
|
|
225
333
|
200
|
|
226
334
|
"""
|
|
227
335
|
_response = self._client_wrapper.httpx_client.request(
|
|
228
|
-
f"v1/templates/{jsonable_encoder(
|
|
336
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}",
|
|
229
337
|
method="DELETE",
|
|
230
338
|
json={},
|
|
231
339
|
headers={
|
|
@@ -261,15 +369,15 @@ class RawTemplatesClient:
|
|
|
261
369
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
262
370
|
|
|
263
371
|
def gettemplatesnapshot(
|
|
264
|
-
self,
|
|
372
|
+
self, project_id: str, template_version: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
265
373
|
) -> HttpResponse[TemplatesGetTemplateSnapshotResponse]:
|
|
266
374
|
"""
|
|
267
375
|
Get a snapshot of the template version, this will return the template state at a specific version
|
|
268
376
|
|
|
269
377
|
Parameters
|
|
270
378
|
----------
|
|
271
|
-
|
|
272
|
-
The project
|
|
379
|
+
project_id : str
|
|
380
|
+
The project id
|
|
273
381
|
|
|
274
382
|
template_version : str
|
|
275
383
|
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
@@ -283,7 +391,7 @@ class RawTemplatesClient:
|
|
|
283
391
|
200
|
|
284
392
|
"""
|
|
285
393
|
_response = self._client_wrapper.httpx_client.request(
|
|
286
|
-
f"v1/templates/{jsonable_encoder(
|
|
394
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/snapshot",
|
|
287
395
|
method="GET",
|
|
288
396
|
request_options=request_options,
|
|
289
397
|
)
|
|
@@ -304,7 +412,7 @@ class RawTemplatesClient:
|
|
|
304
412
|
|
|
305
413
|
def setcurrenttemplatefromsnapshot(
|
|
306
414
|
self,
|
|
307
|
-
|
|
415
|
+
project_id: str,
|
|
308
416
|
template_version: str,
|
|
309
417
|
*,
|
|
310
418
|
request: typing.Optional[typing.Any] = None,
|
|
@@ -315,8 +423,8 @@ class RawTemplatesClient:
|
|
|
315
423
|
|
|
316
424
|
Parameters
|
|
317
425
|
----------
|
|
318
|
-
|
|
319
|
-
The project
|
|
426
|
+
project_id : str
|
|
427
|
+
The project id
|
|
320
428
|
|
|
321
429
|
template_version : str
|
|
322
430
|
The template name with :current version (e.g., my-template:current)
|
|
@@ -332,7 +440,7 @@ class RawTemplatesClient:
|
|
|
332
440
|
200
|
|
333
441
|
"""
|
|
334
442
|
_response = self._client_wrapper.httpx_client.request(
|
|
335
|
-
f"v1/templates/{jsonable_encoder(
|
|
443
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/snapshot",
|
|
336
444
|
method="PUT",
|
|
337
445
|
json=request,
|
|
338
446
|
headers={
|
|
@@ -391,7 +499,7 @@ class RawTemplatesClient:
|
|
|
391
499
|
|
|
392
500
|
def forktemplate(
|
|
393
501
|
self,
|
|
394
|
-
|
|
502
|
+
project_id: str,
|
|
395
503
|
template_version: str,
|
|
396
504
|
*,
|
|
397
505
|
name: typing.Optional[str] = OMIT,
|
|
@@ -402,8 +510,8 @@ class RawTemplatesClient:
|
|
|
402
510
|
|
|
403
511
|
Parameters
|
|
404
512
|
----------
|
|
405
|
-
|
|
406
|
-
The project
|
|
513
|
+
project_id : str
|
|
514
|
+
The project id
|
|
407
515
|
|
|
408
516
|
template_version : str
|
|
409
517
|
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
@@ -420,7 +528,7 @@ class RawTemplatesClient:
|
|
|
420
528
|
200
|
|
421
529
|
"""
|
|
422
530
|
_response = self._client_wrapper.httpx_client.request(
|
|
423
|
-
f"v1/templates/{jsonable_encoder(
|
|
531
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/fork",
|
|
424
532
|
method="POST",
|
|
425
533
|
json={
|
|
426
534
|
"name": name,
|
|
@@ -459,7 +567,7 @@ class RawTemplatesClient:
|
|
|
459
567
|
|
|
460
568
|
def createtemplate(
|
|
461
569
|
self,
|
|
462
|
-
|
|
570
|
+
project_id: str,
|
|
463
571
|
*,
|
|
464
572
|
request: TemplatesCreateTemplateRequest,
|
|
465
573
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -469,8 +577,8 @@ class RawTemplatesClient:
|
|
|
469
577
|
|
|
470
578
|
Parameters
|
|
471
579
|
----------
|
|
472
|
-
|
|
473
|
-
The project
|
|
580
|
+
project_id : str
|
|
581
|
+
The project id
|
|
474
582
|
|
|
475
583
|
request : TemplatesCreateTemplateRequest
|
|
476
584
|
|
|
@@ -483,7 +591,7 @@ class RawTemplatesClient:
|
|
|
483
591
|
201
|
|
484
592
|
"""
|
|
485
593
|
_response = self._client_wrapper.httpx_client.request(
|
|
486
|
-
f"v1/templates/{jsonable_encoder(
|
|
594
|
+
f"v1/templates/{jsonable_encoder(project_id)}",
|
|
487
595
|
method="POST",
|
|
488
596
|
json=convert_and_respect_annotation_metadata(
|
|
489
597
|
object_=request, annotation=TemplatesCreateTemplateRequest, direction="write"
|
|
@@ -522,7 +630,7 @@ class RawTemplatesClient:
|
|
|
522
630
|
|
|
523
631
|
def renametemplate(
|
|
524
632
|
self,
|
|
525
|
-
|
|
633
|
+
project_id: str,
|
|
526
634
|
template_name: str,
|
|
527
635
|
*,
|
|
528
636
|
new_name: str,
|
|
@@ -533,8 +641,8 @@ class RawTemplatesClient:
|
|
|
533
641
|
|
|
534
642
|
Parameters
|
|
535
643
|
----------
|
|
536
|
-
|
|
537
|
-
The project
|
|
644
|
+
project_id : str
|
|
645
|
+
The project id
|
|
538
646
|
|
|
539
647
|
template_name : str
|
|
540
648
|
The current template name (version will be automatically stripped if included)
|
|
@@ -551,7 +659,7 @@ class RawTemplatesClient:
|
|
|
551
659
|
200
|
|
552
660
|
"""
|
|
553
661
|
_response = self._client_wrapper.httpx_client.request(
|
|
554
|
-
f"v1/templates/{jsonable_encoder(
|
|
662
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/name",
|
|
555
663
|
method="PATCH",
|
|
556
664
|
json={
|
|
557
665
|
"new_name": new_name,
|
|
@@ -612,7 +720,7 @@ class RawTemplatesClient:
|
|
|
612
720
|
|
|
613
721
|
def updatetemplatedescription(
|
|
614
722
|
self,
|
|
615
|
-
|
|
723
|
+
project_id: str,
|
|
616
724
|
template_name: str,
|
|
617
725
|
*,
|
|
618
726
|
description: typing.Optional[str] = OMIT,
|
|
@@ -623,8 +731,8 @@ class RawTemplatesClient:
|
|
|
623
731
|
|
|
624
732
|
Parameters
|
|
625
733
|
----------
|
|
626
|
-
|
|
627
|
-
The project
|
|
734
|
+
project_id : str
|
|
735
|
+
The project id
|
|
628
736
|
|
|
629
737
|
template_name : str
|
|
630
738
|
The template name (version will be automatically stripped if included)
|
|
@@ -641,7 +749,7 @@ class RawTemplatesClient:
|
|
|
641
749
|
200
|
|
642
750
|
"""
|
|
643
751
|
_response = self._client_wrapper.httpx_client.request(
|
|
644
|
-
f"v1/templates/{jsonable_encoder(
|
|
752
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/description",
|
|
645
753
|
method="PATCH",
|
|
646
754
|
json={
|
|
647
755
|
"description": description,
|
|
@@ -691,7 +799,7 @@ class RawTemplatesClient:
|
|
|
691
799
|
|
|
692
800
|
def listtemplateversions(
|
|
693
801
|
self,
|
|
694
|
-
|
|
802
|
+
project_id: str,
|
|
695
803
|
name: str,
|
|
696
804
|
*,
|
|
697
805
|
offset: typing.Optional[str] = None,
|
|
@@ -703,8 +811,8 @@ class RawTemplatesClient:
|
|
|
703
811
|
|
|
704
812
|
Parameters
|
|
705
813
|
----------
|
|
706
|
-
|
|
707
|
-
The project
|
|
814
|
+
project_id : str
|
|
815
|
+
The project id
|
|
708
816
|
|
|
709
817
|
name : str
|
|
710
818
|
The template name (without version)
|
|
@@ -722,7 +830,7 @@ class RawTemplatesClient:
|
|
|
722
830
|
200
|
|
723
831
|
"""
|
|
724
832
|
_response = self._client_wrapper.httpx_client.request(
|
|
725
|
-
f"v1/templates/{jsonable_encoder(
|
|
833
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(name)}/versions",
|
|
726
834
|
method="GET",
|
|
727
835
|
params={
|
|
728
836
|
"offset": offset,
|
|
@@ -758,7 +866,7 @@ class RawTemplatesClient:
|
|
|
758
866
|
|
|
759
867
|
def migratedeployment(
|
|
760
868
|
self,
|
|
761
|
-
|
|
869
|
+
project_id: str,
|
|
762
870
|
template_name: str,
|
|
763
871
|
deployment_id: str,
|
|
764
872
|
*,
|
|
@@ -773,8 +881,8 @@ class RawTemplatesClient:
|
|
|
773
881
|
|
|
774
882
|
Parameters
|
|
775
883
|
----------
|
|
776
|
-
|
|
777
|
-
The project
|
|
884
|
+
project_id : str
|
|
885
|
+
The project id
|
|
778
886
|
|
|
779
887
|
template_name : str
|
|
780
888
|
The template name (without version)
|
|
@@ -803,7 +911,7 @@ class RawTemplatesClient:
|
|
|
803
911
|
200
|
|
804
912
|
"""
|
|
805
913
|
_response = self._client_wrapper.httpx_client.request(
|
|
806
|
-
f"v1/templates/{jsonable_encoder(
|
|
914
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/deployments/{jsonable_encoder(deployment_id)}/migrate",
|
|
807
915
|
method="POST",
|
|
808
916
|
json={
|
|
809
917
|
"version": version,
|
|
@@ -865,11 +973,210 @@ class RawTemplatesClient:
|
|
|
865
973
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
866
974
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
867
975
|
|
|
976
|
+
def updatecurrenttemplatefromagentfile(
|
|
977
|
+
self,
|
|
978
|
+
project_id: str,
|
|
979
|
+
template_name: str,
|
|
980
|
+
*,
|
|
981
|
+
agent_file_json: typing.Dict[str, typing.Optional[typing.Any]],
|
|
982
|
+
update_existing_tools: typing.Optional[bool] = OMIT,
|
|
983
|
+
save_existing_changes: typing.Optional[bool] = OMIT,
|
|
984
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
985
|
+
) -> HttpResponse[TemplatesUpdateCurrentTemplateFromAgentFileResponse]:
|
|
986
|
+
"""
|
|
987
|
+
Updates the current working version of a template from an agent file
|
|
988
|
+
|
|
989
|
+
Parameters
|
|
990
|
+
----------
|
|
991
|
+
project_id : str
|
|
992
|
+
The project id
|
|
993
|
+
|
|
994
|
+
template_name : str
|
|
995
|
+
The template name (without version)
|
|
996
|
+
|
|
997
|
+
agent_file_json : typing.Dict[str, typing.Optional[typing.Any]]
|
|
998
|
+
The agent file to update the current template version from
|
|
999
|
+
|
|
1000
|
+
update_existing_tools : typing.Optional[bool]
|
|
1001
|
+
If true, update existing custom tools source_code and json_schema (source_type cannot be changed)
|
|
1002
|
+
|
|
1003
|
+
save_existing_changes : typing.Optional[bool]
|
|
1004
|
+
If true, Letta will automatically save any changes as a version before updating the template
|
|
1005
|
+
|
|
1006
|
+
request_options : typing.Optional[RequestOptions]
|
|
1007
|
+
Request-specific configuration.
|
|
1008
|
+
|
|
1009
|
+
Returns
|
|
1010
|
+
-------
|
|
1011
|
+
HttpResponse[TemplatesUpdateCurrentTemplateFromAgentFileResponse]
|
|
1012
|
+
200
|
|
1013
|
+
"""
|
|
1014
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
1015
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/agent-file",
|
|
1016
|
+
method="PUT",
|
|
1017
|
+
json={
|
|
1018
|
+
"agent_file_json": agent_file_json,
|
|
1019
|
+
"update_existing_tools": update_existing_tools,
|
|
1020
|
+
"save_existing_changes": save_existing_changes,
|
|
1021
|
+
},
|
|
1022
|
+
headers={
|
|
1023
|
+
"content-type": "application/json",
|
|
1024
|
+
},
|
|
1025
|
+
request_options=request_options,
|
|
1026
|
+
omit=OMIT,
|
|
1027
|
+
)
|
|
1028
|
+
try:
|
|
1029
|
+
if 200 <= _response.status_code < 300:
|
|
1030
|
+
_data = typing.cast(
|
|
1031
|
+
TemplatesUpdateCurrentTemplateFromAgentFileResponse,
|
|
1032
|
+
construct_type(
|
|
1033
|
+
type_=TemplatesUpdateCurrentTemplateFromAgentFileResponse, # type: ignore
|
|
1034
|
+
object_=_response.json(),
|
|
1035
|
+
),
|
|
1036
|
+
)
|
|
1037
|
+
return HttpResponse(response=_response, data=_data)
|
|
1038
|
+
if _response.status_code == 400:
|
|
1039
|
+
raise BadRequestError(
|
|
1040
|
+
headers=dict(_response.headers),
|
|
1041
|
+
body=typing.cast(
|
|
1042
|
+
typing.Optional[typing.Any],
|
|
1043
|
+
construct_type(
|
|
1044
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1045
|
+
object_=_response.json(),
|
|
1046
|
+
),
|
|
1047
|
+
),
|
|
1048
|
+
)
|
|
1049
|
+
if _response.status_code == 404:
|
|
1050
|
+
raise NotFoundError(
|
|
1051
|
+
headers=dict(_response.headers),
|
|
1052
|
+
body=typing.cast(
|
|
1053
|
+
typing.Optional[typing.Any],
|
|
1054
|
+
construct_type(
|
|
1055
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1056
|
+
object_=_response.json(),
|
|
1057
|
+
),
|
|
1058
|
+
),
|
|
1059
|
+
)
|
|
1060
|
+
if _response.status_code == 500:
|
|
1061
|
+
raise InternalServerError(
|
|
1062
|
+
headers=dict(_response.headers),
|
|
1063
|
+
body=typing.cast(
|
|
1064
|
+
typing.Optional[typing.Any],
|
|
1065
|
+
construct_type(
|
|
1066
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1067
|
+
object_=_response.json(),
|
|
1068
|
+
),
|
|
1069
|
+
),
|
|
1070
|
+
)
|
|
1071
|
+
_response_json = _response.json()
|
|
1072
|
+
except JSONDecodeError:
|
|
1073
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
1074
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1075
|
+
|
|
868
1076
|
|
|
869
1077
|
class AsyncRawTemplatesClient:
|
|
870
1078
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
871
1079
|
self._client_wrapper = client_wrapper
|
|
872
1080
|
|
|
1081
|
+
async def createagentsfromtemplate(
|
|
1082
|
+
self,
|
|
1083
|
+
project_id: str,
|
|
1084
|
+
template_version: str,
|
|
1085
|
+
*,
|
|
1086
|
+
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
1087
|
+
agent_name: typing.Optional[str] = OMIT,
|
|
1088
|
+
initial_message_sequence: typing.Optional[
|
|
1089
|
+
typing.Sequence[TemplatesCreateAgentsFromTemplateRequestInitialMessageSequenceItem]
|
|
1090
|
+
] = OMIT,
|
|
1091
|
+
memory_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
1092
|
+
tool_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
1093
|
+
identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
1094
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
1095
|
+
) -> AsyncHttpResponse[TemplatesCreateAgentsFromTemplateResponse]:
|
|
1096
|
+
"""
|
|
1097
|
+
Creates an Agent or multiple Agents from a template
|
|
1098
|
+
|
|
1099
|
+
Parameters
|
|
1100
|
+
----------
|
|
1101
|
+
project_id : str
|
|
1102
|
+
The project id
|
|
1103
|
+
|
|
1104
|
+
template_version : str
|
|
1105
|
+
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
1106
|
+
|
|
1107
|
+
tags : typing.Optional[typing.Sequence[str]]
|
|
1108
|
+
The tags to assign to the agent
|
|
1109
|
+
|
|
1110
|
+
agent_name : typing.Optional[str]
|
|
1111
|
+
The name of the agent, optional otherwise a random one will be assigned
|
|
1112
|
+
|
|
1113
|
+
initial_message_sequence : typing.Optional[typing.Sequence[TemplatesCreateAgentsFromTemplateRequestInitialMessageSequenceItem]]
|
|
1114
|
+
Set an initial sequence of messages, if not provided, the agent will start with the default message sequence, if an empty array is provided, the agent will start with no messages
|
|
1115
|
+
|
|
1116
|
+
memory_variables : typing.Optional[typing.Dict[str, str]]
|
|
1117
|
+
The memory variables to assign to the agent
|
|
1118
|
+
|
|
1119
|
+
tool_variables : typing.Optional[typing.Dict[str, str]]
|
|
1120
|
+
The tool variables to assign to the agent
|
|
1121
|
+
|
|
1122
|
+
identity_ids : typing.Optional[typing.Sequence[str]]
|
|
1123
|
+
The identity ids to assign to the agent
|
|
1124
|
+
|
|
1125
|
+
request_options : typing.Optional[RequestOptions]
|
|
1126
|
+
Request-specific configuration.
|
|
1127
|
+
|
|
1128
|
+
Returns
|
|
1129
|
+
-------
|
|
1130
|
+
AsyncHttpResponse[TemplatesCreateAgentsFromTemplateResponse]
|
|
1131
|
+
201
|
|
1132
|
+
"""
|
|
1133
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
1134
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/agents",
|
|
1135
|
+
method="POST",
|
|
1136
|
+
json={
|
|
1137
|
+
"tags": tags,
|
|
1138
|
+
"agent_name": agent_name,
|
|
1139
|
+
"initial_message_sequence": convert_and_respect_annotation_metadata(
|
|
1140
|
+
object_=initial_message_sequence,
|
|
1141
|
+
annotation=typing.Sequence[TemplatesCreateAgentsFromTemplateRequestInitialMessageSequenceItem],
|
|
1142
|
+
direction="write",
|
|
1143
|
+
),
|
|
1144
|
+
"memory_variables": memory_variables,
|
|
1145
|
+
"tool_variables": tool_variables,
|
|
1146
|
+
"identity_ids": identity_ids,
|
|
1147
|
+
},
|
|
1148
|
+
headers={
|
|
1149
|
+
"content-type": "application/json",
|
|
1150
|
+
},
|
|
1151
|
+
request_options=request_options,
|
|
1152
|
+
omit=OMIT,
|
|
1153
|
+
)
|
|
1154
|
+
try:
|
|
1155
|
+
if 200 <= _response.status_code < 300:
|
|
1156
|
+
_data = typing.cast(
|
|
1157
|
+
TemplatesCreateAgentsFromTemplateResponse,
|
|
1158
|
+
construct_type(
|
|
1159
|
+
type_=TemplatesCreateAgentsFromTemplateResponse, # type: ignore
|
|
1160
|
+
object_=_response.json(),
|
|
1161
|
+
),
|
|
1162
|
+
)
|
|
1163
|
+
return AsyncHttpResponse(response=_response, data=_data)
|
|
1164
|
+
if _response.status_code == 402:
|
|
1165
|
+
raise PaymentRequiredError(
|
|
1166
|
+
headers=dict(_response.headers),
|
|
1167
|
+
body=typing.cast(
|
|
1168
|
+
PaymentRequiredErrorBody,
|
|
1169
|
+
construct_type(
|
|
1170
|
+
type_=PaymentRequiredErrorBody, # type: ignore
|
|
1171
|
+
object_=_response.json(),
|
|
1172
|
+
),
|
|
1173
|
+
),
|
|
1174
|
+
)
|
|
1175
|
+
_response_json = _response.json()
|
|
1176
|
+
except JSONDecodeError:
|
|
1177
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
1178
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1179
|
+
|
|
873
1180
|
async def list(
|
|
874
1181
|
self,
|
|
875
1182
|
*,
|
|
@@ -954,7 +1261,7 @@ class AsyncRawTemplatesClient:
|
|
|
954
1261
|
|
|
955
1262
|
async def savetemplateversion(
|
|
956
1263
|
self,
|
|
957
|
-
|
|
1264
|
+
project_id: str,
|
|
958
1265
|
template_name: str,
|
|
959
1266
|
*,
|
|
960
1267
|
preserve_environment_variables_on_migration: typing.Optional[bool] = OMIT,
|
|
@@ -968,8 +1275,8 @@ class AsyncRawTemplatesClient:
|
|
|
968
1275
|
|
|
969
1276
|
Parameters
|
|
970
1277
|
----------
|
|
971
|
-
|
|
972
|
-
The project
|
|
1278
|
+
project_id : str
|
|
1279
|
+
The project id
|
|
973
1280
|
|
|
974
1281
|
template_name : str
|
|
975
1282
|
The template version, formatted as {template-name}, any version appended will be ignored
|
|
@@ -995,7 +1302,7 @@ class AsyncRawTemplatesClient:
|
|
|
995
1302
|
200
|
|
996
1303
|
"""
|
|
997
1304
|
_response = await self._client_wrapper.httpx_client.request(
|
|
998
|
-
f"v1/templates/{jsonable_encoder(
|
|
1305
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}",
|
|
999
1306
|
method="POST",
|
|
1000
1307
|
json={
|
|
1001
1308
|
"preserve_environment_variables_on_migration": preserve_environment_variables_on_migration,
|
|
@@ -1036,15 +1343,15 @@ class AsyncRawTemplatesClient:
|
|
|
1036
1343
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1037
1344
|
|
|
1038
1345
|
async def deletetemplate(
|
|
1039
|
-
self,
|
|
1346
|
+
self, project_id: str, template_name: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1040
1347
|
) -> AsyncHttpResponse[TemplatesDeleteTemplateResponse]:
|
|
1041
1348
|
"""
|
|
1042
1349
|
Deletes all versions of a template with the specified name
|
|
1043
1350
|
|
|
1044
1351
|
Parameters
|
|
1045
1352
|
----------
|
|
1046
|
-
|
|
1047
|
-
The project
|
|
1353
|
+
project_id : str
|
|
1354
|
+
The project id
|
|
1048
1355
|
|
|
1049
1356
|
template_name : str
|
|
1050
1357
|
The template name (without version)
|
|
@@ -1058,7 +1365,7 @@ class AsyncRawTemplatesClient:
|
|
|
1058
1365
|
200
|
|
1059
1366
|
"""
|
|
1060
1367
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1061
|
-
f"v1/templates/{jsonable_encoder(
|
|
1368
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}",
|
|
1062
1369
|
method="DELETE",
|
|
1063
1370
|
json={},
|
|
1064
1371
|
headers={
|
|
@@ -1094,15 +1401,15 @@ class AsyncRawTemplatesClient:
|
|
|
1094
1401
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1095
1402
|
|
|
1096
1403
|
async def gettemplatesnapshot(
|
|
1097
|
-
self,
|
|
1404
|
+
self, project_id: str, template_version: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1098
1405
|
) -> AsyncHttpResponse[TemplatesGetTemplateSnapshotResponse]:
|
|
1099
1406
|
"""
|
|
1100
1407
|
Get a snapshot of the template version, this will return the template state at a specific version
|
|
1101
1408
|
|
|
1102
1409
|
Parameters
|
|
1103
1410
|
----------
|
|
1104
|
-
|
|
1105
|
-
The project
|
|
1411
|
+
project_id : str
|
|
1412
|
+
The project id
|
|
1106
1413
|
|
|
1107
1414
|
template_version : str
|
|
1108
1415
|
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
@@ -1116,7 +1423,7 @@ class AsyncRawTemplatesClient:
|
|
|
1116
1423
|
200
|
|
1117
1424
|
"""
|
|
1118
1425
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1119
|
-
f"v1/templates/{jsonable_encoder(
|
|
1426
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/snapshot",
|
|
1120
1427
|
method="GET",
|
|
1121
1428
|
request_options=request_options,
|
|
1122
1429
|
)
|
|
@@ -1137,7 +1444,7 @@ class AsyncRawTemplatesClient:
|
|
|
1137
1444
|
|
|
1138
1445
|
async def setcurrenttemplatefromsnapshot(
|
|
1139
1446
|
self,
|
|
1140
|
-
|
|
1447
|
+
project_id: str,
|
|
1141
1448
|
template_version: str,
|
|
1142
1449
|
*,
|
|
1143
1450
|
request: typing.Optional[typing.Any] = None,
|
|
@@ -1148,8 +1455,8 @@ class AsyncRawTemplatesClient:
|
|
|
1148
1455
|
|
|
1149
1456
|
Parameters
|
|
1150
1457
|
----------
|
|
1151
|
-
|
|
1152
|
-
The project
|
|
1458
|
+
project_id : str
|
|
1459
|
+
The project id
|
|
1153
1460
|
|
|
1154
1461
|
template_version : str
|
|
1155
1462
|
The template name with :current version (e.g., my-template:current)
|
|
@@ -1165,7 +1472,7 @@ class AsyncRawTemplatesClient:
|
|
|
1165
1472
|
200
|
|
1166
1473
|
"""
|
|
1167
1474
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1168
|
-
f"v1/templates/{jsonable_encoder(
|
|
1475
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/snapshot",
|
|
1169
1476
|
method="PUT",
|
|
1170
1477
|
json=request,
|
|
1171
1478
|
headers={
|
|
@@ -1224,7 +1531,7 @@ class AsyncRawTemplatesClient:
|
|
|
1224
1531
|
|
|
1225
1532
|
async def forktemplate(
|
|
1226
1533
|
self,
|
|
1227
|
-
|
|
1534
|
+
project_id: str,
|
|
1228
1535
|
template_version: str,
|
|
1229
1536
|
*,
|
|
1230
1537
|
name: typing.Optional[str] = OMIT,
|
|
@@ -1235,8 +1542,8 @@ class AsyncRawTemplatesClient:
|
|
|
1235
1542
|
|
|
1236
1543
|
Parameters
|
|
1237
1544
|
----------
|
|
1238
|
-
|
|
1239
|
-
The project
|
|
1545
|
+
project_id : str
|
|
1546
|
+
The project id
|
|
1240
1547
|
|
|
1241
1548
|
template_version : str
|
|
1242
1549
|
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
@@ -1253,7 +1560,7 @@ class AsyncRawTemplatesClient:
|
|
|
1253
1560
|
200
|
|
1254
1561
|
"""
|
|
1255
1562
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1256
|
-
f"v1/templates/{jsonable_encoder(
|
|
1563
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_version)}/fork",
|
|
1257
1564
|
method="POST",
|
|
1258
1565
|
json={
|
|
1259
1566
|
"name": name,
|
|
@@ -1292,7 +1599,7 @@ class AsyncRawTemplatesClient:
|
|
|
1292
1599
|
|
|
1293
1600
|
async def createtemplate(
|
|
1294
1601
|
self,
|
|
1295
|
-
|
|
1602
|
+
project_id: str,
|
|
1296
1603
|
*,
|
|
1297
1604
|
request: TemplatesCreateTemplateRequest,
|
|
1298
1605
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -1302,8 +1609,8 @@ class AsyncRawTemplatesClient:
|
|
|
1302
1609
|
|
|
1303
1610
|
Parameters
|
|
1304
1611
|
----------
|
|
1305
|
-
|
|
1306
|
-
The project
|
|
1612
|
+
project_id : str
|
|
1613
|
+
The project id
|
|
1307
1614
|
|
|
1308
1615
|
request : TemplatesCreateTemplateRequest
|
|
1309
1616
|
|
|
@@ -1316,7 +1623,7 @@ class AsyncRawTemplatesClient:
|
|
|
1316
1623
|
201
|
|
1317
1624
|
"""
|
|
1318
1625
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1319
|
-
f"v1/templates/{jsonable_encoder(
|
|
1626
|
+
f"v1/templates/{jsonable_encoder(project_id)}",
|
|
1320
1627
|
method="POST",
|
|
1321
1628
|
json=convert_and_respect_annotation_metadata(
|
|
1322
1629
|
object_=request, annotation=TemplatesCreateTemplateRequest, direction="write"
|
|
@@ -1355,7 +1662,7 @@ class AsyncRawTemplatesClient:
|
|
|
1355
1662
|
|
|
1356
1663
|
async def renametemplate(
|
|
1357
1664
|
self,
|
|
1358
|
-
|
|
1665
|
+
project_id: str,
|
|
1359
1666
|
template_name: str,
|
|
1360
1667
|
*,
|
|
1361
1668
|
new_name: str,
|
|
@@ -1366,8 +1673,8 @@ class AsyncRawTemplatesClient:
|
|
|
1366
1673
|
|
|
1367
1674
|
Parameters
|
|
1368
1675
|
----------
|
|
1369
|
-
|
|
1370
|
-
The project
|
|
1676
|
+
project_id : str
|
|
1677
|
+
The project id
|
|
1371
1678
|
|
|
1372
1679
|
template_name : str
|
|
1373
1680
|
The current template name (version will be automatically stripped if included)
|
|
@@ -1384,7 +1691,7 @@ class AsyncRawTemplatesClient:
|
|
|
1384
1691
|
200
|
|
1385
1692
|
"""
|
|
1386
1693
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1387
|
-
f"v1/templates/{jsonable_encoder(
|
|
1694
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/name",
|
|
1388
1695
|
method="PATCH",
|
|
1389
1696
|
json={
|
|
1390
1697
|
"new_name": new_name,
|
|
@@ -1445,7 +1752,7 @@ class AsyncRawTemplatesClient:
|
|
|
1445
1752
|
|
|
1446
1753
|
async def updatetemplatedescription(
|
|
1447
1754
|
self,
|
|
1448
|
-
|
|
1755
|
+
project_id: str,
|
|
1449
1756
|
template_name: str,
|
|
1450
1757
|
*,
|
|
1451
1758
|
description: typing.Optional[str] = OMIT,
|
|
@@ -1456,8 +1763,8 @@ class AsyncRawTemplatesClient:
|
|
|
1456
1763
|
|
|
1457
1764
|
Parameters
|
|
1458
1765
|
----------
|
|
1459
|
-
|
|
1460
|
-
The project
|
|
1766
|
+
project_id : str
|
|
1767
|
+
The project id
|
|
1461
1768
|
|
|
1462
1769
|
template_name : str
|
|
1463
1770
|
The template name (version will be automatically stripped if included)
|
|
@@ -1474,7 +1781,7 @@ class AsyncRawTemplatesClient:
|
|
|
1474
1781
|
200
|
|
1475
1782
|
"""
|
|
1476
1783
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1477
|
-
f"v1/templates/{jsonable_encoder(
|
|
1784
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/description",
|
|
1478
1785
|
method="PATCH",
|
|
1479
1786
|
json={
|
|
1480
1787
|
"description": description,
|
|
@@ -1524,7 +1831,7 @@ class AsyncRawTemplatesClient:
|
|
|
1524
1831
|
|
|
1525
1832
|
async def listtemplateversions(
|
|
1526
1833
|
self,
|
|
1527
|
-
|
|
1834
|
+
project_id: str,
|
|
1528
1835
|
name: str,
|
|
1529
1836
|
*,
|
|
1530
1837
|
offset: typing.Optional[str] = None,
|
|
@@ -1536,8 +1843,8 @@ class AsyncRawTemplatesClient:
|
|
|
1536
1843
|
|
|
1537
1844
|
Parameters
|
|
1538
1845
|
----------
|
|
1539
|
-
|
|
1540
|
-
The project
|
|
1846
|
+
project_id : str
|
|
1847
|
+
The project id
|
|
1541
1848
|
|
|
1542
1849
|
name : str
|
|
1543
1850
|
The template name (without version)
|
|
@@ -1555,7 +1862,7 @@ class AsyncRawTemplatesClient:
|
|
|
1555
1862
|
200
|
|
1556
1863
|
"""
|
|
1557
1864
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1558
|
-
f"v1/templates/{jsonable_encoder(
|
|
1865
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(name)}/versions",
|
|
1559
1866
|
method="GET",
|
|
1560
1867
|
params={
|
|
1561
1868
|
"offset": offset,
|
|
@@ -1591,7 +1898,7 @@ class AsyncRawTemplatesClient:
|
|
|
1591
1898
|
|
|
1592
1899
|
async def migratedeployment(
|
|
1593
1900
|
self,
|
|
1594
|
-
|
|
1901
|
+
project_id: str,
|
|
1595
1902
|
template_name: str,
|
|
1596
1903
|
deployment_id: str,
|
|
1597
1904
|
*,
|
|
@@ -1606,8 +1913,8 @@ class AsyncRawTemplatesClient:
|
|
|
1606
1913
|
|
|
1607
1914
|
Parameters
|
|
1608
1915
|
----------
|
|
1609
|
-
|
|
1610
|
-
The project
|
|
1916
|
+
project_id : str
|
|
1917
|
+
The project id
|
|
1611
1918
|
|
|
1612
1919
|
template_name : str
|
|
1613
1920
|
The template name (without version)
|
|
@@ -1636,7 +1943,7 @@ class AsyncRawTemplatesClient:
|
|
|
1636
1943
|
200
|
|
1637
1944
|
"""
|
|
1638
1945
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1639
|
-
f"v1/templates/{jsonable_encoder(
|
|
1946
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/deployments/{jsonable_encoder(deployment_id)}/migrate",
|
|
1640
1947
|
method="POST",
|
|
1641
1948
|
json={
|
|
1642
1949
|
"version": version,
|
|
@@ -1697,3 +2004,103 @@ class AsyncRawTemplatesClient:
|
|
|
1697
2004
|
except JSONDecodeError:
|
|
1698
2005
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
1699
2006
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
2007
|
+
|
|
2008
|
+
async def updatecurrenttemplatefromagentfile(
|
|
2009
|
+
self,
|
|
2010
|
+
project_id: str,
|
|
2011
|
+
template_name: str,
|
|
2012
|
+
*,
|
|
2013
|
+
agent_file_json: typing.Dict[str, typing.Optional[typing.Any]],
|
|
2014
|
+
update_existing_tools: typing.Optional[bool] = OMIT,
|
|
2015
|
+
save_existing_changes: typing.Optional[bool] = OMIT,
|
|
2016
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
2017
|
+
) -> AsyncHttpResponse[TemplatesUpdateCurrentTemplateFromAgentFileResponse]:
|
|
2018
|
+
"""
|
|
2019
|
+
Updates the current working version of a template from an agent file
|
|
2020
|
+
|
|
2021
|
+
Parameters
|
|
2022
|
+
----------
|
|
2023
|
+
project_id : str
|
|
2024
|
+
The project id
|
|
2025
|
+
|
|
2026
|
+
template_name : str
|
|
2027
|
+
The template name (without version)
|
|
2028
|
+
|
|
2029
|
+
agent_file_json : typing.Dict[str, typing.Optional[typing.Any]]
|
|
2030
|
+
The agent file to update the current template version from
|
|
2031
|
+
|
|
2032
|
+
update_existing_tools : typing.Optional[bool]
|
|
2033
|
+
If true, update existing custom tools source_code and json_schema (source_type cannot be changed)
|
|
2034
|
+
|
|
2035
|
+
save_existing_changes : typing.Optional[bool]
|
|
2036
|
+
If true, Letta will automatically save any changes as a version before updating the template
|
|
2037
|
+
|
|
2038
|
+
request_options : typing.Optional[RequestOptions]
|
|
2039
|
+
Request-specific configuration.
|
|
2040
|
+
|
|
2041
|
+
Returns
|
|
2042
|
+
-------
|
|
2043
|
+
AsyncHttpResponse[TemplatesUpdateCurrentTemplateFromAgentFileResponse]
|
|
2044
|
+
200
|
|
2045
|
+
"""
|
|
2046
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
2047
|
+
f"v1/templates/{jsonable_encoder(project_id)}/{jsonable_encoder(template_name)}/agent-file",
|
|
2048
|
+
method="PUT",
|
|
2049
|
+
json={
|
|
2050
|
+
"agent_file_json": agent_file_json,
|
|
2051
|
+
"update_existing_tools": update_existing_tools,
|
|
2052
|
+
"save_existing_changes": save_existing_changes,
|
|
2053
|
+
},
|
|
2054
|
+
headers={
|
|
2055
|
+
"content-type": "application/json",
|
|
2056
|
+
},
|
|
2057
|
+
request_options=request_options,
|
|
2058
|
+
omit=OMIT,
|
|
2059
|
+
)
|
|
2060
|
+
try:
|
|
2061
|
+
if 200 <= _response.status_code < 300:
|
|
2062
|
+
_data = typing.cast(
|
|
2063
|
+
TemplatesUpdateCurrentTemplateFromAgentFileResponse,
|
|
2064
|
+
construct_type(
|
|
2065
|
+
type_=TemplatesUpdateCurrentTemplateFromAgentFileResponse, # type: ignore
|
|
2066
|
+
object_=_response.json(),
|
|
2067
|
+
),
|
|
2068
|
+
)
|
|
2069
|
+
return AsyncHttpResponse(response=_response, data=_data)
|
|
2070
|
+
if _response.status_code == 400:
|
|
2071
|
+
raise BadRequestError(
|
|
2072
|
+
headers=dict(_response.headers),
|
|
2073
|
+
body=typing.cast(
|
|
2074
|
+
typing.Optional[typing.Any],
|
|
2075
|
+
construct_type(
|
|
2076
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
2077
|
+
object_=_response.json(),
|
|
2078
|
+
),
|
|
2079
|
+
),
|
|
2080
|
+
)
|
|
2081
|
+
if _response.status_code == 404:
|
|
2082
|
+
raise NotFoundError(
|
|
2083
|
+
headers=dict(_response.headers),
|
|
2084
|
+
body=typing.cast(
|
|
2085
|
+
typing.Optional[typing.Any],
|
|
2086
|
+
construct_type(
|
|
2087
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
2088
|
+
object_=_response.json(),
|
|
2089
|
+
),
|
|
2090
|
+
),
|
|
2091
|
+
)
|
|
2092
|
+
if _response.status_code == 500:
|
|
2093
|
+
raise InternalServerError(
|
|
2094
|
+
headers=dict(_response.headers),
|
|
2095
|
+
body=typing.cast(
|
|
2096
|
+
typing.Optional[typing.Any],
|
|
2097
|
+
construct_type(
|
|
2098
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
2099
|
+
object_=_response.json(),
|
|
2100
|
+
),
|
|
2101
|
+
),
|
|
2102
|
+
)
|
|
2103
|
+
_response_json = _response.json()
|
|
2104
|
+
except JSONDecodeError:
|
|
2105
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
2106
|
+
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|