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
|
@@ -2,72 +2,3 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
-
from .types import (
|
|
6
|
-
AgentsCreateRequestInitialMessageSequenceItem,
|
|
7
|
-
AgentsCreateRequestInitialMessageSequenceItemRole,
|
|
8
|
-
AgentsCreateResponse,
|
|
9
|
-
AgentsCreateResponseGroup,
|
|
10
|
-
AgentsCreateResponseGroupBaseTemplateId,
|
|
11
|
-
AgentsCreateResponseGroupBaseTemplateIdItem,
|
|
12
|
-
AgentsCreateResponseGroupDeploymentId,
|
|
13
|
-
AgentsCreateResponseGroupDeploymentIdItem,
|
|
14
|
-
AgentsCreateResponseGroupHidden,
|
|
15
|
-
AgentsCreateResponseGroupHiddenItem,
|
|
16
|
-
AgentsCreateResponseGroupLastProcessedMessageId,
|
|
17
|
-
AgentsCreateResponseGroupLastProcessedMessageIdItem,
|
|
18
|
-
AgentsCreateResponseGroupManagerAgentId,
|
|
19
|
-
AgentsCreateResponseGroupManagerAgentIdItem,
|
|
20
|
-
AgentsCreateResponseGroupManagerType,
|
|
21
|
-
AgentsCreateResponseGroupMaxMessageBufferLength,
|
|
22
|
-
AgentsCreateResponseGroupMaxMessageBufferLengthItem,
|
|
23
|
-
AgentsCreateResponseGroupMaxTurns,
|
|
24
|
-
AgentsCreateResponseGroupMaxTurnsItem,
|
|
25
|
-
AgentsCreateResponseGroupMinMessageBufferLength,
|
|
26
|
-
AgentsCreateResponseGroupMinMessageBufferLengthItem,
|
|
27
|
-
AgentsCreateResponseGroupProjectId,
|
|
28
|
-
AgentsCreateResponseGroupProjectIdItem,
|
|
29
|
-
AgentsCreateResponseGroupSharedBlockIds,
|
|
30
|
-
AgentsCreateResponseGroupSleeptimeAgentFrequency,
|
|
31
|
-
AgentsCreateResponseGroupSleeptimeAgentFrequencyItem,
|
|
32
|
-
AgentsCreateResponseGroupTemplateId,
|
|
33
|
-
AgentsCreateResponseGroupTemplateIdItem,
|
|
34
|
-
AgentsCreateResponseGroupTerminationToken,
|
|
35
|
-
AgentsCreateResponseGroupTerminationTokenItem,
|
|
36
|
-
AgentsCreateResponseGroupTurnsCounter,
|
|
37
|
-
AgentsCreateResponseGroupTurnsCounterItem,
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
__all__ = [
|
|
41
|
-
"AgentsCreateRequestInitialMessageSequenceItem",
|
|
42
|
-
"AgentsCreateRequestInitialMessageSequenceItemRole",
|
|
43
|
-
"AgentsCreateResponse",
|
|
44
|
-
"AgentsCreateResponseGroup",
|
|
45
|
-
"AgentsCreateResponseGroupBaseTemplateId",
|
|
46
|
-
"AgentsCreateResponseGroupBaseTemplateIdItem",
|
|
47
|
-
"AgentsCreateResponseGroupDeploymentId",
|
|
48
|
-
"AgentsCreateResponseGroupDeploymentIdItem",
|
|
49
|
-
"AgentsCreateResponseGroupHidden",
|
|
50
|
-
"AgentsCreateResponseGroupHiddenItem",
|
|
51
|
-
"AgentsCreateResponseGroupLastProcessedMessageId",
|
|
52
|
-
"AgentsCreateResponseGroupLastProcessedMessageIdItem",
|
|
53
|
-
"AgentsCreateResponseGroupManagerAgentId",
|
|
54
|
-
"AgentsCreateResponseGroupManagerAgentIdItem",
|
|
55
|
-
"AgentsCreateResponseGroupManagerType",
|
|
56
|
-
"AgentsCreateResponseGroupMaxMessageBufferLength",
|
|
57
|
-
"AgentsCreateResponseGroupMaxMessageBufferLengthItem",
|
|
58
|
-
"AgentsCreateResponseGroupMaxTurns",
|
|
59
|
-
"AgentsCreateResponseGroupMaxTurnsItem",
|
|
60
|
-
"AgentsCreateResponseGroupMinMessageBufferLength",
|
|
61
|
-
"AgentsCreateResponseGroupMinMessageBufferLengthItem",
|
|
62
|
-
"AgentsCreateResponseGroupProjectId",
|
|
63
|
-
"AgentsCreateResponseGroupProjectIdItem",
|
|
64
|
-
"AgentsCreateResponseGroupSharedBlockIds",
|
|
65
|
-
"AgentsCreateResponseGroupSleeptimeAgentFrequency",
|
|
66
|
-
"AgentsCreateResponseGroupSleeptimeAgentFrequencyItem",
|
|
67
|
-
"AgentsCreateResponseGroupTemplateId",
|
|
68
|
-
"AgentsCreateResponseGroupTemplateIdItem",
|
|
69
|
-
"AgentsCreateResponseGroupTerminationToken",
|
|
70
|
-
"AgentsCreateResponseGroupTerminationTokenItem",
|
|
71
|
-
"AgentsCreateResponseGroupTurnsCounter",
|
|
72
|
-
"AgentsCreateResponseGroupTurnsCounterItem",
|
|
73
|
-
]
|
|
@@ -5,11 +5,6 @@ import typing
|
|
|
5
5
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
6
|
from ...core.request_options import RequestOptions
|
|
7
7
|
from .raw_client import AsyncRawAgentsClient, RawAgentsClient
|
|
8
|
-
from .types.agents_create_request_initial_message_sequence_item import AgentsCreateRequestInitialMessageSequenceItem
|
|
9
|
-
from .types.agents_create_response import AgentsCreateResponse
|
|
10
|
-
|
|
11
|
-
# this is used as the default value for optional parameters
|
|
12
|
-
OMIT = typing.cast(typing.Any, ...)
|
|
13
8
|
|
|
14
9
|
|
|
15
10
|
class AgentsClient:
|
|
@@ -28,56 +23,21 @@ class AgentsClient:
|
|
|
28
23
|
return self._raw_client
|
|
29
24
|
|
|
30
25
|
def create(
|
|
31
|
-
self,
|
|
32
|
-
|
|
33
|
-
template_version: str,
|
|
34
|
-
*,
|
|
35
|
-
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
36
|
-
agent_name: typing.Optional[str] = OMIT,
|
|
37
|
-
initial_message_sequence: typing.Optional[
|
|
38
|
-
typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]
|
|
39
|
-
] = OMIT,
|
|
40
|
-
memory_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
41
|
-
tool_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
42
|
-
identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
43
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
44
|
-
) -> AgentsCreateResponse:
|
|
26
|
+
self, project: str, template_version: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
27
|
+
) -> None:
|
|
45
28
|
"""
|
|
46
|
-
Creates an Agent or multiple Agents from a template
|
|
47
|
-
|
|
48
29
|
Parameters
|
|
49
30
|
----------
|
|
50
31
|
project : str
|
|
51
|
-
The project slug
|
|
52
32
|
|
|
53
33
|
template_version : str
|
|
54
|
-
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
55
|
-
|
|
56
|
-
tags : typing.Optional[typing.Sequence[str]]
|
|
57
|
-
The tags to assign to the agent
|
|
58
|
-
|
|
59
|
-
agent_name : typing.Optional[str]
|
|
60
|
-
The name of the agent, optional otherwise a random one will be assigned
|
|
61
|
-
|
|
62
|
-
initial_message_sequence : typing.Optional[typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]]
|
|
63
|
-
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
|
|
64
|
-
|
|
65
|
-
memory_variables : typing.Optional[typing.Dict[str, str]]
|
|
66
|
-
The memory variables to assign to the agent
|
|
67
|
-
|
|
68
|
-
tool_variables : typing.Optional[typing.Dict[str, str]]
|
|
69
|
-
The tool variables to assign to the agent
|
|
70
|
-
|
|
71
|
-
identity_ids : typing.Optional[typing.Sequence[str]]
|
|
72
|
-
The identity ids to assign to the agent
|
|
73
34
|
|
|
74
35
|
request_options : typing.Optional[RequestOptions]
|
|
75
36
|
Request-specific configuration.
|
|
76
37
|
|
|
77
38
|
Returns
|
|
78
39
|
-------
|
|
79
|
-
|
|
80
|
-
201
|
|
40
|
+
None
|
|
81
41
|
|
|
82
42
|
Examples
|
|
83
43
|
--------
|
|
@@ -92,17 +52,7 @@ class AgentsClient:
|
|
|
92
52
|
template_version="template_version",
|
|
93
53
|
)
|
|
94
54
|
"""
|
|
95
|
-
_response = self._raw_client.create(
|
|
96
|
-
project,
|
|
97
|
-
template_version,
|
|
98
|
-
tags=tags,
|
|
99
|
-
agent_name=agent_name,
|
|
100
|
-
initial_message_sequence=initial_message_sequence,
|
|
101
|
-
memory_variables=memory_variables,
|
|
102
|
-
tool_variables=tool_variables,
|
|
103
|
-
identity_ids=identity_ids,
|
|
104
|
-
request_options=request_options,
|
|
105
|
-
)
|
|
55
|
+
_response = self._raw_client.create(project, template_version, request_options=request_options)
|
|
106
56
|
return _response.data
|
|
107
57
|
|
|
108
58
|
|
|
@@ -122,56 +72,21 @@ class AsyncAgentsClient:
|
|
|
122
72
|
return self._raw_client
|
|
123
73
|
|
|
124
74
|
async def create(
|
|
125
|
-
self,
|
|
126
|
-
|
|
127
|
-
template_version: str,
|
|
128
|
-
*,
|
|
129
|
-
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
130
|
-
agent_name: typing.Optional[str] = OMIT,
|
|
131
|
-
initial_message_sequence: typing.Optional[
|
|
132
|
-
typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]
|
|
133
|
-
] = OMIT,
|
|
134
|
-
memory_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
135
|
-
tool_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
136
|
-
identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
137
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
138
|
-
) -> AgentsCreateResponse:
|
|
75
|
+
self, project: str, template_version: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
76
|
+
) -> None:
|
|
139
77
|
"""
|
|
140
|
-
Creates an Agent or multiple Agents from a template
|
|
141
|
-
|
|
142
78
|
Parameters
|
|
143
79
|
----------
|
|
144
80
|
project : str
|
|
145
|
-
The project slug
|
|
146
81
|
|
|
147
82
|
template_version : str
|
|
148
|
-
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
149
|
-
|
|
150
|
-
tags : typing.Optional[typing.Sequence[str]]
|
|
151
|
-
The tags to assign to the agent
|
|
152
|
-
|
|
153
|
-
agent_name : typing.Optional[str]
|
|
154
|
-
The name of the agent, optional otherwise a random one will be assigned
|
|
155
|
-
|
|
156
|
-
initial_message_sequence : typing.Optional[typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]]
|
|
157
|
-
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
|
|
158
|
-
|
|
159
|
-
memory_variables : typing.Optional[typing.Dict[str, str]]
|
|
160
|
-
The memory variables to assign to the agent
|
|
161
|
-
|
|
162
|
-
tool_variables : typing.Optional[typing.Dict[str, str]]
|
|
163
|
-
The tool variables to assign to the agent
|
|
164
|
-
|
|
165
|
-
identity_ids : typing.Optional[typing.Sequence[str]]
|
|
166
|
-
The identity ids to assign to the agent
|
|
167
83
|
|
|
168
84
|
request_options : typing.Optional[RequestOptions]
|
|
169
85
|
Request-specific configuration.
|
|
170
86
|
|
|
171
87
|
Returns
|
|
172
88
|
-------
|
|
173
|
-
|
|
174
|
-
201
|
|
89
|
+
None
|
|
175
90
|
|
|
176
91
|
Examples
|
|
177
92
|
--------
|
|
@@ -194,15 +109,5 @@ class AsyncAgentsClient:
|
|
|
194
109
|
|
|
195
110
|
asyncio.run(main())
|
|
196
111
|
"""
|
|
197
|
-
_response = await self._raw_client.create(
|
|
198
|
-
project,
|
|
199
|
-
template_version,
|
|
200
|
-
tags=tags,
|
|
201
|
-
agent_name=agent_name,
|
|
202
|
-
initial_message_sequence=initial_message_sequence,
|
|
203
|
-
memory_variables=memory_variables,
|
|
204
|
-
tool_variables=tool_variables,
|
|
205
|
-
identity_ids=identity_ids,
|
|
206
|
-
request_options=request_options,
|
|
207
|
-
)
|
|
112
|
+
_response = await self._raw_client.create(project, template_version, request_options=request_options)
|
|
208
113
|
return _response.data
|
|
@@ -8,15 +8,6 @@ from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
|
8
8
|
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
|
9
9
|
from ...core.jsonable_encoder import jsonable_encoder
|
|
10
10
|
from ...core.request_options import RequestOptions
|
|
11
|
-
from ...core.serialization import convert_and_respect_annotation_metadata
|
|
12
|
-
from ...core.unchecked_base_model import construct_type
|
|
13
|
-
from ...errors.payment_required_error import PaymentRequiredError
|
|
14
|
-
from ...types.payment_required_error_body import PaymentRequiredErrorBody
|
|
15
|
-
from .types.agents_create_request_initial_message_sequence_item import AgentsCreateRequestInitialMessageSequenceItem
|
|
16
|
-
from .types.agents_create_response import AgentsCreateResponse
|
|
17
|
-
|
|
18
|
-
# this is used as the default value for optional parameters
|
|
19
|
-
OMIT = typing.cast(typing.Any, ...)
|
|
20
11
|
|
|
21
12
|
|
|
22
13
|
class RawAgentsClient:
|
|
@@ -24,99 +15,30 @@ class RawAgentsClient:
|
|
|
24
15
|
self._client_wrapper = client_wrapper
|
|
25
16
|
|
|
26
17
|
def create(
|
|
27
|
-
self,
|
|
28
|
-
|
|
29
|
-
template_version: str,
|
|
30
|
-
*,
|
|
31
|
-
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
32
|
-
agent_name: typing.Optional[str] = OMIT,
|
|
33
|
-
initial_message_sequence: typing.Optional[
|
|
34
|
-
typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]
|
|
35
|
-
] = OMIT,
|
|
36
|
-
memory_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
37
|
-
tool_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
38
|
-
identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
39
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
40
|
-
) -> HttpResponse[AgentsCreateResponse]:
|
|
18
|
+
self, project: str, template_version: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
19
|
+
) -> HttpResponse[None]:
|
|
41
20
|
"""
|
|
42
|
-
Creates an Agent or multiple Agents from a template
|
|
43
|
-
|
|
44
21
|
Parameters
|
|
45
22
|
----------
|
|
46
23
|
project : str
|
|
47
|
-
The project slug
|
|
48
24
|
|
|
49
25
|
template_version : str
|
|
50
|
-
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
51
|
-
|
|
52
|
-
tags : typing.Optional[typing.Sequence[str]]
|
|
53
|
-
The tags to assign to the agent
|
|
54
|
-
|
|
55
|
-
agent_name : typing.Optional[str]
|
|
56
|
-
The name of the agent, optional otherwise a random one will be assigned
|
|
57
|
-
|
|
58
|
-
initial_message_sequence : typing.Optional[typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]]
|
|
59
|
-
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
|
|
60
|
-
|
|
61
|
-
memory_variables : typing.Optional[typing.Dict[str, str]]
|
|
62
|
-
The memory variables to assign to the agent
|
|
63
|
-
|
|
64
|
-
tool_variables : typing.Optional[typing.Dict[str, str]]
|
|
65
|
-
The tool variables to assign to the agent
|
|
66
|
-
|
|
67
|
-
identity_ids : typing.Optional[typing.Sequence[str]]
|
|
68
|
-
The identity ids to assign to the agent
|
|
69
26
|
|
|
70
27
|
request_options : typing.Optional[RequestOptions]
|
|
71
28
|
Request-specific configuration.
|
|
72
29
|
|
|
73
30
|
Returns
|
|
74
31
|
-------
|
|
75
|
-
HttpResponse[
|
|
76
|
-
201
|
|
32
|
+
HttpResponse[None]
|
|
77
33
|
"""
|
|
78
34
|
_response = self._client_wrapper.httpx_client.request(
|
|
79
35
|
f"v1/templates/{jsonable_encoder(project)}/{jsonable_encoder(template_version)}/agents",
|
|
80
36
|
method="POST",
|
|
81
|
-
json={
|
|
82
|
-
"tags": tags,
|
|
83
|
-
"agent_name": agent_name,
|
|
84
|
-
"initial_message_sequence": convert_and_respect_annotation_metadata(
|
|
85
|
-
object_=initial_message_sequence,
|
|
86
|
-
annotation=typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem],
|
|
87
|
-
direction="write",
|
|
88
|
-
),
|
|
89
|
-
"memory_variables": memory_variables,
|
|
90
|
-
"tool_variables": tool_variables,
|
|
91
|
-
"identity_ids": identity_ids,
|
|
92
|
-
},
|
|
93
|
-
headers={
|
|
94
|
-
"content-type": "application/json",
|
|
95
|
-
},
|
|
96
37
|
request_options=request_options,
|
|
97
|
-
omit=OMIT,
|
|
98
38
|
)
|
|
99
39
|
try:
|
|
100
40
|
if 200 <= _response.status_code < 300:
|
|
101
|
-
|
|
102
|
-
AgentsCreateResponse,
|
|
103
|
-
construct_type(
|
|
104
|
-
type_=AgentsCreateResponse, # type: ignore
|
|
105
|
-
object_=_response.json(),
|
|
106
|
-
),
|
|
107
|
-
)
|
|
108
|
-
return HttpResponse(response=_response, data=_data)
|
|
109
|
-
if _response.status_code == 402:
|
|
110
|
-
raise PaymentRequiredError(
|
|
111
|
-
headers=dict(_response.headers),
|
|
112
|
-
body=typing.cast(
|
|
113
|
-
PaymentRequiredErrorBody,
|
|
114
|
-
construct_type(
|
|
115
|
-
type_=PaymentRequiredErrorBody, # type: ignore
|
|
116
|
-
object_=_response.json(),
|
|
117
|
-
),
|
|
118
|
-
),
|
|
119
|
-
)
|
|
41
|
+
return HttpResponse(response=_response, data=None)
|
|
120
42
|
_response_json = _response.json()
|
|
121
43
|
except JSONDecodeError:
|
|
122
44
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|
|
@@ -128,99 +50,30 @@ class AsyncRawAgentsClient:
|
|
|
128
50
|
self._client_wrapper = client_wrapper
|
|
129
51
|
|
|
130
52
|
async def create(
|
|
131
|
-
self,
|
|
132
|
-
|
|
133
|
-
template_version: str,
|
|
134
|
-
*,
|
|
135
|
-
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
136
|
-
agent_name: typing.Optional[str] = OMIT,
|
|
137
|
-
initial_message_sequence: typing.Optional[
|
|
138
|
-
typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]
|
|
139
|
-
] = OMIT,
|
|
140
|
-
memory_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
141
|
-
tool_variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
142
|
-
identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
143
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
144
|
-
) -> AsyncHttpResponse[AgentsCreateResponse]:
|
|
53
|
+
self, project: str, template_version: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
54
|
+
) -> AsyncHttpResponse[None]:
|
|
145
55
|
"""
|
|
146
|
-
Creates an Agent or multiple Agents from a template
|
|
147
|
-
|
|
148
56
|
Parameters
|
|
149
57
|
----------
|
|
150
58
|
project : str
|
|
151
|
-
The project slug
|
|
152
59
|
|
|
153
60
|
template_version : str
|
|
154
|
-
The template version, formatted as {template-name}:{version-number} or {template-name}:latest
|
|
155
|
-
|
|
156
|
-
tags : typing.Optional[typing.Sequence[str]]
|
|
157
|
-
The tags to assign to the agent
|
|
158
|
-
|
|
159
|
-
agent_name : typing.Optional[str]
|
|
160
|
-
The name of the agent, optional otherwise a random one will be assigned
|
|
161
|
-
|
|
162
|
-
initial_message_sequence : typing.Optional[typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem]]
|
|
163
|
-
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
|
|
164
|
-
|
|
165
|
-
memory_variables : typing.Optional[typing.Dict[str, str]]
|
|
166
|
-
The memory variables to assign to the agent
|
|
167
|
-
|
|
168
|
-
tool_variables : typing.Optional[typing.Dict[str, str]]
|
|
169
|
-
The tool variables to assign to the agent
|
|
170
|
-
|
|
171
|
-
identity_ids : typing.Optional[typing.Sequence[str]]
|
|
172
|
-
The identity ids to assign to the agent
|
|
173
61
|
|
|
174
62
|
request_options : typing.Optional[RequestOptions]
|
|
175
63
|
Request-specific configuration.
|
|
176
64
|
|
|
177
65
|
Returns
|
|
178
66
|
-------
|
|
179
|
-
AsyncHttpResponse[
|
|
180
|
-
201
|
|
67
|
+
AsyncHttpResponse[None]
|
|
181
68
|
"""
|
|
182
69
|
_response = await self._client_wrapper.httpx_client.request(
|
|
183
70
|
f"v1/templates/{jsonable_encoder(project)}/{jsonable_encoder(template_version)}/agents",
|
|
184
71
|
method="POST",
|
|
185
|
-
json={
|
|
186
|
-
"tags": tags,
|
|
187
|
-
"agent_name": agent_name,
|
|
188
|
-
"initial_message_sequence": convert_and_respect_annotation_metadata(
|
|
189
|
-
object_=initial_message_sequence,
|
|
190
|
-
annotation=typing.Sequence[AgentsCreateRequestInitialMessageSequenceItem],
|
|
191
|
-
direction="write",
|
|
192
|
-
),
|
|
193
|
-
"memory_variables": memory_variables,
|
|
194
|
-
"tool_variables": tool_variables,
|
|
195
|
-
"identity_ids": identity_ids,
|
|
196
|
-
},
|
|
197
|
-
headers={
|
|
198
|
-
"content-type": "application/json",
|
|
199
|
-
},
|
|
200
72
|
request_options=request_options,
|
|
201
|
-
omit=OMIT,
|
|
202
73
|
)
|
|
203
74
|
try:
|
|
204
75
|
if 200 <= _response.status_code < 300:
|
|
205
|
-
|
|
206
|
-
AgentsCreateResponse,
|
|
207
|
-
construct_type(
|
|
208
|
-
type_=AgentsCreateResponse, # type: ignore
|
|
209
|
-
object_=_response.json(),
|
|
210
|
-
),
|
|
211
|
-
)
|
|
212
|
-
return AsyncHttpResponse(response=_response, data=_data)
|
|
213
|
-
if _response.status_code == 402:
|
|
214
|
-
raise PaymentRequiredError(
|
|
215
|
-
headers=dict(_response.headers),
|
|
216
|
-
body=typing.cast(
|
|
217
|
-
PaymentRequiredErrorBody,
|
|
218
|
-
construct_type(
|
|
219
|
-
type_=PaymentRequiredErrorBody, # type: ignore
|
|
220
|
-
object_=_response.json(),
|
|
221
|
-
),
|
|
222
|
-
),
|
|
223
|
-
)
|
|
76
|
+
return AsyncHttpResponse(response=_response, data=None)
|
|
224
77
|
_response_json = _response.json()
|
|
225
78
|
except JSONDecodeError:
|
|
226
79
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
|