letta-client 1.0.0a5__py3-none-any.whl → 1.0.0a7__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 +90 -1788
- letta_client/_base_client.py +1995 -0
- letta_client/_client.py +632 -0
- letta_client/_compat.py +219 -0
- letta_client/_constants.py +14 -0
- letta_client/_exceptions.py +108 -0
- letta_client/_files.py +123 -0
- letta_client/_models.py +835 -0
- letta_client/_qs.py +150 -0
- letta_client/_resource.py +43 -0
- letta_client/_response.py +832 -0
- letta_client/_streaming.py +333 -0
- letta_client/_types.py +260 -0
- letta_client/_utils/__init__.py +64 -0
- letta_client/_utils/_compat.py +45 -0
- letta_client/_utils/_datetime_parse.py +136 -0
- letta_client/_utils/_logs.py +25 -0
- letta_client/_utils/_proxy.py +65 -0
- letta_client/_utils/_reflection.py +42 -0
- letta_client/_utils/_resources_proxy.py +24 -0
- letta_client/_utils/_streams.py +12 -0
- letta_client/_utils/_sync.py +86 -0
- letta_client/_utils/_transform.py +457 -0
- letta_client/_utils/_typing.py +156 -0
- letta_client/_utils/_utils.py +421 -0
- letta_client/_version.py +4 -0
- letta_client/lib/.keep +4 -0
- letta_client/resources/__init__.py +187 -0
- letta_client/resources/agents/__init__.py +103 -0
- letta_client/resources/agents/agents.py +1983 -0
- letta_client/resources/agents/blocks.py +718 -0
- letta_client/resources/agents/files.py +538 -0
- letta_client/resources/agents/folders.py +419 -0
- letta_client/resources/agents/groups.py +242 -0
- letta_client/resources/agents/messages.py +1484 -0
- letta_client/resources/agents/tools.py +545 -0
- letta_client/resources/archives.py +598 -0
- letta_client/resources/batches/__init__.py +33 -0
- letta_client/resources/batches/batches.py +529 -0
- letta_client/resources/batches/messages.py +238 -0
- letta_client/resources/blocks/__init__.py +33 -0
- letta_client/resources/blocks/agents.py +284 -0
- letta_client/resources/blocks/blocks.py +974 -0
- letta_client/resources/folders/__init__.py +47 -0
- letta_client/resources/folders/agents.py +234 -0
- letta_client/resources/folders/files.py +469 -0
- letta_client/resources/folders/folders.py +783 -0
- letta_client/resources/groups/__init__.py +33 -0
- letta_client/resources/groups/groups.py +767 -0
- letta_client/resources/groups/messages.py +1087 -0
- letta_client/resources/identities/__init__.py +61 -0
- letta_client/resources/identities/agents.py +266 -0
- letta_client/resources/identities/blocks.py +234 -0
- letta_client/resources/identities/identities.py +996 -0
- letta_client/resources/identities/properties.py +174 -0
- letta_client/resources/models/__init__.py +33 -0
- letta_client/resources/models/embeddings.py +141 -0
- letta_client/resources/models/models.py +225 -0
- letta_client/resources/runs/__init__.py +61 -0
- letta_client/resources/runs/messages.py +354 -0
- letta_client/resources/runs/runs.py +460 -0
- letta_client/resources/runs/steps.py +226 -0
- letta_client/resources/runs/usage.py +163 -0
- letta_client/resources/steps/__init__.py +75 -0
- letta_client/resources/steps/feedback.py +198 -0
- letta_client/resources/steps/messages.py +234 -0
- letta_client/resources/steps/metrics.py +167 -0
- letta_client/resources/steps/steps.py +511 -0
- letta_client/resources/steps/trace.py +169 -0
- letta_client/resources/tags.py +240 -0
- letta_client/resources/templates/__init__.py +33 -0
- letta_client/resources/templates/agents.py +236 -0
- letta_client/resources/templates/templates.py +102 -0
- letta_client/resources/tools.py +1187 -0
- letta_client/types/__init__.py +118 -619
- letta_client/types/agent_count_response.py +7 -0
- letta_client/types/agent_create_params.py +218 -0
- letta_client/types/agent_environment_variable.py +26 -55
- letta_client/types/agent_export_file_params.py +18 -0
- letta_client/types/agent_export_file_response.py +7 -0
- letta_client/types/agent_import_file_params.py +42 -0
- letta_client/types/agent_import_file_response.py +12 -0
- letta_client/types/agent_list_params.py +95 -0
- letta_client/types/agent_list_response.py +10 -0
- letta_client/types/agent_retrieve_params.py +36 -0
- letta_client/types/agent_state.py +249 -177
- letta_client/types/agent_type.py +14 -15
- letta_client/types/agent_update_params.py +161 -0
- letta_client/types/agents/__init__.py +78 -0
- letta_client/types/agents/approval_create_param.py +44 -0
- letta_client/types/agents/approval_request_message.py +47 -0
- letta_client/types/agents/approval_response_message.py +63 -0
- letta_client/types/agents/assistant_message.py +39 -0
- letta_client/types/agents/block.py +60 -0
- letta_client/types/agents/block_list_params.py +34 -0
- letta_client/types/agents/block_list_response.py +10 -0
- letta_client/types/agents/block_update_params.py +55 -0
- letta_client/types/agents/file_close_all_response.py +8 -0
- letta_client/types/agents/file_list_params.py +40 -0
- letta_client/types/agents/file_list_response.py +51 -0
- letta_client/types/agents/file_open_response.py +8 -0
- letta_client/types/agents/folder_list_params.py +34 -0
- letta_client/types/agents/folder_list_response.py +49 -0
- letta_client/types/agents/group_list_params.py +37 -0
- letta_client/types/agents/group_list_response.py +10 -0
- letta_client/types/agents/hidden_reasoning_message.py +36 -0
- letta_client/types/agents/image_content.py +67 -0
- letta_client/types/agents/image_content_param.py +64 -0
- letta_client/types/agents/job_status.py +7 -0
- letta_client/types/agents/job_type.py +7 -0
- letta_client/types/agents/letta_assistant_message_content_union.py +19 -0
- letta_client/types/agents/letta_assistant_message_content_union_param.py +19 -0
- letta_client/types/agents/letta_message_union.py +32 -0
- letta_client/types/agents/letta_response.py +48 -0
- letta_client/types/agents/letta_user_message_content_union.py +14 -0
- letta_client/types/agents/letta_user_message_content_union_param.py +13 -0
- letta_client/types/agents/message.py +240 -0
- letta_client/types/agents/message_cancel_params.py +15 -0
- letta_client/types/agents/message_cancel_response.py +8 -0
- letta_client/types/agents/message_list_params.py +52 -0
- letta_client/types/agents/message_list_response.py +10 -0
- letta_client/types/agents/message_reset_params.py +12 -0
- letta_client/types/agents/message_role.py +7 -0
- letta_client/types/agents/message_send_async_params.py +58 -0
- letta_client/types/agents/message_send_params.py +55 -0
- letta_client/types/agents/message_stream_params.py +70 -0
- letta_client/types/agents/message_type.py +17 -0
- letta_client/types/agents/message_update_params.py +70 -0
- letta_client/types/agents/message_update_response.py +32 -0
- letta_client/types/agents/omitted_reasoning_content.py +16 -0
- letta_client/types/agents/omitted_reasoning_content_param.py +16 -0
- letta_client/types/agents/reasoning_content.py +25 -0
- letta_client/types/agents/reasoning_content_param.py +25 -0
- letta_client/types/agents/reasoning_message.py +38 -0
- letta_client/types/agents/redacted_reasoning_content.py +16 -0
- letta_client/types/agents/redacted_reasoning_content_param.py +15 -0
- letta_client/types/agents/run.py +81 -0
- letta_client/types/agents/system_message.py +35 -0
- letta_client/types/agents/text_content.py +19 -0
- letta_client/types/agents/text_content_param.py +19 -0
- letta_client/types/agents/tool_call.py +13 -0
- letta_client/types/agents/tool_call_content.py +28 -0
- letta_client/types/agents/tool_call_content_param.py +28 -0
- letta_client/types/agents/tool_call_delta.py +15 -0
- letta_client/types/agents/tool_call_message.py +42 -0
- letta_client/types/agents/tool_list_params.py +34 -0
- letta_client/types/agents/tool_list_response.py +10 -0
- letta_client/types/agents/tool_return.py +23 -0
- letta_client/types/agents/tool_return_content.py +22 -0
- letta_client/types/agents/tool_return_content_param.py +21 -0
- letta_client/types/agents/tool_return_param.py +25 -0
- letta_client/types/agents/tool_update_approval_params.py +21 -0
- letta_client/types/agents/update_assistant_message_param.py +20 -0
- letta_client/types/agents/update_reasoning_message_param.py +13 -0
- letta_client/types/agents/update_system_message_param.py +17 -0
- letta_client/types/agents/update_user_message_param.py +20 -0
- letta_client/types/agents/user_message.py +39 -0
- letta_client/types/archive.py +28 -63
- letta_client/types/archive_create_params.py +19 -0
- letta_client/types/archive_list_params.py +37 -0
- letta_client/types/archive_list_response.py +10 -0
- letta_client/types/archive_update_params.py +14 -0
- letta_client/types/batch_create_params.py +73 -0
- letta_client/types/batch_job.py +61 -103
- letta_client/types/batch_list_params.py +34 -0
- letta_client/types/batch_list_response.py +10 -0
- letta_client/types/batches/__init__.py +6 -0
- letta_client/types/batches/message_list_params.py +37 -0
- letta_client/types/batches/message_list_response.py +12 -0
- letta_client/types/block_count_response.py +7 -0
- letta_client/types/block_create_params.py +51 -0
- letta_client/types/block_list_params.py +89 -0
- letta_client/types/block_list_response.py +10 -0
- letta_client/types/block_update_params.py +52 -0
- letta_client/types/blocks/__init__.py +6 -0
- letta_client/types/blocks/agent_list_params.py +60 -0
- letta_client/types/blocks/agent_list_response.py +10 -0
- letta_client/types/child_tool_rule.py +28 -32
- letta_client/types/child_tool_rule_param.py +42 -0
- letta_client/types/conditional_tool_rule.py +27 -48
- letta_client/types/conditional_tool_rule_param.py +27 -0
- letta_client/types/continue_tool_rule.py +11 -26
- letta_client/types/continue_tool_rule_param.py +18 -0
- letta_client/types/create_block_param.py +51 -0
- letta_client/types/dynamic_manager_param.py +18 -0
- letta_client/types/embedding_config.py +60 -73
- letta_client/types/embedding_config_param.py +62 -0
- letta_client/types/folder.py +26 -67
- letta_client/types/folder_count_response.py +7 -0
- letta_client/types/folder_create_params.py +33 -0
- letta_client/types/folder_list_params.py +37 -0
- letta_client/types/folder_list_response.py +10 -0
- letta_client/types/folder_update_params.py +27 -0
- letta_client/types/folders/__init__.py +10 -0
- letta_client/types/folders/agent_list_params.py +34 -0
- letta_client/types/folders/agent_list_response.py +8 -0
- letta_client/types/folders/file_list_params.py +37 -0
- letta_client/types/folders/file_list_response.py +68 -0
- letta_client/types/folders/file_upload_params.py +20 -0
- letta_client/types/folders/file_upload_response.py +65 -0
- letta_client/types/group.py +35 -83
- letta_client/types/group_count_response.py +7 -0
- letta_client/types/group_create_params.py +44 -0
- letta_client/types/group_list_params.py +42 -0
- letta_client/types/group_list_response.py +10 -0
- letta_client/types/group_update_params.py +93 -0
- letta_client/types/groups/__init__.py +10 -0
- letta_client/types/groups/message_list_params.py +43 -0
- letta_client/types/groups/message_list_response.py +10 -0
- letta_client/types/groups/message_send_params.py +55 -0
- letta_client/types/groups/message_stream_params.py +70 -0
- letta_client/types/groups/message_update_params.py +70 -0
- letta_client/types/groups/message_update_response.py +32 -0
- letta_client/types/health_response.py +11 -0
- letta_client/types/identities/__init__.py +9 -0
- letta_client/types/identities/agent_list_params.py +50 -0
- letta_client/types/identities/agent_list_response.py +10 -0
- letta_client/types/identities/block_list_params.py +34 -0
- letta_client/types/identities/block_list_response.py +10 -0
- letta_client/types/identities/property_upsert_params.py +14 -0
- letta_client/types/identity.py +30 -55
- letta_client/types/identity_count_response.py +7 -0
- letta_client/types/identity_create_params.py +39 -0
- letta_client/types/identity_list_params.py +45 -0
- letta_client/types/identity_list_response.py +10 -0
- letta_client/types/identity_property.py +12 -32
- letta_client/types/identity_property_param.py +19 -0
- letta_client/types/identity_type.py +5 -3
- letta_client/types/identity_update_params.py +32 -0
- letta_client/types/identity_upsert_params.py +39 -0
- letta_client/types/init_tool_rule.py +20 -28
- letta_client/types/init_tool_rule_param.py +30 -0
- letta_client/types/json_object_response_format.py +8 -19
- letta_client/types/json_object_response_format_param.py +12 -0
- letta_client/types/json_schema_response_format.py +10 -22
- letta_client/types/json_schema_response_format_param.py +16 -0
- letta_client/types/letta_message_content_union_param.py +26 -0
- letta_client/types/llm_config.py +81 -92
- letta_client/types/llm_config_param.py +117 -0
- letta_client/types/manager_type.py +5 -5
- letta_client/types/max_count_per_step_tool_rule.py +14 -28
- letta_client/types/max_count_per_step_tool_rule_param.py +24 -0
- letta_client/types/message_create_param.py +36 -0
- letta_client/types/model_list_params.py +19 -0
- letta_client/types/model_list_response.py +10 -0
- letta_client/types/models/__init__.py +5 -0
- letta_client/types/models/embedding_list_response.py +10 -0
- letta_client/types/npm_requirement.py +9 -22
- letta_client/types/npm_requirement_param.py +16 -0
- letta_client/types/parent_tool_rule.py +13 -30
- letta_client/types/parent_tool_rule_param.py +23 -0
- letta_client/types/pip_requirement.py +9 -22
- letta_client/types/pip_requirement_param.py +16 -0
- letta_client/types/provider_category.py +5 -3
- letta_client/types/provider_trace.py +22 -59
- letta_client/types/provider_type.py +22 -23
- letta_client/types/required_before_exit_tool_rule.py +11 -26
- letta_client/types/required_before_exit_tool_rule_param.py +18 -0
- letta_client/types/requires_approval_tool_rule.py +13 -25
- letta_client/types/requires_approval_tool_rule_param.py +21 -0
- letta_client/types/round_robin_manager_param.py +14 -0
- letta_client/types/run_list_params.py +64 -0
- letta_client/types/run_list_response.py +10 -0
- letta_client/types/runs/__init__.py +10 -0
- letta_client/types/runs/message_list_params.py +34 -0
- letta_client/types/runs/message_list_response.py +10 -0
- letta_client/types/runs/message_stream_params.py +28 -0
- letta_client/types/runs/step_list_params.py +28 -0
- letta_client/types/runs/step_list_response.py +10 -0
- letta_client/types/runs/usage_retrieve_response.py +27 -0
- letta_client/types/sleeptime_manager_param.py +16 -0
- letta_client/types/step.py +60 -112
- letta_client/types/step_list_params.py +61 -0
- letta_client/types/step_list_response.py +10 -0
- letta_client/types/steps/__init__.py +8 -0
- letta_client/types/steps/feedback_create_params.py +18 -0
- letta_client/types/steps/message_list_params.py +34 -0
- letta_client/types/steps/message_list_response.py +34 -0
- letta_client/types/steps/metric_retrieve_response.py +45 -0
- letta_client/types/stop_reason_type.py +15 -16
- letta_client/types/supervisor_manager_param.py +13 -0
- letta_client/types/tag_list_params.py +40 -0
- letta_client/types/tag_list_response.py +8 -0
- letta_client/types/templates/__init__.py +5 -0
- letta_client/types/templates/agent_create_params.py +52 -0
- letta_client/types/terminal_tool_rule.py +11 -26
- letta_client/types/terminal_tool_rule_param.py +18 -0
- letta_client/types/text_response_format.py +8 -19
- letta_client/types/text_response_format_param.py +12 -0
- letta_client/types/tool.py +43 -96
- letta_client/types/tool_count_params.py +35 -0
- letta_client/types/tool_count_response.py +7 -0
- letta_client/types/tool_create_params.py +53 -0
- letta_client/types/tool_list_params.py +57 -0
- letta_client/types/tool_list_response.py +10 -0
- letta_client/types/tool_return_message.py +42 -50
- letta_client/types/tool_type.py +16 -17
- letta_client/types/tool_update_params.py +57 -0
- letta_client/types/tool_upsert_base_tools_response.py +10 -0
- letta_client/types/tool_upsert_params.py +53 -0
- letta_client/types/vector_db_provider.py +5 -3
- letta_client/types/voice_sleeptime_manager_param.py +27 -0
- letta_client-1.0.0a7.dist-info/METADATA +496 -0
- letta_client-1.0.0a7.dist-info/RECORD +307 -0
- letta_client-1.0.0a7.dist-info/WHEEL +4 -0
- letta_client-1.0.0a7.dist-info/licenses/LICENSE +201 -0
- letta_client/agents/__init__.py +0 -83
- letta_client/agents/blocks/__init__.py +0 -7
- letta_client/agents/blocks/client.py +0 -679
- letta_client/agents/blocks/raw_client.py +0 -769
- letta_client/agents/blocks/types/__init__.py +0 -7
- letta_client/agents/blocks/types/blocks_list_request_order.py +0 -5
- letta_client/agents/client.py +0 -1945
- letta_client/agents/context/__init__.py +0 -4
- letta_client/agents/context/client.py +0 -116
- letta_client/agents/context/raw_client.py +0 -124
- letta_client/agents/core_memory/__init__.py +0 -4
- letta_client/agents/core_memory/client.py +0 -114
- letta_client/agents/core_memory/raw_client.py +0 -126
- letta_client/agents/files/__init__.py +0 -7
- letta_client/agents/files/client.py +0 -473
- letta_client/agents/files/raw_client.py +0 -541
- letta_client/agents/files/types/__init__.py +0 -7
- letta_client/agents/files/types/files_list_request_order.py +0 -5
- letta_client/agents/folders/__init__.py +0 -7
- letta_client/agents/folders/client.py +0 -356
- letta_client/agents/folders/raw_client.py +0 -398
- letta_client/agents/folders/types/__init__.py +0 -7
- letta_client/agents/folders/types/folders_list_request_order.py +0 -5
- letta_client/agents/groups/__init__.py +0 -7
- letta_client/agents/groups/client.py +0 -199
- letta_client/agents/groups/raw_client.py +0 -195
- letta_client/agents/groups/types/__init__.py +0 -7
- letta_client/agents/groups/types/groups_list_request_order.py +0 -5
- letta_client/agents/memory_variables/__init__.py +0 -7
- letta_client/agents/memory_variables/client.py +0 -118
- letta_client/agents/memory_variables/raw_client.py +0 -125
- letta_client/agents/memory_variables/types/__init__.py +0 -7
- letta_client/agents/memory_variables/types/memory_variables_list_response.py +0 -20
- letta_client/agents/messages/__init__.py +0 -23
- letta_client/agents/messages/client.py +0 -1514
- letta_client/agents/messages/raw_client.py +0 -1731
- letta_client/agents/messages/types/__init__.py +0 -21
- letta_client/agents/messages/types/letta_async_request_messages_item.py +0 -8
- letta_client/agents/messages/types/letta_streaming_response.py +0 -31
- letta_client/agents/messages/types/message_search_request_search_mode.py +0 -5
- letta_client/agents/messages/types/messages_list_request_order.py +0 -5
- letta_client/agents/messages/types/messages_modify_request.py +0 -12
- letta_client/agents/messages/types/messages_modify_response.py +0 -25
- letta_client/agents/messages/types/messages_preview_request.py +0 -8
- letta_client/agents/passages/__init__.py +0 -7
- letta_client/agents/passages/client.py +0 -637
- letta_client/agents/passages/raw_client.py +0 -685
- letta_client/agents/passages/types/__init__.py +0 -7
- letta_client/agents/passages/types/passages_search_request_tag_match_mode.py +0 -5
- letta_client/agents/raw_client.py +0 -2145
- letta_client/agents/sources/__init__.py +0 -7
- letta_client/agents/sources/client.py +0 -356
- letta_client/agents/sources/raw_client.py +0 -398
- letta_client/agents/sources/types/__init__.py +0 -7
- letta_client/agents/sources/types/sources_list_request_order.py +0 -5
- letta_client/agents/tools/__init__.py +0 -7
- letta_client/agents/tools/client.py +0 -458
- letta_client/agents/tools/raw_client.py +0 -522
- letta_client/agents/tools/types/__init__.py +0 -7
- letta_client/agents/tools/types/tools_list_request_order.py +0 -5
- letta_client/agents/types/__init__.py +0 -37
- letta_client/agents/types/agents_list_request_order.py +0 -5
- letta_client/agents/types/agents_list_request_order_by.py +0 -5
- letta_client/agents/types/agents_search_request_search_item.py +0 -17
- letta_client/agents/types/agents_search_request_search_item_field.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_one.py +0 -23
- letta_client/agents/types/agents_search_request_search_item_one_operator.py +0 -5
- letta_client/agents/types/agents_search_request_search_item_three.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_two.py +0 -22
- letta_client/agents/types/agents_search_request_search_item_zero.py +0 -21
- letta_client/agents/types/agents_search_request_sort_by.py +0 -5
- letta_client/agents/types/agents_search_response.py +0 -24
- letta_client/agents/types/create_agent_request_response_format.py +0 -9
- letta_client/agents/types/create_agent_request_tool_rules_item.py +0 -25
- letta_client/agents/types/update_agent_response_format.py +0 -9
- letta_client/agents/types/update_agent_tool_rules_item.py +0 -25
- letta_client/archives/__init__.py +0 -7
- letta_client/archives/client.py +0 -378
- letta_client/archives/raw_client.py +0 -450
- letta_client/archives/types/__init__.py +0 -7
- letta_client/archives/types/list_archives_request_order.py +0 -5
- letta_client/base_client.py +0 -224
- letta_client/batches/__init__.py +0 -9
- letta_client/batches/client.py +0 -449
- letta_client/batches/messages/__init__.py +0 -7
- letta_client/batches/messages/client.py +0 -197
- letta_client/batches/messages/raw_client.py +0 -193
- letta_client/batches/messages/types/__init__.py +0 -7
- letta_client/batches/messages/types/messages_list_request_order.py +0 -5
- letta_client/batches/raw_client.py +0 -522
- letta_client/batches/types/__init__.py +0 -7
- letta_client/batches/types/batches_list_request_order.py +0 -5
- letta_client/blocks/__init__.py +0 -9
- letta_client/blocks/agents/__init__.py +0 -7
- letta_client/blocks/agents/client.py +0 -199
- letta_client/blocks/agents/raw_client.py +0 -197
- letta_client/blocks/agents/types/__init__.py +0 -7
- letta_client/blocks/agents/types/agents_list_request_order.py +0 -5
- letta_client/blocks/client.py +0 -957
- letta_client/blocks/raw_client.py +0 -1080
- letta_client/blocks/types/__init__.py +0 -7
- letta_client/blocks/types/blocks_list_request_order.py +0 -5
- letta_client/chat/__init__.py +0 -7
- letta_client/chat/client.py +0 -255
- letta_client/chat/raw_client.py +0 -269
- letta_client/chat/types/__init__.py +0 -8
- letta_client/chat/types/chat_completion_request_messages_item.py +0 -19
- letta_client/chat/types/chat_completion_request_stop.py +0 -5
- letta_client/client.py +0 -706
- letta_client/client_side_access_tokens/__init__.py +0 -31
- letta_client/client_side_access_tokens/client.py +0 -361
- letta_client/client_side_access_tokens/raw_client.py +0 -435
- letta_client/client_side_access_tokens/types/__init__.py +0 -45
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_request_policy_item.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_request_policy_item_access_item.py +0 -7
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response.py +0 -26
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy.py +0 -24
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py +0 -7
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response.py +0 -26
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item.py +0 -28
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy.py +0 -24
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item.py +0 -25
- letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py +0 -7
- letta_client/core/__init__.py +0 -56
- letta_client/core/api_error.py +0 -23
- letta_client/core/client_wrapper.py +0 -86
- letta_client/core/datetime_utils.py +0 -28
- letta_client/core/file.py +0 -67
- letta_client/core/force_multipart.py +0 -16
- letta_client/core/http_client.py +0 -543
- letta_client/core/http_response.py +0 -55
- letta_client/core/jsonable_encoder.py +0 -100
- letta_client/core/pydantic_utilities.py +0 -255
- letta_client/core/query_encoder.py +0 -58
- letta_client/core/remove_none_from_dict.py +0 -11
- letta_client/core/request_options.py +0 -35
- letta_client/core/serialization.py +0 -276
- letta_client/core/unchecked_base_model.py +0 -341
- letta_client/environment.py +0 -8
- letta_client/errors/__init__.py +0 -21
- letta_client/errors/bad_request_error.py +0 -10
- letta_client/errors/conflict_error.py +0 -11
- letta_client/errors/gone_error.py +0 -10
- letta_client/errors/internal_server_error.py +0 -10
- letta_client/errors/not_found_error.py +0 -10
- letta_client/errors/payment_required_error.py +0 -11
- letta_client/errors/unprocessable_entity_error.py +0 -11
- letta_client/folders/__init__.py +0 -19
- letta_client/folders/agents/__init__.py +0 -7
- letta_client/folders/agents/client.py +0 -184
- letta_client/folders/agents/raw_client.py +0 -182
- letta_client/folders/agents/types/__init__.py +0 -7
- letta_client/folders/agents/types/agents_list_request_order.py +0 -5
- letta_client/folders/client.py +0 -869
- letta_client/folders/files/__init__.py +0 -7
- letta_client/folders/files/client.py +0 -390
- letta_client/folders/files/raw_client.py +0 -432
- letta_client/folders/files/types/__init__.py +0 -7
- letta_client/folders/files/types/files_list_request_order.py +0 -5
- letta_client/folders/passages/__init__.py +0 -7
- letta_client/folders/passages/client.py +0 -185
- letta_client/folders/passages/raw_client.py +0 -183
- letta_client/folders/passages/types/__init__.py +0 -7
- letta_client/folders/passages/types/passages_list_request_order.py +0 -5
- letta_client/folders/raw_client.py +0 -1063
- letta_client/folders/types/__init__.py +0 -7
- letta_client/folders/types/folders_list_request_order.py +0 -5
- letta_client/groups/__init__.py +0 -18
- letta_client/groups/client.py +0 -696
- letta_client/groups/messages/__init__.py +0 -7
- letta_client/groups/messages/client.py +0 -812
- letta_client/groups/messages/raw_client.py +0 -925
- letta_client/groups/messages/types/__init__.py +0 -10
- letta_client/groups/messages/types/letta_streaming_response.py +0 -21
- letta_client/groups/messages/types/messages_list_request_order.py +0 -5
- letta_client/groups/messages/types/messages_modify_request.py +0 -12
- letta_client/groups/messages/types/messages_modify_response.py +0 -25
- letta_client/groups/raw_client.py +0 -844
- letta_client/groups/types/__init__.py +0 -9
- letta_client/groups/types/group_create_manager_config.py +0 -13
- letta_client/groups/types/group_update_manager_config.py +0 -17
- letta_client/groups/types/groups_list_request_order.py +0 -5
- letta_client/health/__init__.py +0 -4
- letta_client/health/client.py +0 -98
- letta_client/health/raw_client.py +0 -85
- letta_client/identities/__init__.py +0 -17
- letta_client/identities/agents/__init__.py +0 -7
- letta_client/identities/agents/client.py +0 -187
- letta_client/identities/agents/raw_client.py +0 -185
- letta_client/identities/agents/types/__init__.py +0 -7
- letta_client/identities/agents/types/agents_list_request_order.py +0 -5
- letta_client/identities/blocks/__init__.py +0 -7
- letta_client/identities/blocks/client.py +0 -187
- letta_client/identities/blocks/raw_client.py +0 -185
- letta_client/identities/blocks/types/__init__.py +0 -7
- letta_client/identities/blocks/types/blocks_list_request_order.py +0 -5
- letta_client/identities/client.py +0 -879
- letta_client/identities/properties/__init__.py +0 -4
- letta_client/identities/properties/client.py +0 -141
- letta_client/identities/properties/raw_client.py +0 -154
- letta_client/identities/raw_client.py +0 -1043
- letta_client/identities/types/__init__.py +0 -7
- letta_client/identities/types/identities_list_request_order.py +0 -5
- letta_client/jobs/__init__.py +0 -7
- letta_client/jobs/client.py +0 -569
- letta_client/jobs/raw_client.py +0 -659
- letta_client/jobs/types/__init__.py +0 -7
- letta_client/jobs/types/jobs_list_request_order.py +0 -5
- letta_client/models/__init__.py +0 -7
- letta_client/models/client.py +0 -205
- letta_client/models/embeddings/__init__.py +0 -4
- letta_client/models/embeddings/client.py +0 -102
- letta_client/models/embeddings/raw_client.py +0 -117
- letta_client/models/raw_client.py +0 -201
- letta_client/projects/__init__.py +0 -7
- letta_client/projects/client.py +0 -136
- letta_client/projects/raw_client.py +0 -125
- letta_client/projects/types/__init__.py +0 -8
- letta_client/projects/types/projects_list_response.py +0 -24
- letta_client/projects/types/projects_list_response_projects_item.py +0 -22
- letta_client/providers/__init__.py +0 -7
- letta_client/providers/client.py +0 -863
- letta_client/providers/raw_client.py +0 -1031
- letta_client/providers/types/__init__.py +0 -7
- letta_client/providers/types/providers_list_request_order.py +0 -5
- letta_client/runs/__init__.py +0 -18
- letta_client/runs/client.py +0 -711
- letta_client/runs/messages/__init__.py +0 -7
- letta_client/runs/messages/client.py +0 -185
- letta_client/runs/messages/raw_client.py +0 -183
- letta_client/runs/messages/types/__init__.py +0 -7
- letta_client/runs/messages/types/messages_list_request_order.py +0 -5
- letta_client/runs/raw_client.py +0 -858
- letta_client/runs/steps/__init__.py +0 -7
- letta_client/runs/steps/client.py +0 -185
- letta_client/runs/steps/raw_client.py +0 -183
- letta_client/runs/steps/types/__init__.py +0 -7
- letta_client/runs/steps/types/steps_list_request_order.py +0 -5
- letta_client/runs/types/__init__.py +0 -8
- letta_client/runs/types/letta_streaming_response.py +0 -31
- letta_client/runs/types/runs_list_request_order.py +0 -5
- letta_client/runs/usage/__init__.py +0 -4
- letta_client/runs/usage/client.py +0 -112
- letta_client/runs/usage/raw_client.py +0 -122
- letta_client/sources/__init__.py +0 -7
- letta_client/sources/client.py +0 -962
- letta_client/sources/files/__init__.py +0 -4
- letta_client/sources/files/client.py +0 -375
- letta_client/sources/files/raw_client.py +0 -419
- letta_client/sources/passages/__init__.py +0 -4
- letta_client/sources/passages/client.py +0 -156
- letta_client/sources/passages/raw_client.py +0 -164
- letta_client/sources/raw_client.py +0 -1221
- letta_client/steps/__init__.py +0 -18
- letta_client/steps/client.py +0 -370
- letta_client/steps/feedback/__init__.py +0 -4
- letta_client/steps/feedback/client.py +0 -144
- letta_client/steps/feedback/raw_client.py +0 -166
- letta_client/steps/messages/__init__.py +0 -7
- letta_client/steps/messages/client.py +0 -187
- letta_client/steps/messages/raw_client.py +0 -185
- letta_client/steps/messages/types/__init__.py +0 -8
- letta_client/steps/messages/types/messages_list_request_order.py +0 -5
- letta_client/steps/messages/types/messages_list_response_item.py +0 -25
- letta_client/steps/metrics/__init__.py +0 -4
- letta_client/steps/metrics/client.py +0 -112
- letta_client/steps/metrics/raw_client.py +0 -124
- letta_client/steps/raw_client.py +0 -366
- letta_client/steps/trace/__init__.py +0 -4
- letta_client/steps/trace/client.py +0 -112
- letta_client/steps/trace/raw_client.py +0 -124
- letta_client/steps/types/__init__.py +0 -8
- letta_client/steps/types/steps_list_request_feedback.py +0 -5
- letta_client/steps/types/steps_list_request_order.py +0 -5
- letta_client/tags/__init__.py +0 -7
- letta_client/tags/client.py +0 -198
- letta_client/tags/raw_client.py +0 -195
- letta_client/tags/types/__init__.py +0 -7
- letta_client/tags/types/tags_list_request_order.py +0 -5
- letta_client/telemetry/__init__.py +0 -4
- letta_client/telemetry/client.py +0 -118
- letta_client/telemetry/raw_client.py +0 -130
- letta_client/templates/__init__.py +0 -1019
- letta_client/templates/agents/__init__.py +0 -4
- letta_client/templates/agents/client.py +0 -113
- letta_client/templates/agents/raw_client.py +0 -80
- letta_client/templates/client.py +0 -1631
- letta_client/templates/raw_client.py +0 -2106
- letta_client/templates/types/__init__.py +0 -1977
- letta_client/templates/types/templates_create_agents_from_template_request_initial_message_sequence_item.py +0 -29
- letta_client/templates/types/templates_create_agents_from_template_request_initial_message_sequence_item_role.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response.py +0 -29
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py +0 -157
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_agent_type.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_deployment_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_deployment_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config.py +0 -63
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_batch_size.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_type.py +0 -28
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_enable_sleeptime.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_enable_sleeptime_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_entity_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_entity_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_hidden_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identity_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_completion.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_completion_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_duration_ms.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_run_duration_ms_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py +0 -107
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_compatibility_type.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_compatibility_type_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_display_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_display_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_enable_reasoner.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_frequency_penalty.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_frequency_penalty_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_reasoning_tokens.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_max_tokens_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_type.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_category.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_category_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_provider_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_reasoning_effort.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_reasoning_effort_item.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_temperature.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_tier.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_tier_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_verbosity.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_verbosity_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_max_files_open.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_max_files_open_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory.py +0 -35
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_agent_type.py +0 -23
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_agent_type_item.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item.py +0 -94
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_base_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_deployment_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_entity_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_entity_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_hidden_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_id.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_is_template.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_limit.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_preserve_on_migration.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_preserve_on_migration_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_read_only.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item.py +0 -107
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_base_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_created_by_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_created_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_deployment_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_description.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_description_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_entity_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_entity_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_hidden_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_id.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_is_template.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_label.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_label_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_accessed_at.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_accessed_at_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_updated_by_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_limit.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_name.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_name_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_preserve_on_migration.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_preserve_on_migration_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_file_blocks_item_read_only.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_prompt_template.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_buffer_autoclear.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group.py +0 -17
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids.py +0 -108
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_base_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_deployment_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_hidden_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_last_processed_message_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_last_processed_message_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_agent_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_agent_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_manager_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_turns.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_max_turns_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_min_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_min_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_project_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_shared_block_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_sleeptime_agent_frequency.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_sleeptime_agent_frequency_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_termination_token.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_termination_token_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_turns_counter.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_agent_ids_turns_counter_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids.py +0 -108
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_base_template_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_base_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_deployment_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_deployment_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_hidden.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_hidden_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_last_processed_message_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_last_processed_message_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_manager_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_turns.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_max_turns_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_min_message_buffer_length.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_min_message_buffer_length_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_project_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_project_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_shared_block_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_sleeptime_agent_frequency.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_sleeptime_agent_frequency_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_template_id.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_template_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_termination_token.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_termination_token_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_turns_counter.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_multi_agent_group_item_agent_ids_turns_counter_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_per_file_view_window_char_limit.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_per_file_view_window_char_limit_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_project_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format.py +0 -25
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_json_schema.py +0 -24
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_json_schema_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_type.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_item_zero.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_json_schema.py +0 -24
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_json_schema_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_type.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_response_format_zero.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item.py +0 -58
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_id.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_last_updated_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_organization_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_organization_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_updated_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_updated_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_value_enc.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_secrets_item_value_enc_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item.py +0 -70
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config.py +0 -67
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_batch_size.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_type.py +0 -28
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_id.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_instructions.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_instructions_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_vector_db_provider.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_timezone.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_timezone_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item.py +0 -68
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_id.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_value_enc.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_value_enc_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item.py +0 -11
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args.py +0 -34
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_args.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_args_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes.py +0 -37
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_args.py +0 -17
- 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 +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item_item.py +0 -28
- 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 +0 -17
- 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 +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_arg_nodes_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping.py +0 -43
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_require_output_mapping.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_five_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_four_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item.py +0 -43
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args.py +0 -34
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_args.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_args_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_args_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes.py +0 -37
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_child_arg_nodes_item.py +0 -12
- 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 +0 -17
- 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 +0 -7
- 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 +0 -28
- 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 +0 -17
- 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 +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_arg_nodes_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping.py +0 -45
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_require_output_mapping.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_five_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_four_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_max_count_limit_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_prompt_template_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_seven_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_max_count_limit_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_prompt_template.py +0 -18
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_prompt_template_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven.py +0 -31
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_prompt_template.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_seven_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two.py +0 -30
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_prompt_template.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_prompt_template_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_type.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item.py +0 -93
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_args_json_schema.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_args_json_schema_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_default_requires_approval.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_default_requires_approval_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution.py +0 -15
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_metadata.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_metadata_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item.py +0 -26
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_npm_requirements_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item.py +0 -12
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item.py +0 -26
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_version.py +0 -16
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_pip_requirements_item_version_item.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type.py +0 -13
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_tool_type.py +0 -20
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group.py +0 -90
- letta_client/templates/types/templates_create_agents_from_template_response_group_base_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_base_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_deployment_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_deployment_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_hidden.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_hidden_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_last_processed_message_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_last_processed_message_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_agent_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_agent_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_manager_type.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_message_buffer_length.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_message_buffer_length_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_turns.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_max_turns_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_min_message_buffer_length.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_min_message_buffer_length_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_project_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_project_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_shared_block_ids.py +0 -7
- letta_client/templates/types/templates_create_agents_from_template_response_group_sleeptime_agent_frequency.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_sleeptime_agent_frequency_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_template_id.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_template_id_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_termination_token.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_termination_token_item.py +0 -5
- letta_client/templates/types/templates_create_agents_from_template_response_group_turns_counter.py +0 -14
- letta_client/templates/types/templates_create_agents_from_template_response_group_turns_counter_item.py +0 -5
- letta_client/templates/types/templates_create_template_request.py +0 -10
- letta_client/templates/types/templates_create_template_request_agent_file.py +0 -38
- letta_client/templates/types/templates_create_template_request_agent_id.py +0 -33
- letta_client/templates/types/templates_create_template_response.py +0 -42
- letta_client/templates/types/templates_delete_template_response.py +0 -20
- letta_client/templates/types/templates_fork_template_response.py +0 -42
- letta_client/templates/types/templates_get_template_snapshot_response.py +0 -32
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item.py +0 -62
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_agent_type.py +0 -18
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables_data_item.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties.py +0 -36
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties_reasoning_effort.py +0 -7
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties_verbosity_level.py +0 -7
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item.py +0 -43
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_args.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_arg_nodes.py +0 -29
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_arg_nodes_child_arg_nodes_item.py +0 -21
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_output_mapping.py +0 -25
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_five.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_four.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_max_count_limit.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_prompt_template.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_seven.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_two.py +0 -22
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_variables.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_variables_data_item.py +0 -24
- letta_client/templates/types/templates_get_template_snapshot_response_blocks_item.py +0 -30
- letta_client/templates/types/templates_get_template_snapshot_response_configuration.py +0 -36
- letta_client/templates/types/templates_get_template_snapshot_response_relationships_item.py +0 -23
- letta_client/templates/types/templates_get_template_snapshot_response_type.py +0 -8
- letta_client/templates/types/templates_list_request_sort_by.py +0 -5
- letta_client/templates/types/templates_list_response.py +0 -22
- letta_client/templates/types/templates_list_response_templates_item.py +0 -42
- letta_client/templates/types/templates_list_template_versions_response.py +0 -23
- letta_client/templates/types/templates_list_template_versions_response_versions_item.py +0 -38
- letta_client/templates/types/templates_migrate_deployment_response.py +0 -21
- letta_client/templates/types/templates_rename_template_response.py +0 -20
- letta_client/templates/types/templates_save_template_version_response.py +0 -42
- letta_client/templates/types/templates_set_current_template_from_snapshot_response.py +0 -21
- letta_client/templates/types/templates_update_current_template_from_agent_file_response.py +0 -21
- letta_client/templates/types/templates_update_template_description_response.py +0 -20
- letta_client/tools/__init__.py +0 -31
- letta_client/tools/client.py +0 -2034
- letta_client/tools/raw_client.py +0 -2551
- letta_client/tools/types/__init__.py +0 -29
- letta_client/tools/types/add_mcp_server_request.py +0 -9
- letta_client/tools/types/add_mcp_server_response_item.py +0 -9
- letta_client/tools/types/connect_mcp_server_request.py +0 -9
- letta_client/tools/types/connect_mcp_server_response_event.py +0 -8
- letta_client/tools/types/delete_mcp_server_response_item.py +0 -9
- letta_client/tools/types/list_mcp_servers_response_value.py +0 -9
- letta_client/tools/types/streaming_response.py +0 -24
- letta_client/tools/types/test_mcp_server_request.py +0 -9
- letta_client/tools/types/tools_list_request_order.py +0 -5
- letta_client/tools/types/update_mcp_server_request.py +0 -9
- letta_client/tools/types/update_mcp_server_response.py +0 -9
- letta_client/types/agent_file_attachment.py +0 -73
- letta_client/types/agent_file_schema.py +0 -75
- letta_client/types/agent_state_response_format.py +0 -9
- letta_client/types/agent_state_tool_rules_item.py +0 -25
- letta_client/types/annotation.py +0 -22
- letta_client/types/annotation_url_citation.py +0 -23
- letta_client/types/approval_create.py +0 -48
- letta_client/types/approval_create_approvals_item.py +0 -8
- letta_client/types/approval_request_message.py +0 -51
- letta_client/types/approval_request_message_tool_call.py +0 -8
- letta_client/types/approval_request_message_tool_calls.py +0 -8
- letta_client/types/approval_response_message.py +0 -62
- letta_client/types/approval_response_message_approvals_item.py +0 -8
- letta_client/types/approval_return.py +0 -34
- letta_client/types/archival_memory_search_response.py +0 -29
- letta_client/types/archival_memory_search_result.py +0 -33
- letta_client/types/assistant_message.py +0 -45
- letta_client/types/assistant_message_content.py +0 -7
- letta_client/types/audio.py +0 -20
- letta_client/types/auth_request.py +0 -23
- letta_client/types/auth_response.py +0 -30
- letta_client/types/bad_request_error_body.py +0 -20
- letta_client/types/base_64_image.py +0 -34
- letta_client/types/base_tool_rule_schema.py +0 -21
- letta_client/types/block.py +0 -118
- letta_client/types/block_schema.py +0 -93
- letta_client/types/block_update.py +0 -92
- letta_client/types/body_export_agent.py +0 -25
- letta_client/types/chat_completion.py +0 -30
- letta_client/types/chat_completion_assistant_message_param.py +0 -30
- letta_client/types/chat_completion_assistant_message_param_content.py +0 -9
- letta_client/types/chat_completion_assistant_message_param_content_item.py +0 -10
- letta_client/types/chat_completion_assistant_message_param_tool_calls_item.py +0 -10
- letta_client/types/chat_completion_audio.py +0 -23
- letta_client/types/chat_completion_content_part_image_param.py +0 -22
- letta_client/types/chat_completion_content_part_input_audio_param.py +0 -22
- letta_client/types/chat_completion_content_part_refusal_param.py +0 -21
- letta_client/types/chat_completion_content_part_text_param.py +0 -21
- letta_client/types/chat_completion_developer_message_param.py +0 -23
- letta_client/types/chat_completion_developer_message_param_content.py +0 -7
- letta_client/types/chat_completion_function_message_param.py +0 -22
- letta_client/types/chat_completion_message.py +0 -30
- letta_client/types/chat_completion_message_custom_tool_call.py +0 -23
- letta_client/types/chat_completion_message_custom_tool_call_param.py +0 -23
- letta_client/types/chat_completion_message_function_tool_call_input.py +0 -25
- letta_client/types/chat_completion_message_function_tool_call_output.py +0 -23
- letta_client/types/chat_completion_message_function_tool_call_param.py +0 -25
- letta_client/types/chat_completion_message_tool_calls_item.py +0 -10
- letta_client/types/chat_completion_service_tier.py +0 -5
- letta_client/types/chat_completion_system_message_param.py +0 -23
- letta_client/types/chat_completion_system_message_param_content.py +0 -7
- letta_client/types/chat_completion_token_logprob.py +0 -24
- letta_client/types/chat_completion_tool_message_param.py +0 -23
- letta_client/types/chat_completion_tool_message_param_content.py +0 -7
- letta_client/types/chat_completion_user_message_param.py +0 -23
- letta_client/types/chat_completion_user_message_param_content.py +0 -7
- letta_client/types/chat_completion_user_message_param_content_item.py +0 -15
- letta_client/types/child_tool_rule_schema.py +0 -22
- letta_client/types/choice.py +0 -26
- letta_client/types/choice_finish_reason.py +0 -7
- letta_client/types/choice_logprobs.py +0 -22
- letta_client/types/code_input.py +0 -28
- letta_client/types/completion_tokens_details.py +0 -23
- letta_client/types/completion_usage.py +0 -26
- letta_client/types/components_schemas_text_content.py +0 -5
- letta_client/types/conditional_tool_rule_schema.py +0 -24
- letta_client/types/conflict_error_body.py +0 -20
- letta_client/types/context_window_overview.py +0 -109
- letta_client/types/core_memory_block_schema.py +0 -32
- letta_client/types/create_block.py +0 -88
- letta_client/types/custom_input.py +0 -21
- letta_client/types/custom_output.py +0 -21
- letta_client/types/delete_deployment_response.py +0 -27
- letta_client/types/deployment_entity.py +0 -29
- letta_client/types/duplicate_file_handling.py +0 -5
- letta_client/types/dynamic_manager.py +0 -34
- letta_client/types/dynamic_manager_update.py +0 -34
- letta_client/types/e_2_b_sandbox_config.py +0 -33
- letta_client/types/embedding_config_embedding_endpoint_type.py +0 -28
- letta_client/types/feedback_type.py +0 -5
- letta_client/types/file.py +0 -22
- letta_client/types/file_agent_schema.py +0 -73
- letta_client/types/file_block.py +0 -124
- letta_client/types/file_file.py +0 -22
- letta_client/types/file_metadata.py +0 -104
- letta_client/types/file_processing_status.py +0 -5
- letta_client/types/file_schema.py +0 -93
- letta_client/types/file_stats.py +0 -37
- letta_client/types/function_call_input.py +0 -21
- letta_client/types/function_call_output.py +0 -21
- letta_client/types/function_definition.py +0 -23
- letta_client/types/function_output.py +0 -21
- letta_client/types/function_tool.py +0 -22
- letta_client/types/generate_tool_input.py +0 -43
- letta_client/types/generate_tool_output.py +0 -34
- letta_client/types/group_schema.py +0 -58
- letta_client/types/group_schema_manager_config.py +0 -13
- letta_client/types/health.py +0 -25
- letta_client/types/hidden_reasoning_message.py +0 -46
- letta_client/types/hidden_reasoning_message_state.py +0 -5
- letta_client/types/http_validation_error.py +0 -21
- letta_client/types/identity_property_type.py +0 -5
- letta_client/types/identity_property_value.py +0 -5
- letta_client/types/image_content.py +0 -25
- letta_client/types/image_content_source.py +0 -9
- letta_client/types/image_url.py +0 -22
- letta_client/types/image_url_detail.py +0 -5
- letta_client/types/imported_agents_response.py +0 -27
- letta_client/types/input_audio.py +0 -22
- letta_client/types/input_audio_format.py +0 -5
- letta_client/types/internal_server_error_body.py +0 -20
- letta_client/types/internal_template_agent_create.py +0 -266
- letta_client/types/internal_template_agent_create_response_format.py +0 -11
- letta_client/types/internal_template_agent_create_tool_rules_item.py +0 -25
- letta_client/types/internal_template_block_create.py +0 -93
- letta_client/types/internal_template_group_create.py +0 -68
- letta_client/types/internal_template_group_create_manager_config.py +0 -13
- letta_client/types/job.py +0 -123
- letta_client/types/job_status.py +0 -7
- letta_client/types/job_type.py +0 -5
- letta_client/types/letta_batch_messages.py +0 -21
- letta_client/types/letta_batch_request.py +0 -60
- letta_client/types/letta_batch_request_messages_item.py +0 -8
- letta_client/types/letta_image.py +0 -39
- letta_client/types/letta_message_content_union.py +0 -14
- letta_client/types/letta_message_union.py +0 -25
- letta_client/types/letta_ping.py +0 -27
- letta_client/types/letta_request.py +0 -55
- letta_client/types/letta_request_config.py +0 -39
- letta_client/types/letta_request_messages_item.py +0 -8
- letta_client/types/letta_response.py +0 -41
- letta_client/types/letta_schemas_agent_file_agent_schema.py +0 -285
- letta_client/types/letta_schemas_agent_file_agent_schema_response_format.py +0 -11
- letta_client/types/letta_schemas_agent_file_agent_schema_tool_rules_item.py +0 -25
- letta_client/types/letta_schemas_agent_file_message_schema.py +0 -125
- letta_client/types/letta_schemas_agent_file_message_schema_approvals_item.py +0 -8
- letta_client/types/letta_schemas_agent_file_message_schema_content.py +0 -7
- letta_client/types/letta_schemas_agent_file_tool_schema.py +0 -114
- letta_client/types/letta_schemas_letta_message_tool_return.py +0 -26
- letta_client/types/letta_schemas_letta_message_tool_return_status.py +0 -5
- letta_client/types/letta_schemas_message_tool_return.py +0 -40
- letta_client/types/letta_schemas_message_tool_return_status.py +0 -5
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_agent_schema.py +0 -56
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_agent_schema_tool_rules_item.py +0 -12
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_message_schema.py +0 -30
- letta_client/types/letta_serialize_schemas_pydantic_agent_schema_tool_schema.py +0 -36
- letta_client/types/letta_stop_reason.py +0 -33
- letta_client/types/letta_streaming_request.py +0 -70
- letta_client/types/letta_streaming_request_messages_item.py +0 -8
- letta_client/types/letta_usage_statistics.py +0 -60
- letta_client/types/letta_user_message_content_union.py +0 -8
- letta_client/types/list_deployment_entities_response.py +0 -28
- letta_client/types/llm_config_compatibility_type.py +0 -5
- letta_client/types/llm_config_model_endpoint_type.py +0 -30
- letta_client/types/llm_config_reasoning_effort.py +0 -5
- letta_client/types/llm_config_verbosity.py +0 -5
- letta_client/types/local_sandbox_config.py +0 -39
- letta_client/types/max_count_per_step_tool_rule_schema.py +0 -22
- letta_client/types/mcp_server_schema.py +0 -37
- letta_client/types/mcp_server_type.py +0 -5
- letta_client/types/mcp_tool.py +0 -44
- letta_client/types/mcp_tool_execute_request.py +0 -23
- letta_client/types/mcp_tool_health.py +0 -32
- letta_client/types/memory.py +0 -45
- letta_client/types/memory_agent_type.py +0 -7
- letta_client/types/message.py +0 -166
- letta_client/types/message_approvals_item.py +0 -8
- letta_client/types/message_content_item.py +0 -23
- letta_client/types/message_create.py +0 -64
- letta_client/types/message_create_content.py +0 -7
- letta_client/types/message_create_role.py +0 -5
- letta_client/types/message_role.py +0 -5
- letta_client/types/message_search_result.py +0 -48
- letta_client/types/message_type.py +0 -18
- letta_client/types/modal_sandbox_config.py +0 -36
- letta_client/types/modal_sandbox_config_language.py +0 -5
- letta_client/types/not_found_error_body.py +0 -20
- letta_client/types/omitted_reasoning_content.py +0 -28
- letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_function.py +0 -21
- letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_param_function.py +0 -21
- letta_client/types/organization.py +0 -39
- letta_client/types/organization_create.py +0 -28
- letta_client/types/organization_sources_stats.py +0 -43
- letta_client/types/organization_update.py +0 -28
- letta_client/types/paginated_agent_files.py +0 -38
- letta_client/types/parameter_properties.py +0 -21
- letta_client/types/parameters_schema.py +0 -23
- letta_client/types/passage.py +0 -109
- letta_client/types/payment_required_error_body.py +0 -21
- letta_client/types/prompt_tokens_details.py +0 -21
- letta_client/types/provider.py +0 -81
- letta_client/types/reasoning_content.py +0 -38
- letta_client/types/reasoning_message.py +0 -47
- letta_client/types/reasoning_message_source.py +0 -5
- letta_client/types/redacted_reasoning_content.py +0 -28
- letta_client/types/round_robin_manager.py +0 -24
- letta_client/types/round_robin_manager_update.py +0 -24
- letta_client/types/run.py +0 -113
- letta_client/types/run_metrics.py +0 -63
- letta_client/types/run_status.py +0 -5
- letta_client/types/sandbox_config.py +0 -55
- letta_client/types/sandbox_config_create.py +0 -24
- letta_client/types/sandbox_config_create_config.py +0 -9
- letta_client/types/sandbox_config_update.py +0 -28
- letta_client/types/sandbox_config_update_config.py +0 -9
- letta_client/types/sandbox_environment_variable.py +0 -69
- letta_client/types/sandbox_environment_variable_create.py +0 -33
- letta_client/types/sandbox_environment_variable_update.py +0 -33
- letta_client/types/sandbox_type.py +0 -5
- letta_client/types/sleeptime_manager.py +0 -29
- letta_client/types/sleeptime_manager_update.py +0 -29
- letta_client/types/source.py +0 -88
- letta_client/types/source_create.py +0 -58
- letta_client/types/source_schema.py +0 -63
- letta_client/types/source_stats.py +0 -48
- letta_client/types/source_update.py +0 -48
- letta_client/types/sse_server_config.py +0 -56
- letta_client/types/stdio_server_config.py +0 -40
- letta_client/types/step_feedback.py +0 -5
- letta_client/types/step_metrics.py +0 -78
- letta_client/types/step_status.py +0 -5
- letta_client/types/streamable_http_server_config.py +0 -56
- letta_client/types/summarized_reasoning_content.py +0 -39
- letta_client/types/summarized_reasoning_content_part.py +0 -28
- letta_client/types/supervisor_manager.py +0 -24
- letta_client/types/supervisor_manager_update.py +0 -24
- letta_client/types/system_message.py +0 -44
- letta_client/types/tag_schema.py +0 -20
- letta_client/types/text_content.py +0 -29
- letta_client/types/tool_annotations.py +0 -37
- letta_client/types/tool_call.py +0 -22
- letta_client/types/tool_call_content.py +0 -39
- letta_client/types/tool_call_delta.py +0 -22
- letta_client/types/tool_call_message.py +0 -44
- letta_client/types/tool_call_message_tool_call.py +0 -8
- letta_client/types/tool_call_message_tool_calls.py +0 -8
- letta_client/types/tool_call_node.py +0 -35
- letta_client/types/tool_create.py +0 -75
- letta_client/types/tool_env_var_schema.py +0 -24
- letta_client/types/tool_json_schema.py +0 -25
- letta_client/types/tool_return_content.py +0 -34
- letta_client/types/tool_return_message_status.py +0 -5
- letta_client/types/top_logprob.py +0 -22
- letta_client/types/update_assistant_message.py +0 -25
- letta_client/types/update_assistant_message_content.py +0 -7
- letta_client/types/update_reasoning_message.py +0 -21
- letta_client/types/update_ssemcp_server.py +0 -37
- letta_client/types/update_stdio_mcp_server.py +0 -28
- letta_client/types/update_streamable_httpmcp_server.py +0 -42
- letta_client/types/update_system_message.py +0 -24
- letta_client/types/update_user_message.py +0 -25
- letta_client/types/update_user_message_content.py +0 -7
- letta_client/types/url_image.py +0 -24
- letta_client/types/usage_statistics.py +0 -26
- letta_client/types/usage_statistics_completion_token_details.py +0 -20
- letta_client/types/usage_statistics_prompt_token_details.py +0 -20
- letta_client/types/user.py +0 -53
- letta_client/types/user_create.py +0 -23
- letta_client/types/user_message.py +0 -45
- letta_client/types/user_message_content.py +0 -7
- letta_client/types/user_update.py +0 -28
- letta_client/types/validation_error.py +0 -23
- letta_client/types/validation_error_loc_item.py +0 -5
- letta_client/types/voice_sleeptime_manager.py +0 -34
- letta_client/types/voice_sleeptime_manager_update.py +0 -34
- letta_client/version.py +0 -3
- letta_client/voice/__init__.py +0 -4
- letta_client/voice/client.py +0 -144
- letta_client/voice/raw_client.py +0 -183
- letta_client-1.0.0a5.dist-info/METADATA +0 -422
- letta_client-1.0.0a5.dist-info/RECORD +0 -1120
- letta_client-1.0.0a5.dist-info/WHEEL +0 -4
|
@@ -0,0 +1,1983 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, List, Union, Mapping, Iterable, Optional, cast
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Literal
|
|
8
|
+
|
|
9
|
+
import httpx
|
|
10
|
+
|
|
11
|
+
from .files import (
|
|
12
|
+
FilesResource,
|
|
13
|
+
AsyncFilesResource,
|
|
14
|
+
FilesResourceWithRawResponse,
|
|
15
|
+
AsyncFilesResourceWithRawResponse,
|
|
16
|
+
FilesResourceWithStreamingResponse,
|
|
17
|
+
AsyncFilesResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
from .tools import (
|
|
20
|
+
ToolsResource,
|
|
21
|
+
AsyncToolsResource,
|
|
22
|
+
ToolsResourceWithRawResponse,
|
|
23
|
+
AsyncToolsResourceWithRawResponse,
|
|
24
|
+
ToolsResourceWithStreamingResponse,
|
|
25
|
+
AsyncToolsResourceWithStreamingResponse,
|
|
26
|
+
)
|
|
27
|
+
from .blocks import (
|
|
28
|
+
BlocksResource,
|
|
29
|
+
AsyncBlocksResource,
|
|
30
|
+
BlocksResourceWithRawResponse,
|
|
31
|
+
AsyncBlocksResourceWithRawResponse,
|
|
32
|
+
BlocksResourceWithStreamingResponse,
|
|
33
|
+
AsyncBlocksResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
35
|
+
from .groups import (
|
|
36
|
+
GroupsResource,
|
|
37
|
+
AsyncGroupsResource,
|
|
38
|
+
GroupsResourceWithRawResponse,
|
|
39
|
+
AsyncGroupsResourceWithRawResponse,
|
|
40
|
+
GroupsResourceWithStreamingResponse,
|
|
41
|
+
AsyncGroupsResourceWithStreamingResponse,
|
|
42
|
+
)
|
|
43
|
+
from ...types import (
|
|
44
|
+
AgentType,
|
|
45
|
+
agent_list_params,
|
|
46
|
+
agent_create_params,
|
|
47
|
+
agent_update_params,
|
|
48
|
+
agent_retrieve_params,
|
|
49
|
+
agent_export_file_params,
|
|
50
|
+
agent_import_file_params,
|
|
51
|
+
)
|
|
52
|
+
from .folders import (
|
|
53
|
+
FoldersResource,
|
|
54
|
+
AsyncFoldersResource,
|
|
55
|
+
FoldersResourceWithRawResponse,
|
|
56
|
+
AsyncFoldersResourceWithRawResponse,
|
|
57
|
+
FoldersResourceWithStreamingResponse,
|
|
58
|
+
AsyncFoldersResourceWithStreamingResponse,
|
|
59
|
+
)
|
|
60
|
+
from ..._types import (
|
|
61
|
+
Body,
|
|
62
|
+
Omit,
|
|
63
|
+
Query,
|
|
64
|
+
Headers,
|
|
65
|
+
NotGiven,
|
|
66
|
+
FileTypes,
|
|
67
|
+
SequenceNotStr,
|
|
68
|
+
omit,
|
|
69
|
+
not_given,
|
|
70
|
+
)
|
|
71
|
+
from ..._utils import extract_files, maybe_transform, strip_not_given, deepcopy_minimal, async_maybe_transform
|
|
72
|
+
from .messages import (
|
|
73
|
+
MessagesResource,
|
|
74
|
+
AsyncMessagesResource,
|
|
75
|
+
MessagesResourceWithRawResponse,
|
|
76
|
+
AsyncMessagesResourceWithRawResponse,
|
|
77
|
+
MessagesResourceWithStreamingResponse,
|
|
78
|
+
AsyncMessagesResourceWithStreamingResponse,
|
|
79
|
+
)
|
|
80
|
+
from ..._compat import cached_property
|
|
81
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
82
|
+
from ..._response import (
|
|
83
|
+
to_raw_response_wrapper,
|
|
84
|
+
to_streamed_response_wrapper,
|
|
85
|
+
async_to_raw_response_wrapper,
|
|
86
|
+
async_to_streamed_response_wrapper,
|
|
87
|
+
)
|
|
88
|
+
from ..._base_client import make_request_options
|
|
89
|
+
from ...types.agent_type import AgentType
|
|
90
|
+
from ...types.agent_state import AgentState
|
|
91
|
+
from ...types.llm_config_param import LlmConfigParam
|
|
92
|
+
from ...types.create_block_param import CreateBlockParam
|
|
93
|
+
from ...types.agent_list_response import AgentListResponse
|
|
94
|
+
from ...types.agent_count_response import AgentCountResponse
|
|
95
|
+
from ...types.message_create_param import MessageCreateParam
|
|
96
|
+
from ...types.embedding_config_param import EmbeddingConfigParam
|
|
97
|
+
from ...types.agent_import_file_response import AgentImportFileResponse
|
|
98
|
+
|
|
99
|
+
__all__ = ["AgentsResource", "AsyncAgentsResource"]
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class AgentsResource(SyncAPIResource):
|
|
103
|
+
@cached_property
|
|
104
|
+
def tools(self) -> ToolsResource:
|
|
105
|
+
return ToolsResource(self._client)
|
|
106
|
+
|
|
107
|
+
@cached_property
|
|
108
|
+
def folders(self) -> FoldersResource:
|
|
109
|
+
return FoldersResource(self._client)
|
|
110
|
+
|
|
111
|
+
@cached_property
|
|
112
|
+
def files(self) -> FilesResource:
|
|
113
|
+
return FilesResource(self._client)
|
|
114
|
+
|
|
115
|
+
@cached_property
|
|
116
|
+
def blocks(self) -> BlocksResource:
|
|
117
|
+
return BlocksResource(self._client)
|
|
118
|
+
|
|
119
|
+
@cached_property
|
|
120
|
+
def groups(self) -> GroupsResource:
|
|
121
|
+
return GroupsResource(self._client)
|
|
122
|
+
|
|
123
|
+
@cached_property
|
|
124
|
+
def messages(self) -> MessagesResource:
|
|
125
|
+
return MessagesResource(self._client)
|
|
126
|
+
|
|
127
|
+
@cached_property
|
|
128
|
+
def with_raw_response(self) -> AgentsResourceWithRawResponse:
|
|
129
|
+
"""
|
|
130
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
131
|
+
the raw response object instead of the parsed content.
|
|
132
|
+
|
|
133
|
+
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
134
|
+
"""
|
|
135
|
+
return AgentsResourceWithRawResponse(self)
|
|
136
|
+
|
|
137
|
+
@cached_property
|
|
138
|
+
def with_streaming_response(self) -> AgentsResourceWithStreamingResponse:
|
|
139
|
+
"""
|
|
140
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
141
|
+
|
|
142
|
+
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
143
|
+
"""
|
|
144
|
+
return AgentsResourceWithStreamingResponse(self)
|
|
145
|
+
|
|
146
|
+
def create(
|
|
147
|
+
self,
|
|
148
|
+
*,
|
|
149
|
+
agent_type: AgentType | Omit = omit,
|
|
150
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
151
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
152
|
+
context_window_limit: Optional[int] | Omit = omit,
|
|
153
|
+
description: Optional[str] | Omit = omit,
|
|
154
|
+
embedding: Optional[str] | Omit = omit,
|
|
155
|
+
embedding_chunk_size: Optional[int] | Omit = omit,
|
|
156
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
157
|
+
enable_reasoner: Optional[bool] | Omit = omit,
|
|
158
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
159
|
+
from_template: Optional[str] | Omit = omit,
|
|
160
|
+
hidden: Optional[bool] | Omit = omit,
|
|
161
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
162
|
+
include_base_tool_rules: Optional[bool] | Omit = omit,
|
|
163
|
+
include_base_tools: bool | Omit = omit,
|
|
164
|
+
include_default_source: bool | Omit = omit,
|
|
165
|
+
include_multi_agent_tools: bool | Omit = omit,
|
|
166
|
+
initial_message_sequence: Optional[Iterable[MessageCreateParam]] | Omit = omit,
|
|
167
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
168
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
169
|
+
max_reasoning_tokens: Optional[int] | Omit = omit,
|
|
170
|
+
max_tokens: Optional[int] | Omit = omit,
|
|
171
|
+
memory_blocks: Optional[Iterable[CreateBlockParam]] | Omit = omit,
|
|
172
|
+
memory_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
173
|
+
message_buffer_autoclear: bool | Omit = omit,
|
|
174
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
175
|
+
model: Optional[str] | Omit = omit,
|
|
176
|
+
name: str | Omit = omit,
|
|
177
|
+
parallel_tool_calls: Optional[bool] | Omit = omit,
|
|
178
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
179
|
+
project: Optional[str] | Omit = omit,
|
|
180
|
+
project_id: Optional[str] | Omit = omit,
|
|
181
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
182
|
+
response_format: Optional[agent_create_params.ResponseFormat] | Omit = omit,
|
|
183
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
184
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
185
|
+
system: Optional[str] | Omit = omit,
|
|
186
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
187
|
+
template: bool | Omit = omit,
|
|
188
|
+
template_id: Optional[str] | Omit = omit,
|
|
189
|
+
timezone: Optional[str] | Omit = omit,
|
|
190
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
191
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
192
|
+
tool_rules: Optional[Iterable[agent_create_params.ToolRule]] | Omit = omit,
|
|
193
|
+
tools: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
194
|
+
x_project: str | Omit = omit,
|
|
195
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
196
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
197
|
+
extra_headers: Headers | None = None,
|
|
198
|
+
extra_query: Query | None = None,
|
|
199
|
+
extra_body: Body | None = None,
|
|
200
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
201
|
+
) -> AgentState:
|
|
202
|
+
"""
|
|
203
|
+
Create an agent.
|
|
204
|
+
|
|
205
|
+
Args:
|
|
206
|
+
agent_type: The type of agent.
|
|
207
|
+
|
|
208
|
+
base_template_id: The base template id of the agent.
|
|
209
|
+
|
|
210
|
+
block_ids: The ids of the blocks used by the agent.
|
|
211
|
+
|
|
212
|
+
context_window_limit: The context window limit used by the agent.
|
|
213
|
+
|
|
214
|
+
description: The description of the agent.
|
|
215
|
+
|
|
216
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
217
|
+
provider/model-name.
|
|
218
|
+
|
|
219
|
+
embedding_chunk_size: The embedding chunk size used by the agent.
|
|
220
|
+
|
|
221
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
222
|
+
|
|
223
|
+
enable_reasoner: Whether to enable internal extended thinking step for a reasoner model.
|
|
224
|
+
|
|
225
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
226
|
+
|
|
227
|
+
from_template: Deprecated: please use the 'create agents from a template' endpoint instead.
|
|
228
|
+
|
|
229
|
+
hidden: If set to True, the agent will be hidden.
|
|
230
|
+
|
|
231
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
232
|
+
|
|
233
|
+
include_base_tool_rules: If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly
|
|
234
|
+
allowed).
|
|
235
|
+
|
|
236
|
+
include_base_tools: If true, attaches the Letta core tools (e.g. core_memory related functions).
|
|
237
|
+
|
|
238
|
+
include_default_source: If true, automatically creates and attaches a default data source for this
|
|
239
|
+
agent.
|
|
240
|
+
|
|
241
|
+
include_multi_agent_tools: If true, attaches the Letta multi-agent tools (e.g. sending a message to another
|
|
242
|
+
agent).
|
|
243
|
+
|
|
244
|
+
initial_message_sequence: The initial set of messages to put in the agent's in-context memory.
|
|
245
|
+
|
|
246
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
247
|
+
|
|
248
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
249
|
+
too high may exceed the context window, which will break the agent.
|
|
250
|
+
|
|
251
|
+
max_reasoning_tokens: The maximum number of tokens to generate for reasoning step. If not set, the
|
|
252
|
+
model will use its default value.
|
|
253
|
+
|
|
254
|
+
max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
|
|
255
|
+
the model will use its default value.
|
|
256
|
+
|
|
257
|
+
memory_blocks: The blocks to create in the agent's in-context memory.
|
|
258
|
+
|
|
259
|
+
memory_variables: The variables that should be set for the agent.
|
|
260
|
+
|
|
261
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
262
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
263
|
+
recommended unless you have an advanced use case.
|
|
264
|
+
|
|
265
|
+
metadata: The metadata of the agent.
|
|
266
|
+
|
|
267
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
268
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
269
|
+
|
|
270
|
+
name: The name of the agent.
|
|
271
|
+
|
|
272
|
+
parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
|
|
273
|
+
|
|
274
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
275
|
+
may exceed the context window, which will break the agent.
|
|
276
|
+
|
|
277
|
+
project: Deprecated: Project should now be passed via the X-Project header instead of in
|
|
278
|
+
the request body. If using the sdk, this can be done via the new x_project field
|
|
279
|
+
below.
|
|
280
|
+
|
|
281
|
+
project_id: The id of the project the agent belongs to.
|
|
282
|
+
|
|
283
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
284
|
+
|
|
285
|
+
response_format: The response format for the agent.
|
|
286
|
+
|
|
287
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
288
|
+
|
|
289
|
+
source_ids: The ids of the sources used by the agent.
|
|
290
|
+
|
|
291
|
+
system: The system prompt used by the agent.
|
|
292
|
+
|
|
293
|
+
tags: The tags associated with the agent.
|
|
294
|
+
|
|
295
|
+
template: Deprecated: No longer used
|
|
296
|
+
|
|
297
|
+
template_id: The id of the template the agent belongs to.
|
|
298
|
+
|
|
299
|
+
timezone: The timezone of the agent (IANA format).
|
|
300
|
+
|
|
301
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead.
|
|
302
|
+
|
|
303
|
+
tool_ids: The ids of the tools used by the agent.
|
|
304
|
+
|
|
305
|
+
tool_rules: The tool rules governing the agent.
|
|
306
|
+
|
|
307
|
+
tools: The tools used by the agent.
|
|
308
|
+
|
|
309
|
+
x_project: The project slug to associate with the agent (cloud only).
|
|
310
|
+
|
|
311
|
+
extra_headers: Send extra headers
|
|
312
|
+
|
|
313
|
+
extra_query: Add additional query parameters to the request
|
|
314
|
+
|
|
315
|
+
extra_body: Add additional JSON properties to the request
|
|
316
|
+
|
|
317
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
318
|
+
"""
|
|
319
|
+
extra_headers = {**strip_not_given({"X-Project": x_project}), **(extra_headers or {})}
|
|
320
|
+
return self._post(
|
|
321
|
+
"/v1/agents/",
|
|
322
|
+
body=maybe_transform(
|
|
323
|
+
{
|
|
324
|
+
"agent_type": agent_type,
|
|
325
|
+
"base_template_id": base_template_id,
|
|
326
|
+
"block_ids": block_ids,
|
|
327
|
+
"context_window_limit": context_window_limit,
|
|
328
|
+
"description": description,
|
|
329
|
+
"embedding": embedding,
|
|
330
|
+
"embedding_chunk_size": embedding_chunk_size,
|
|
331
|
+
"embedding_config": embedding_config,
|
|
332
|
+
"enable_reasoner": enable_reasoner,
|
|
333
|
+
"enable_sleeptime": enable_sleeptime,
|
|
334
|
+
"from_template": from_template,
|
|
335
|
+
"hidden": hidden,
|
|
336
|
+
"identity_ids": identity_ids,
|
|
337
|
+
"include_base_tool_rules": include_base_tool_rules,
|
|
338
|
+
"include_base_tools": include_base_tools,
|
|
339
|
+
"include_default_source": include_default_source,
|
|
340
|
+
"include_multi_agent_tools": include_multi_agent_tools,
|
|
341
|
+
"initial_message_sequence": initial_message_sequence,
|
|
342
|
+
"llm_config": llm_config,
|
|
343
|
+
"max_files_open": max_files_open,
|
|
344
|
+
"max_reasoning_tokens": max_reasoning_tokens,
|
|
345
|
+
"max_tokens": max_tokens,
|
|
346
|
+
"memory_blocks": memory_blocks,
|
|
347
|
+
"memory_variables": memory_variables,
|
|
348
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
349
|
+
"metadata": metadata,
|
|
350
|
+
"model": model,
|
|
351
|
+
"name": name,
|
|
352
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
353
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
354
|
+
"project": project,
|
|
355
|
+
"project_id": project_id,
|
|
356
|
+
"reasoning": reasoning,
|
|
357
|
+
"response_format": response_format,
|
|
358
|
+
"secrets": secrets,
|
|
359
|
+
"source_ids": source_ids,
|
|
360
|
+
"system": system,
|
|
361
|
+
"tags": tags,
|
|
362
|
+
"template": template,
|
|
363
|
+
"template_id": template_id,
|
|
364
|
+
"timezone": timezone,
|
|
365
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
366
|
+
"tool_ids": tool_ids,
|
|
367
|
+
"tool_rules": tool_rules,
|
|
368
|
+
"tools": tools,
|
|
369
|
+
},
|
|
370
|
+
agent_create_params.AgentCreateParams,
|
|
371
|
+
),
|
|
372
|
+
options=make_request_options(
|
|
373
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
374
|
+
),
|
|
375
|
+
cast_to=AgentState,
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
def retrieve(
|
|
379
|
+
self,
|
|
380
|
+
agent_id: str,
|
|
381
|
+
*,
|
|
382
|
+
include: List[
|
|
383
|
+
Literal[
|
|
384
|
+
"agent.blocks",
|
|
385
|
+
"agent.identities",
|
|
386
|
+
"agent.managed_group",
|
|
387
|
+
"agent.secrets",
|
|
388
|
+
"agent.sources",
|
|
389
|
+
"agent.tags",
|
|
390
|
+
"agent.tools",
|
|
391
|
+
]
|
|
392
|
+
]
|
|
393
|
+
| Omit = omit,
|
|
394
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
395
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
396
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
397
|
+
extra_headers: Headers | None = None,
|
|
398
|
+
extra_query: Query | None = None,
|
|
399
|
+
extra_body: Body | None = None,
|
|
400
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
401
|
+
) -> AgentState:
|
|
402
|
+
"""
|
|
403
|
+
Get the state of the agent.
|
|
404
|
+
|
|
405
|
+
Args:
|
|
406
|
+
agent_id: The ID of the agent in the format 'agent-<uuid4>'
|
|
407
|
+
|
|
408
|
+
include: Specify which relational fields to include in the response. No relationships are
|
|
409
|
+
included by default.
|
|
410
|
+
|
|
411
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
412
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
413
|
+
this can optimize performance by reducing unnecessary joins.This is a legacy
|
|
414
|
+
parameter, and no longer supported after 1.0.0 SDK versions.
|
|
415
|
+
|
|
416
|
+
extra_headers: Send extra headers
|
|
417
|
+
|
|
418
|
+
extra_query: Add additional query parameters to the request
|
|
419
|
+
|
|
420
|
+
extra_body: Add additional JSON properties to the request
|
|
421
|
+
|
|
422
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
423
|
+
"""
|
|
424
|
+
if not agent_id:
|
|
425
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
426
|
+
return self._get(
|
|
427
|
+
f"/v1/agents/{agent_id}",
|
|
428
|
+
options=make_request_options(
|
|
429
|
+
extra_headers=extra_headers,
|
|
430
|
+
extra_query=extra_query,
|
|
431
|
+
extra_body=extra_body,
|
|
432
|
+
timeout=timeout,
|
|
433
|
+
query=maybe_transform(
|
|
434
|
+
{
|
|
435
|
+
"include": include,
|
|
436
|
+
"include_relationships": include_relationships,
|
|
437
|
+
},
|
|
438
|
+
agent_retrieve_params.AgentRetrieveParams,
|
|
439
|
+
),
|
|
440
|
+
),
|
|
441
|
+
cast_to=AgentState,
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
def update(
|
|
445
|
+
self,
|
|
446
|
+
agent_id: str,
|
|
447
|
+
*,
|
|
448
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
449
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
450
|
+
context_window_limit: Optional[int] | Omit = omit,
|
|
451
|
+
description: Optional[str] | Omit = omit,
|
|
452
|
+
embedding: Optional[str] | Omit = omit,
|
|
453
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
454
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
455
|
+
hidden: Optional[bool] | Omit = omit,
|
|
456
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
457
|
+
last_run_completion: Union[str, datetime, None] | Omit = omit,
|
|
458
|
+
last_run_duration_ms: Optional[int] | Omit = omit,
|
|
459
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
460
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
461
|
+
max_tokens: Optional[int] | Omit = omit,
|
|
462
|
+
message_buffer_autoclear: Optional[bool] | Omit = omit,
|
|
463
|
+
message_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
464
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
465
|
+
model: Optional[str] | Omit = omit,
|
|
466
|
+
name: Optional[str] | Omit = omit,
|
|
467
|
+
parallel_tool_calls: Optional[bool] | Omit = omit,
|
|
468
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
469
|
+
project_id: Optional[str] | Omit = omit,
|
|
470
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
471
|
+
response_format: Optional[agent_update_params.ResponseFormat] | Omit = omit,
|
|
472
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
473
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
474
|
+
system: Optional[str] | Omit = omit,
|
|
475
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
476
|
+
template_id: Optional[str] | Omit = omit,
|
|
477
|
+
timezone: Optional[str] | Omit = omit,
|
|
478
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
479
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
480
|
+
tool_rules: Optional[Iterable[agent_update_params.ToolRule]] | Omit = omit,
|
|
481
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
482
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
483
|
+
extra_headers: Headers | None = None,
|
|
484
|
+
extra_query: Query | None = None,
|
|
485
|
+
extra_body: Body | None = None,
|
|
486
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
487
|
+
) -> AgentState:
|
|
488
|
+
"""
|
|
489
|
+
Update an existing agent.
|
|
490
|
+
|
|
491
|
+
Args:
|
|
492
|
+
agent_id: The ID of the agent in the format 'agent-<uuid4>'
|
|
493
|
+
|
|
494
|
+
base_template_id: The base template id of the agent.
|
|
495
|
+
|
|
496
|
+
block_ids: The ids of the blocks used by the agent.
|
|
497
|
+
|
|
498
|
+
context_window_limit: The context window limit used by the agent.
|
|
499
|
+
|
|
500
|
+
description: The description of the agent.
|
|
501
|
+
|
|
502
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
503
|
+
provider/model-name.
|
|
504
|
+
|
|
505
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
506
|
+
|
|
507
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
508
|
+
|
|
509
|
+
hidden: If set to True, the agent will be hidden.
|
|
510
|
+
|
|
511
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
512
|
+
|
|
513
|
+
last_run_completion: The timestamp when the agent last completed a run.
|
|
514
|
+
|
|
515
|
+
last_run_duration_ms: The duration in milliseconds of the agent's last run.
|
|
516
|
+
|
|
517
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
518
|
+
|
|
519
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
520
|
+
too high may exceed the context window, which will break the agent.
|
|
521
|
+
|
|
522
|
+
max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
|
|
523
|
+
the model will use its default value.
|
|
524
|
+
|
|
525
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
526
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
527
|
+
recommended unless you have an advanced use case.
|
|
528
|
+
|
|
529
|
+
message_ids: The ids of the messages in the agent's in-context memory.
|
|
530
|
+
|
|
531
|
+
metadata: The metadata of the agent.
|
|
532
|
+
|
|
533
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
534
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
535
|
+
|
|
536
|
+
name: The name of the agent.
|
|
537
|
+
|
|
538
|
+
parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
|
|
539
|
+
|
|
540
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
541
|
+
may exceed the context window, which will break the agent.
|
|
542
|
+
|
|
543
|
+
project_id: The id of the project the agent belongs to.
|
|
544
|
+
|
|
545
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
546
|
+
|
|
547
|
+
response_format: The response format for the agent.
|
|
548
|
+
|
|
549
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
550
|
+
|
|
551
|
+
source_ids: The ids of the sources used by the agent.
|
|
552
|
+
|
|
553
|
+
system: The system prompt used by the agent.
|
|
554
|
+
|
|
555
|
+
tags: The tags associated with the agent.
|
|
556
|
+
|
|
557
|
+
template_id: The id of the template the agent belongs to.
|
|
558
|
+
|
|
559
|
+
timezone: The timezone of the agent (IANA format).
|
|
560
|
+
|
|
561
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead
|
|
562
|
+
|
|
563
|
+
tool_ids: The ids of the tools used by the agent.
|
|
564
|
+
|
|
565
|
+
tool_rules: The tool rules governing the agent.
|
|
566
|
+
|
|
567
|
+
extra_headers: Send extra headers
|
|
568
|
+
|
|
569
|
+
extra_query: Add additional query parameters to the request
|
|
570
|
+
|
|
571
|
+
extra_body: Add additional JSON properties to the request
|
|
572
|
+
|
|
573
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
574
|
+
"""
|
|
575
|
+
if not agent_id:
|
|
576
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
577
|
+
return self._patch(
|
|
578
|
+
f"/v1/agents/{agent_id}",
|
|
579
|
+
body=maybe_transform(
|
|
580
|
+
{
|
|
581
|
+
"base_template_id": base_template_id,
|
|
582
|
+
"block_ids": block_ids,
|
|
583
|
+
"context_window_limit": context_window_limit,
|
|
584
|
+
"description": description,
|
|
585
|
+
"embedding": embedding,
|
|
586
|
+
"embedding_config": embedding_config,
|
|
587
|
+
"enable_sleeptime": enable_sleeptime,
|
|
588
|
+
"hidden": hidden,
|
|
589
|
+
"identity_ids": identity_ids,
|
|
590
|
+
"last_run_completion": last_run_completion,
|
|
591
|
+
"last_run_duration_ms": last_run_duration_ms,
|
|
592
|
+
"llm_config": llm_config,
|
|
593
|
+
"max_files_open": max_files_open,
|
|
594
|
+
"max_tokens": max_tokens,
|
|
595
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
596
|
+
"message_ids": message_ids,
|
|
597
|
+
"metadata": metadata,
|
|
598
|
+
"model": model,
|
|
599
|
+
"name": name,
|
|
600
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
601
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
602
|
+
"project_id": project_id,
|
|
603
|
+
"reasoning": reasoning,
|
|
604
|
+
"response_format": response_format,
|
|
605
|
+
"secrets": secrets,
|
|
606
|
+
"source_ids": source_ids,
|
|
607
|
+
"system": system,
|
|
608
|
+
"tags": tags,
|
|
609
|
+
"template_id": template_id,
|
|
610
|
+
"timezone": timezone,
|
|
611
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
612
|
+
"tool_ids": tool_ids,
|
|
613
|
+
"tool_rules": tool_rules,
|
|
614
|
+
},
|
|
615
|
+
agent_update_params.AgentUpdateParams,
|
|
616
|
+
),
|
|
617
|
+
options=make_request_options(
|
|
618
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
619
|
+
),
|
|
620
|
+
cast_to=AgentState,
|
|
621
|
+
)
|
|
622
|
+
|
|
623
|
+
def list(
|
|
624
|
+
self,
|
|
625
|
+
*,
|
|
626
|
+
after: Optional[str] | Omit = omit,
|
|
627
|
+
ascending: bool | Omit = omit,
|
|
628
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
629
|
+
before: Optional[str] | Omit = omit,
|
|
630
|
+
identifier_keys: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
631
|
+
identity_id: Optional[str] | Omit = omit,
|
|
632
|
+
include: List[
|
|
633
|
+
Literal[
|
|
634
|
+
"agent.blocks",
|
|
635
|
+
"agent.identities",
|
|
636
|
+
"agent.managed_group",
|
|
637
|
+
"agent.secrets",
|
|
638
|
+
"agent.sources",
|
|
639
|
+
"agent.tags",
|
|
640
|
+
"agent.tools",
|
|
641
|
+
]
|
|
642
|
+
]
|
|
643
|
+
| Omit = omit,
|
|
644
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
645
|
+
limit: Optional[int] | Omit = omit,
|
|
646
|
+
match_all_tags: bool | Omit = omit,
|
|
647
|
+
name: Optional[str] | Omit = omit,
|
|
648
|
+
order: Literal["asc", "desc"] | Omit = omit,
|
|
649
|
+
order_by: Literal["created_at", "last_run_completion"] | Omit = omit,
|
|
650
|
+
project_id: Optional[str] | Omit = omit,
|
|
651
|
+
query_text: Optional[str] | Omit = omit,
|
|
652
|
+
sort_by: Optional[str] | Omit = omit,
|
|
653
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
654
|
+
template_id: Optional[str] | Omit = omit,
|
|
655
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
656
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
657
|
+
extra_headers: Headers | None = None,
|
|
658
|
+
extra_query: Query | None = None,
|
|
659
|
+
extra_body: Body | None = None,
|
|
660
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
661
|
+
) -> AgentListResponse:
|
|
662
|
+
"""
|
|
663
|
+
Get a list of all agents.
|
|
664
|
+
|
|
665
|
+
Args:
|
|
666
|
+
after: Cursor for pagination
|
|
667
|
+
|
|
668
|
+
ascending: Whether to sort agents oldest to newest (True) or newest to oldest (False,
|
|
669
|
+
default)
|
|
670
|
+
|
|
671
|
+
base_template_id: Search agents by base template ID
|
|
672
|
+
|
|
673
|
+
before: Cursor for pagination
|
|
674
|
+
|
|
675
|
+
identifier_keys: Search agents by identifier keys
|
|
676
|
+
|
|
677
|
+
identity_id: Search agents by identity ID
|
|
678
|
+
|
|
679
|
+
include: Specify which relational fields to include in the response. No relationships are
|
|
680
|
+
included by default.
|
|
681
|
+
|
|
682
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
683
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
684
|
+
this can optimize performance by reducing unnecessary joins.This is a legacy
|
|
685
|
+
parameter, and no longer supported after 1.0.0 SDK versions.
|
|
686
|
+
|
|
687
|
+
limit: Limit for pagination
|
|
688
|
+
|
|
689
|
+
match_all_tags: If True, only returns agents that match ALL given tags. Otherwise, return agents
|
|
690
|
+
that have ANY of the passed-in tags.
|
|
691
|
+
|
|
692
|
+
name: Name of the agent
|
|
693
|
+
|
|
694
|
+
order: Sort order for agents by creation time. 'asc' for oldest first, 'desc' for
|
|
695
|
+
newest first
|
|
696
|
+
|
|
697
|
+
order_by: Field to sort by
|
|
698
|
+
|
|
699
|
+
project_id: Search agents by project ID - this will default to your default project on cloud
|
|
700
|
+
|
|
701
|
+
query_text: Search agents by name
|
|
702
|
+
|
|
703
|
+
sort_by: Field to sort by. Options: 'created_at' (default), 'last_run_completion'
|
|
704
|
+
|
|
705
|
+
tags: List of tags to filter agents by
|
|
706
|
+
|
|
707
|
+
template_id: Search agents by template ID
|
|
708
|
+
|
|
709
|
+
extra_headers: Send extra headers
|
|
710
|
+
|
|
711
|
+
extra_query: Add additional query parameters to the request
|
|
712
|
+
|
|
713
|
+
extra_body: Add additional JSON properties to the request
|
|
714
|
+
|
|
715
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
716
|
+
"""
|
|
717
|
+
return self._get(
|
|
718
|
+
"/v1/agents/",
|
|
719
|
+
options=make_request_options(
|
|
720
|
+
extra_headers=extra_headers,
|
|
721
|
+
extra_query=extra_query,
|
|
722
|
+
extra_body=extra_body,
|
|
723
|
+
timeout=timeout,
|
|
724
|
+
query=maybe_transform(
|
|
725
|
+
{
|
|
726
|
+
"after": after,
|
|
727
|
+
"ascending": ascending,
|
|
728
|
+
"base_template_id": base_template_id,
|
|
729
|
+
"before": before,
|
|
730
|
+
"identifier_keys": identifier_keys,
|
|
731
|
+
"identity_id": identity_id,
|
|
732
|
+
"include": include,
|
|
733
|
+
"include_relationships": include_relationships,
|
|
734
|
+
"limit": limit,
|
|
735
|
+
"match_all_tags": match_all_tags,
|
|
736
|
+
"name": name,
|
|
737
|
+
"order": order,
|
|
738
|
+
"order_by": order_by,
|
|
739
|
+
"project_id": project_id,
|
|
740
|
+
"query_text": query_text,
|
|
741
|
+
"sort_by": sort_by,
|
|
742
|
+
"tags": tags,
|
|
743
|
+
"template_id": template_id,
|
|
744
|
+
},
|
|
745
|
+
agent_list_params.AgentListParams,
|
|
746
|
+
),
|
|
747
|
+
),
|
|
748
|
+
cast_to=AgentListResponse,
|
|
749
|
+
)
|
|
750
|
+
|
|
751
|
+
def delete(
|
|
752
|
+
self,
|
|
753
|
+
agent_id: str,
|
|
754
|
+
*,
|
|
755
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
756
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
757
|
+
extra_headers: Headers | None = None,
|
|
758
|
+
extra_query: Query | None = None,
|
|
759
|
+
extra_body: Body | None = None,
|
|
760
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
761
|
+
) -> object:
|
|
762
|
+
"""
|
|
763
|
+
Delete an agent.
|
|
764
|
+
|
|
765
|
+
Args:
|
|
766
|
+
agent_id: The ID of the agent in the format 'agent-<uuid4>'
|
|
767
|
+
|
|
768
|
+
extra_headers: Send extra headers
|
|
769
|
+
|
|
770
|
+
extra_query: Add additional query parameters to the request
|
|
771
|
+
|
|
772
|
+
extra_body: Add additional JSON properties to the request
|
|
773
|
+
|
|
774
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
775
|
+
"""
|
|
776
|
+
if not agent_id:
|
|
777
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
778
|
+
return self._delete(
|
|
779
|
+
f"/v1/agents/{agent_id}",
|
|
780
|
+
options=make_request_options(
|
|
781
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
782
|
+
),
|
|
783
|
+
cast_to=object,
|
|
784
|
+
)
|
|
785
|
+
|
|
786
|
+
def count(
|
|
787
|
+
self,
|
|
788
|
+
*,
|
|
789
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
790
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
791
|
+
extra_headers: Headers | None = None,
|
|
792
|
+
extra_query: Query | None = None,
|
|
793
|
+
extra_body: Body | None = None,
|
|
794
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
795
|
+
) -> AgentCountResponse:
|
|
796
|
+
"""Get the total number of agents."""
|
|
797
|
+
return self._get(
|
|
798
|
+
"/v1/agents/count",
|
|
799
|
+
options=make_request_options(
|
|
800
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
801
|
+
),
|
|
802
|
+
cast_to=int,
|
|
803
|
+
)
|
|
804
|
+
|
|
805
|
+
def export_file(
|
|
806
|
+
self,
|
|
807
|
+
agent_id: str,
|
|
808
|
+
*,
|
|
809
|
+
max_steps: int | Omit = omit,
|
|
810
|
+
use_legacy_format: bool | Omit = omit,
|
|
811
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
812
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
813
|
+
extra_headers: Headers | None = None,
|
|
814
|
+
extra_query: Query | None = None,
|
|
815
|
+
extra_body: Body | None = None,
|
|
816
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
817
|
+
) -> str:
|
|
818
|
+
"""
|
|
819
|
+
Export the serialized JSON representation of an agent, formatted with
|
|
820
|
+
indentation.
|
|
821
|
+
|
|
822
|
+
Args:
|
|
823
|
+
use_legacy_format: If True, exports using the legacy single-agent 'v1' format with inline
|
|
824
|
+
tools/blocks. If False, exports using the new multi-entity 'v2' format, with
|
|
825
|
+
separate agents, tools, blocks, files, etc.
|
|
826
|
+
|
|
827
|
+
extra_headers: Send extra headers
|
|
828
|
+
|
|
829
|
+
extra_query: Add additional query parameters to the request
|
|
830
|
+
|
|
831
|
+
extra_body: Add additional JSON properties to the request
|
|
832
|
+
|
|
833
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
834
|
+
"""
|
|
835
|
+
if not agent_id:
|
|
836
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
837
|
+
return self._get(
|
|
838
|
+
f"/v1/agents/{agent_id}/export",
|
|
839
|
+
options=make_request_options(
|
|
840
|
+
extra_headers=extra_headers,
|
|
841
|
+
extra_query=extra_query,
|
|
842
|
+
extra_body=extra_body,
|
|
843
|
+
timeout=timeout,
|
|
844
|
+
query=maybe_transform(
|
|
845
|
+
{
|
|
846
|
+
"max_steps": max_steps,
|
|
847
|
+
"use_legacy_format": use_legacy_format,
|
|
848
|
+
},
|
|
849
|
+
agent_export_file_params.AgentExportFileParams,
|
|
850
|
+
),
|
|
851
|
+
),
|
|
852
|
+
cast_to=str,
|
|
853
|
+
)
|
|
854
|
+
|
|
855
|
+
def import_file(
|
|
856
|
+
self,
|
|
857
|
+
*,
|
|
858
|
+
file: FileTypes,
|
|
859
|
+
append_copy_suffix: bool | Omit = omit,
|
|
860
|
+
env_vars_json: Optional[str] | Omit = omit,
|
|
861
|
+
override_embedding_handle: Optional[str] | Omit = omit,
|
|
862
|
+
override_existing_tools: bool | Omit = omit,
|
|
863
|
+
override_name: Optional[str] | Omit = omit,
|
|
864
|
+
project_id: Optional[str] | Omit = omit,
|
|
865
|
+
strip_messages: bool | Omit = omit,
|
|
866
|
+
x_override_embedding_model: str | Omit = omit,
|
|
867
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
868
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
869
|
+
extra_headers: Headers | None = None,
|
|
870
|
+
extra_query: Query | None = None,
|
|
871
|
+
extra_body: Body | None = None,
|
|
872
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
873
|
+
) -> AgentImportFileResponse:
|
|
874
|
+
"""Import a serialized agent file and recreate the agent(s) in the system.
|
|
875
|
+
|
|
876
|
+
Returns
|
|
877
|
+
the IDs of all imported agents.
|
|
878
|
+
|
|
879
|
+
Args:
|
|
880
|
+
append_copy_suffix: If set to True, appends "\\__copy" to the end of the agent name.
|
|
881
|
+
|
|
882
|
+
env_vars_json: Environment variables as a JSON string to pass to the agent for tool execution.
|
|
883
|
+
|
|
884
|
+
override_embedding_handle: Override import with specific embedding handle.
|
|
885
|
+
|
|
886
|
+
override_existing_tools: If set to True, existing tools can get their source code overwritten by the
|
|
887
|
+
uploaded tool definitions. Note that Letta core tools can never be updated
|
|
888
|
+
externally.
|
|
889
|
+
|
|
890
|
+
override_name: If provided, overrides the agent name with this value.
|
|
891
|
+
|
|
892
|
+
project_id: The project ID to associate the uploaded agent with.
|
|
893
|
+
|
|
894
|
+
strip_messages: If set to True, strips all messages from the agent before importing.
|
|
895
|
+
|
|
896
|
+
extra_headers: Send extra headers
|
|
897
|
+
|
|
898
|
+
extra_query: Add additional query parameters to the request
|
|
899
|
+
|
|
900
|
+
extra_body: Add additional JSON properties to the request
|
|
901
|
+
|
|
902
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
903
|
+
"""
|
|
904
|
+
extra_headers = {
|
|
905
|
+
**strip_not_given({"x-override-embedding-model": x_override_embedding_model}),
|
|
906
|
+
**(extra_headers or {}),
|
|
907
|
+
}
|
|
908
|
+
body = deepcopy_minimal(
|
|
909
|
+
{
|
|
910
|
+
"file": file,
|
|
911
|
+
"append_copy_suffix": append_copy_suffix,
|
|
912
|
+
"env_vars_json": env_vars_json,
|
|
913
|
+
"override_embedding_handle": override_embedding_handle,
|
|
914
|
+
"override_existing_tools": override_existing_tools,
|
|
915
|
+
"override_name": override_name,
|
|
916
|
+
"project_id": project_id,
|
|
917
|
+
"strip_messages": strip_messages,
|
|
918
|
+
}
|
|
919
|
+
)
|
|
920
|
+
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
|
921
|
+
# It should be noted that the actual Content-Type header that will be
|
|
922
|
+
# sent to the server will contain a `boundary` parameter, e.g.
|
|
923
|
+
# multipart/form-data; boundary=---abc--
|
|
924
|
+
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
|
925
|
+
return self._post(
|
|
926
|
+
"/v1/agents/import",
|
|
927
|
+
body=maybe_transform(body, agent_import_file_params.AgentImportFileParams),
|
|
928
|
+
files=files,
|
|
929
|
+
options=make_request_options(
|
|
930
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
931
|
+
),
|
|
932
|
+
cast_to=AgentImportFileResponse,
|
|
933
|
+
)
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
class AsyncAgentsResource(AsyncAPIResource):
|
|
937
|
+
@cached_property
|
|
938
|
+
def tools(self) -> AsyncToolsResource:
|
|
939
|
+
return AsyncToolsResource(self._client)
|
|
940
|
+
|
|
941
|
+
@cached_property
|
|
942
|
+
def folders(self) -> AsyncFoldersResource:
|
|
943
|
+
return AsyncFoldersResource(self._client)
|
|
944
|
+
|
|
945
|
+
@cached_property
|
|
946
|
+
def files(self) -> AsyncFilesResource:
|
|
947
|
+
return AsyncFilesResource(self._client)
|
|
948
|
+
|
|
949
|
+
@cached_property
|
|
950
|
+
def blocks(self) -> AsyncBlocksResource:
|
|
951
|
+
return AsyncBlocksResource(self._client)
|
|
952
|
+
|
|
953
|
+
@cached_property
|
|
954
|
+
def groups(self) -> AsyncGroupsResource:
|
|
955
|
+
return AsyncGroupsResource(self._client)
|
|
956
|
+
|
|
957
|
+
@cached_property
|
|
958
|
+
def messages(self) -> AsyncMessagesResource:
|
|
959
|
+
return AsyncMessagesResource(self._client)
|
|
960
|
+
|
|
961
|
+
@cached_property
|
|
962
|
+
def with_raw_response(self) -> AsyncAgentsResourceWithRawResponse:
|
|
963
|
+
"""
|
|
964
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
965
|
+
the raw response object instead of the parsed content.
|
|
966
|
+
|
|
967
|
+
For more information, see https://www.github.com/letta-ai/letta-python#accessing-raw-response-data-eg-headers
|
|
968
|
+
"""
|
|
969
|
+
return AsyncAgentsResourceWithRawResponse(self)
|
|
970
|
+
|
|
971
|
+
@cached_property
|
|
972
|
+
def with_streaming_response(self) -> AsyncAgentsResourceWithStreamingResponse:
|
|
973
|
+
"""
|
|
974
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
975
|
+
|
|
976
|
+
For more information, see https://www.github.com/letta-ai/letta-python#with_streaming_response
|
|
977
|
+
"""
|
|
978
|
+
return AsyncAgentsResourceWithStreamingResponse(self)
|
|
979
|
+
|
|
980
|
+
async def create(
|
|
981
|
+
self,
|
|
982
|
+
*,
|
|
983
|
+
agent_type: AgentType | Omit = omit,
|
|
984
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
985
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
986
|
+
context_window_limit: Optional[int] | Omit = omit,
|
|
987
|
+
description: Optional[str] | Omit = omit,
|
|
988
|
+
embedding: Optional[str] | Omit = omit,
|
|
989
|
+
embedding_chunk_size: Optional[int] | Omit = omit,
|
|
990
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
991
|
+
enable_reasoner: Optional[bool] | Omit = omit,
|
|
992
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
993
|
+
from_template: Optional[str] | Omit = omit,
|
|
994
|
+
hidden: Optional[bool] | Omit = omit,
|
|
995
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
996
|
+
include_base_tool_rules: Optional[bool] | Omit = omit,
|
|
997
|
+
include_base_tools: bool | Omit = omit,
|
|
998
|
+
include_default_source: bool | Omit = omit,
|
|
999
|
+
include_multi_agent_tools: bool | Omit = omit,
|
|
1000
|
+
initial_message_sequence: Optional[Iterable[MessageCreateParam]] | Omit = omit,
|
|
1001
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
1002
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
1003
|
+
max_reasoning_tokens: Optional[int] | Omit = omit,
|
|
1004
|
+
max_tokens: Optional[int] | Omit = omit,
|
|
1005
|
+
memory_blocks: Optional[Iterable[CreateBlockParam]] | Omit = omit,
|
|
1006
|
+
memory_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
1007
|
+
message_buffer_autoclear: bool | Omit = omit,
|
|
1008
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
1009
|
+
model: Optional[str] | Omit = omit,
|
|
1010
|
+
name: str | Omit = omit,
|
|
1011
|
+
parallel_tool_calls: Optional[bool] | Omit = omit,
|
|
1012
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
1013
|
+
project: Optional[str] | Omit = omit,
|
|
1014
|
+
project_id: Optional[str] | Omit = omit,
|
|
1015
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
1016
|
+
response_format: Optional[agent_create_params.ResponseFormat] | Omit = omit,
|
|
1017
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
1018
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1019
|
+
system: Optional[str] | Omit = omit,
|
|
1020
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1021
|
+
template: bool | Omit = omit,
|
|
1022
|
+
template_id: Optional[str] | Omit = omit,
|
|
1023
|
+
timezone: Optional[str] | Omit = omit,
|
|
1024
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
1025
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1026
|
+
tool_rules: Optional[Iterable[agent_create_params.ToolRule]] | Omit = omit,
|
|
1027
|
+
tools: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1028
|
+
x_project: str | Omit = omit,
|
|
1029
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1030
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1031
|
+
extra_headers: Headers | None = None,
|
|
1032
|
+
extra_query: Query | None = None,
|
|
1033
|
+
extra_body: Body | None = None,
|
|
1034
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1035
|
+
) -> AgentState:
|
|
1036
|
+
"""
|
|
1037
|
+
Create an agent.
|
|
1038
|
+
|
|
1039
|
+
Args:
|
|
1040
|
+
agent_type: The type of agent.
|
|
1041
|
+
|
|
1042
|
+
base_template_id: The base template id of the agent.
|
|
1043
|
+
|
|
1044
|
+
block_ids: The ids of the blocks used by the agent.
|
|
1045
|
+
|
|
1046
|
+
context_window_limit: The context window limit used by the agent.
|
|
1047
|
+
|
|
1048
|
+
description: The description of the agent.
|
|
1049
|
+
|
|
1050
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
1051
|
+
provider/model-name.
|
|
1052
|
+
|
|
1053
|
+
embedding_chunk_size: The embedding chunk size used by the agent.
|
|
1054
|
+
|
|
1055
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
1056
|
+
|
|
1057
|
+
enable_reasoner: Whether to enable internal extended thinking step for a reasoner model.
|
|
1058
|
+
|
|
1059
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
1060
|
+
|
|
1061
|
+
from_template: Deprecated: please use the 'create agents from a template' endpoint instead.
|
|
1062
|
+
|
|
1063
|
+
hidden: If set to True, the agent will be hidden.
|
|
1064
|
+
|
|
1065
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
1066
|
+
|
|
1067
|
+
include_base_tool_rules: If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly
|
|
1068
|
+
allowed).
|
|
1069
|
+
|
|
1070
|
+
include_base_tools: If true, attaches the Letta core tools (e.g. core_memory related functions).
|
|
1071
|
+
|
|
1072
|
+
include_default_source: If true, automatically creates and attaches a default data source for this
|
|
1073
|
+
agent.
|
|
1074
|
+
|
|
1075
|
+
include_multi_agent_tools: If true, attaches the Letta multi-agent tools (e.g. sending a message to another
|
|
1076
|
+
agent).
|
|
1077
|
+
|
|
1078
|
+
initial_message_sequence: The initial set of messages to put in the agent's in-context memory.
|
|
1079
|
+
|
|
1080
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
1081
|
+
|
|
1082
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
1083
|
+
too high may exceed the context window, which will break the agent.
|
|
1084
|
+
|
|
1085
|
+
max_reasoning_tokens: The maximum number of tokens to generate for reasoning step. If not set, the
|
|
1086
|
+
model will use its default value.
|
|
1087
|
+
|
|
1088
|
+
max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
|
|
1089
|
+
the model will use its default value.
|
|
1090
|
+
|
|
1091
|
+
memory_blocks: The blocks to create in the agent's in-context memory.
|
|
1092
|
+
|
|
1093
|
+
memory_variables: The variables that should be set for the agent.
|
|
1094
|
+
|
|
1095
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
1096
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
1097
|
+
recommended unless you have an advanced use case.
|
|
1098
|
+
|
|
1099
|
+
metadata: The metadata of the agent.
|
|
1100
|
+
|
|
1101
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
1102
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
1103
|
+
|
|
1104
|
+
name: The name of the agent.
|
|
1105
|
+
|
|
1106
|
+
parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
|
|
1107
|
+
|
|
1108
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
1109
|
+
may exceed the context window, which will break the agent.
|
|
1110
|
+
|
|
1111
|
+
project: Deprecated: Project should now be passed via the X-Project header instead of in
|
|
1112
|
+
the request body. If using the sdk, this can be done via the new x_project field
|
|
1113
|
+
below.
|
|
1114
|
+
|
|
1115
|
+
project_id: The id of the project the agent belongs to.
|
|
1116
|
+
|
|
1117
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
1118
|
+
|
|
1119
|
+
response_format: The response format for the agent.
|
|
1120
|
+
|
|
1121
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
1122
|
+
|
|
1123
|
+
source_ids: The ids of the sources used by the agent.
|
|
1124
|
+
|
|
1125
|
+
system: The system prompt used by the agent.
|
|
1126
|
+
|
|
1127
|
+
tags: The tags associated with the agent.
|
|
1128
|
+
|
|
1129
|
+
template: Deprecated: No longer used
|
|
1130
|
+
|
|
1131
|
+
template_id: The id of the template the agent belongs to.
|
|
1132
|
+
|
|
1133
|
+
timezone: The timezone of the agent (IANA format).
|
|
1134
|
+
|
|
1135
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead.
|
|
1136
|
+
|
|
1137
|
+
tool_ids: The ids of the tools used by the agent.
|
|
1138
|
+
|
|
1139
|
+
tool_rules: The tool rules governing the agent.
|
|
1140
|
+
|
|
1141
|
+
tools: The tools used by the agent.
|
|
1142
|
+
|
|
1143
|
+
x_project: The project slug to associate with the agent (cloud only).
|
|
1144
|
+
|
|
1145
|
+
extra_headers: Send extra headers
|
|
1146
|
+
|
|
1147
|
+
extra_query: Add additional query parameters to the request
|
|
1148
|
+
|
|
1149
|
+
extra_body: Add additional JSON properties to the request
|
|
1150
|
+
|
|
1151
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1152
|
+
"""
|
|
1153
|
+
extra_headers = {**strip_not_given({"X-Project": x_project}), **(extra_headers or {})}
|
|
1154
|
+
return await self._post(
|
|
1155
|
+
"/v1/agents/",
|
|
1156
|
+
body=await async_maybe_transform(
|
|
1157
|
+
{
|
|
1158
|
+
"agent_type": agent_type,
|
|
1159
|
+
"base_template_id": base_template_id,
|
|
1160
|
+
"block_ids": block_ids,
|
|
1161
|
+
"context_window_limit": context_window_limit,
|
|
1162
|
+
"description": description,
|
|
1163
|
+
"embedding": embedding,
|
|
1164
|
+
"embedding_chunk_size": embedding_chunk_size,
|
|
1165
|
+
"embedding_config": embedding_config,
|
|
1166
|
+
"enable_reasoner": enable_reasoner,
|
|
1167
|
+
"enable_sleeptime": enable_sleeptime,
|
|
1168
|
+
"from_template": from_template,
|
|
1169
|
+
"hidden": hidden,
|
|
1170
|
+
"identity_ids": identity_ids,
|
|
1171
|
+
"include_base_tool_rules": include_base_tool_rules,
|
|
1172
|
+
"include_base_tools": include_base_tools,
|
|
1173
|
+
"include_default_source": include_default_source,
|
|
1174
|
+
"include_multi_agent_tools": include_multi_agent_tools,
|
|
1175
|
+
"initial_message_sequence": initial_message_sequence,
|
|
1176
|
+
"llm_config": llm_config,
|
|
1177
|
+
"max_files_open": max_files_open,
|
|
1178
|
+
"max_reasoning_tokens": max_reasoning_tokens,
|
|
1179
|
+
"max_tokens": max_tokens,
|
|
1180
|
+
"memory_blocks": memory_blocks,
|
|
1181
|
+
"memory_variables": memory_variables,
|
|
1182
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1183
|
+
"metadata": metadata,
|
|
1184
|
+
"model": model,
|
|
1185
|
+
"name": name,
|
|
1186
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
1187
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
1188
|
+
"project": project,
|
|
1189
|
+
"project_id": project_id,
|
|
1190
|
+
"reasoning": reasoning,
|
|
1191
|
+
"response_format": response_format,
|
|
1192
|
+
"secrets": secrets,
|
|
1193
|
+
"source_ids": source_ids,
|
|
1194
|
+
"system": system,
|
|
1195
|
+
"tags": tags,
|
|
1196
|
+
"template": template,
|
|
1197
|
+
"template_id": template_id,
|
|
1198
|
+
"timezone": timezone,
|
|
1199
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
1200
|
+
"tool_ids": tool_ids,
|
|
1201
|
+
"tool_rules": tool_rules,
|
|
1202
|
+
"tools": tools,
|
|
1203
|
+
},
|
|
1204
|
+
agent_create_params.AgentCreateParams,
|
|
1205
|
+
),
|
|
1206
|
+
options=make_request_options(
|
|
1207
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1208
|
+
),
|
|
1209
|
+
cast_to=AgentState,
|
|
1210
|
+
)
|
|
1211
|
+
|
|
1212
|
+
async def retrieve(
|
|
1213
|
+
self,
|
|
1214
|
+
agent_id: str,
|
|
1215
|
+
*,
|
|
1216
|
+
include: List[
|
|
1217
|
+
Literal[
|
|
1218
|
+
"agent.blocks",
|
|
1219
|
+
"agent.identities",
|
|
1220
|
+
"agent.managed_group",
|
|
1221
|
+
"agent.secrets",
|
|
1222
|
+
"agent.sources",
|
|
1223
|
+
"agent.tags",
|
|
1224
|
+
"agent.tools",
|
|
1225
|
+
]
|
|
1226
|
+
]
|
|
1227
|
+
| Omit = omit,
|
|
1228
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1229
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1230
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1231
|
+
extra_headers: Headers | None = None,
|
|
1232
|
+
extra_query: Query | None = None,
|
|
1233
|
+
extra_body: Body | None = None,
|
|
1234
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1235
|
+
) -> AgentState:
|
|
1236
|
+
"""
|
|
1237
|
+
Get the state of the agent.
|
|
1238
|
+
|
|
1239
|
+
Args:
|
|
1240
|
+
agent_id: The ID of the agent in the format 'agent-<uuid4>'
|
|
1241
|
+
|
|
1242
|
+
include: Specify which relational fields to include in the response. No relationships are
|
|
1243
|
+
included by default.
|
|
1244
|
+
|
|
1245
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
1246
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
1247
|
+
this can optimize performance by reducing unnecessary joins.This is a legacy
|
|
1248
|
+
parameter, and no longer supported after 1.0.0 SDK versions.
|
|
1249
|
+
|
|
1250
|
+
extra_headers: Send extra headers
|
|
1251
|
+
|
|
1252
|
+
extra_query: Add additional query parameters to the request
|
|
1253
|
+
|
|
1254
|
+
extra_body: Add additional JSON properties to the request
|
|
1255
|
+
|
|
1256
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1257
|
+
"""
|
|
1258
|
+
if not agent_id:
|
|
1259
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1260
|
+
return await self._get(
|
|
1261
|
+
f"/v1/agents/{agent_id}",
|
|
1262
|
+
options=make_request_options(
|
|
1263
|
+
extra_headers=extra_headers,
|
|
1264
|
+
extra_query=extra_query,
|
|
1265
|
+
extra_body=extra_body,
|
|
1266
|
+
timeout=timeout,
|
|
1267
|
+
query=await async_maybe_transform(
|
|
1268
|
+
{
|
|
1269
|
+
"include": include,
|
|
1270
|
+
"include_relationships": include_relationships,
|
|
1271
|
+
},
|
|
1272
|
+
agent_retrieve_params.AgentRetrieveParams,
|
|
1273
|
+
),
|
|
1274
|
+
),
|
|
1275
|
+
cast_to=AgentState,
|
|
1276
|
+
)
|
|
1277
|
+
|
|
1278
|
+
async def update(
|
|
1279
|
+
self,
|
|
1280
|
+
agent_id: str,
|
|
1281
|
+
*,
|
|
1282
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
1283
|
+
block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1284
|
+
context_window_limit: Optional[int] | Omit = omit,
|
|
1285
|
+
description: Optional[str] | Omit = omit,
|
|
1286
|
+
embedding: Optional[str] | Omit = omit,
|
|
1287
|
+
embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
|
|
1288
|
+
enable_sleeptime: Optional[bool] | Omit = omit,
|
|
1289
|
+
hidden: Optional[bool] | Omit = omit,
|
|
1290
|
+
identity_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1291
|
+
last_run_completion: Union[str, datetime, None] | Omit = omit,
|
|
1292
|
+
last_run_duration_ms: Optional[int] | Omit = omit,
|
|
1293
|
+
llm_config: Optional[LlmConfigParam] | Omit = omit,
|
|
1294
|
+
max_files_open: Optional[int] | Omit = omit,
|
|
1295
|
+
max_tokens: Optional[int] | Omit = omit,
|
|
1296
|
+
message_buffer_autoclear: Optional[bool] | Omit = omit,
|
|
1297
|
+
message_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1298
|
+
metadata: Optional[Dict[str, object]] | Omit = omit,
|
|
1299
|
+
model: Optional[str] | Omit = omit,
|
|
1300
|
+
name: Optional[str] | Omit = omit,
|
|
1301
|
+
parallel_tool_calls: Optional[bool] | Omit = omit,
|
|
1302
|
+
per_file_view_window_char_limit: Optional[int] | Omit = omit,
|
|
1303
|
+
project_id: Optional[str] | Omit = omit,
|
|
1304
|
+
reasoning: Optional[bool] | Omit = omit,
|
|
1305
|
+
response_format: Optional[agent_update_params.ResponseFormat] | Omit = omit,
|
|
1306
|
+
secrets: Optional[Dict[str, str]] | Omit = omit,
|
|
1307
|
+
source_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1308
|
+
system: Optional[str] | Omit = omit,
|
|
1309
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1310
|
+
template_id: Optional[str] | Omit = omit,
|
|
1311
|
+
timezone: Optional[str] | Omit = omit,
|
|
1312
|
+
tool_exec_environment_variables: Optional[Dict[str, str]] | Omit = omit,
|
|
1313
|
+
tool_ids: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1314
|
+
tool_rules: Optional[Iterable[agent_update_params.ToolRule]] | Omit = omit,
|
|
1315
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1316
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1317
|
+
extra_headers: Headers | None = None,
|
|
1318
|
+
extra_query: Query | None = None,
|
|
1319
|
+
extra_body: Body | None = None,
|
|
1320
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1321
|
+
) -> AgentState:
|
|
1322
|
+
"""
|
|
1323
|
+
Update an existing agent.
|
|
1324
|
+
|
|
1325
|
+
Args:
|
|
1326
|
+
agent_id: The ID of the agent in the format 'agent-<uuid4>'
|
|
1327
|
+
|
|
1328
|
+
base_template_id: The base template id of the agent.
|
|
1329
|
+
|
|
1330
|
+
block_ids: The ids of the blocks used by the agent.
|
|
1331
|
+
|
|
1332
|
+
context_window_limit: The context window limit used by the agent.
|
|
1333
|
+
|
|
1334
|
+
description: The description of the agent.
|
|
1335
|
+
|
|
1336
|
+
embedding: The embedding configuration handle used by the agent, specified in the format
|
|
1337
|
+
provider/model-name.
|
|
1338
|
+
|
|
1339
|
+
embedding_config: Configuration for embedding model connection and processing parameters.
|
|
1340
|
+
|
|
1341
|
+
enable_sleeptime: If set to True, memory management will move to a background agent thread.
|
|
1342
|
+
|
|
1343
|
+
hidden: If set to True, the agent will be hidden.
|
|
1344
|
+
|
|
1345
|
+
identity_ids: The ids of the identities associated with this agent.
|
|
1346
|
+
|
|
1347
|
+
last_run_completion: The timestamp when the agent last completed a run.
|
|
1348
|
+
|
|
1349
|
+
last_run_duration_ms: The duration in milliseconds of the agent's last run.
|
|
1350
|
+
|
|
1351
|
+
llm_config: Configuration for Language Model (LLM) connection and generation parameters.
|
|
1352
|
+
|
|
1353
|
+
max_files_open: Maximum number of files that can be open at once for this agent. Setting this
|
|
1354
|
+
too high may exceed the context window, which will break the agent.
|
|
1355
|
+
|
|
1356
|
+
max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
|
|
1357
|
+
the model will use its default value.
|
|
1358
|
+
|
|
1359
|
+
message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
|
|
1360
|
+
will still retain state via core memory blocks and archival/recall memory). Not
|
|
1361
|
+
recommended unless you have an advanced use case.
|
|
1362
|
+
|
|
1363
|
+
message_ids: The ids of the messages in the agent's in-context memory.
|
|
1364
|
+
|
|
1365
|
+
metadata: The metadata of the agent.
|
|
1366
|
+
|
|
1367
|
+
model: The LLM configuration handle used by the agent, specified in the format
|
|
1368
|
+
provider/model-name, as an alternative to specifying llm_config.
|
|
1369
|
+
|
|
1370
|
+
name: The name of the agent.
|
|
1371
|
+
|
|
1372
|
+
parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
|
|
1373
|
+
|
|
1374
|
+
per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
|
|
1375
|
+
may exceed the context window, which will break the agent.
|
|
1376
|
+
|
|
1377
|
+
project_id: The id of the project the agent belongs to.
|
|
1378
|
+
|
|
1379
|
+
reasoning: Whether to enable reasoning for this agent.
|
|
1380
|
+
|
|
1381
|
+
response_format: The response format for the agent.
|
|
1382
|
+
|
|
1383
|
+
secrets: The environment variables for tool execution specific to this agent.
|
|
1384
|
+
|
|
1385
|
+
source_ids: The ids of the sources used by the agent.
|
|
1386
|
+
|
|
1387
|
+
system: The system prompt used by the agent.
|
|
1388
|
+
|
|
1389
|
+
tags: The tags associated with the agent.
|
|
1390
|
+
|
|
1391
|
+
template_id: The id of the template the agent belongs to.
|
|
1392
|
+
|
|
1393
|
+
timezone: The timezone of the agent (IANA format).
|
|
1394
|
+
|
|
1395
|
+
tool_exec_environment_variables: Deprecated: use `secrets` field instead
|
|
1396
|
+
|
|
1397
|
+
tool_ids: The ids of the tools used by the agent.
|
|
1398
|
+
|
|
1399
|
+
tool_rules: The tool rules governing the agent.
|
|
1400
|
+
|
|
1401
|
+
extra_headers: Send extra headers
|
|
1402
|
+
|
|
1403
|
+
extra_query: Add additional query parameters to the request
|
|
1404
|
+
|
|
1405
|
+
extra_body: Add additional JSON properties to the request
|
|
1406
|
+
|
|
1407
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1408
|
+
"""
|
|
1409
|
+
if not agent_id:
|
|
1410
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1411
|
+
return await self._patch(
|
|
1412
|
+
f"/v1/agents/{agent_id}",
|
|
1413
|
+
body=await async_maybe_transform(
|
|
1414
|
+
{
|
|
1415
|
+
"base_template_id": base_template_id,
|
|
1416
|
+
"block_ids": block_ids,
|
|
1417
|
+
"context_window_limit": context_window_limit,
|
|
1418
|
+
"description": description,
|
|
1419
|
+
"embedding": embedding,
|
|
1420
|
+
"embedding_config": embedding_config,
|
|
1421
|
+
"enable_sleeptime": enable_sleeptime,
|
|
1422
|
+
"hidden": hidden,
|
|
1423
|
+
"identity_ids": identity_ids,
|
|
1424
|
+
"last_run_completion": last_run_completion,
|
|
1425
|
+
"last_run_duration_ms": last_run_duration_ms,
|
|
1426
|
+
"llm_config": llm_config,
|
|
1427
|
+
"max_files_open": max_files_open,
|
|
1428
|
+
"max_tokens": max_tokens,
|
|
1429
|
+
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1430
|
+
"message_ids": message_ids,
|
|
1431
|
+
"metadata": metadata,
|
|
1432
|
+
"model": model,
|
|
1433
|
+
"name": name,
|
|
1434
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
1435
|
+
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
1436
|
+
"project_id": project_id,
|
|
1437
|
+
"reasoning": reasoning,
|
|
1438
|
+
"response_format": response_format,
|
|
1439
|
+
"secrets": secrets,
|
|
1440
|
+
"source_ids": source_ids,
|
|
1441
|
+
"system": system,
|
|
1442
|
+
"tags": tags,
|
|
1443
|
+
"template_id": template_id,
|
|
1444
|
+
"timezone": timezone,
|
|
1445
|
+
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
1446
|
+
"tool_ids": tool_ids,
|
|
1447
|
+
"tool_rules": tool_rules,
|
|
1448
|
+
},
|
|
1449
|
+
agent_update_params.AgentUpdateParams,
|
|
1450
|
+
),
|
|
1451
|
+
options=make_request_options(
|
|
1452
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1453
|
+
),
|
|
1454
|
+
cast_to=AgentState,
|
|
1455
|
+
)
|
|
1456
|
+
|
|
1457
|
+
async def list(
|
|
1458
|
+
self,
|
|
1459
|
+
*,
|
|
1460
|
+
after: Optional[str] | Omit = omit,
|
|
1461
|
+
ascending: bool | Omit = omit,
|
|
1462
|
+
base_template_id: Optional[str] | Omit = omit,
|
|
1463
|
+
before: Optional[str] | Omit = omit,
|
|
1464
|
+
identifier_keys: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1465
|
+
identity_id: Optional[str] | Omit = omit,
|
|
1466
|
+
include: List[
|
|
1467
|
+
Literal[
|
|
1468
|
+
"agent.blocks",
|
|
1469
|
+
"agent.identities",
|
|
1470
|
+
"agent.managed_group",
|
|
1471
|
+
"agent.secrets",
|
|
1472
|
+
"agent.sources",
|
|
1473
|
+
"agent.tags",
|
|
1474
|
+
"agent.tools",
|
|
1475
|
+
]
|
|
1476
|
+
]
|
|
1477
|
+
| Omit = omit,
|
|
1478
|
+
include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1479
|
+
limit: Optional[int] | Omit = omit,
|
|
1480
|
+
match_all_tags: bool | Omit = omit,
|
|
1481
|
+
name: Optional[str] | Omit = omit,
|
|
1482
|
+
order: Literal["asc", "desc"] | Omit = omit,
|
|
1483
|
+
order_by: Literal["created_at", "last_run_completion"] | Omit = omit,
|
|
1484
|
+
project_id: Optional[str] | Omit = omit,
|
|
1485
|
+
query_text: Optional[str] | Omit = omit,
|
|
1486
|
+
sort_by: Optional[str] | Omit = omit,
|
|
1487
|
+
tags: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
1488
|
+
template_id: Optional[str] | Omit = omit,
|
|
1489
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1490
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1491
|
+
extra_headers: Headers | None = None,
|
|
1492
|
+
extra_query: Query | None = None,
|
|
1493
|
+
extra_body: Body | None = None,
|
|
1494
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1495
|
+
) -> AgentListResponse:
|
|
1496
|
+
"""
|
|
1497
|
+
Get a list of all agents.
|
|
1498
|
+
|
|
1499
|
+
Args:
|
|
1500
|
+
after: Cursor for pagination
|
|
1501
|
+
|
|
1502
|
+
ascending: Whether to sort agents oldest to newest (True) or newest to oldest (False,
|
|
1503
|
+
default)
|
|
1504
|
+
|
|
1505
|
+
base_template_id: Search agents by base template ID
|
|
1506
|
+
|
|
1507
|
+
before: Cursor for pagination
|
|
1508
|
+
|
|
1509
|
+
identifier_keys: Search agents by identifier keys
|
|
1510
|
+
|
|
1511
|
+
identity_id: Search agents by identity ID
|
|
1512
|
+
|
|
1513
|
+
include: Specify which relational fields to include in the response. No relationships are
|
|
1514
|
+
included by default.
|
|
1515
|
+
|
|
1516
|
+
include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
|
|
1517
|
+
in the response. If not provided, all relationships are loaded by default. Using
|
|
1518
|
+
this can optimize performance by reducing unnecessary joins.This is a legacy
|
|
1519
|
+
parameter, and no longer supported after 1.0.0 SDK versions.
|
|
1520
|
+
|
|
1521
|
+
limit: Limit for pagination
|
|
1522
|
+
|
|
1523
|
+
match_all_tags: If True, only returns agents that match ALL given tags. Otherwise, return agents
|
|
1524
|
+
that have ANY of the passed-in tags.
|
|
1525
|
+
|
|
1526
|
+
name: Name of the agent
|
|
1527
|
+
|
|
1528
|
+
order: Sort order for agents by creation time. 'asc' for oldest first, 'desc' for
|
|
1529
|
+
newest first
|
|
1530
|
+
|
|
1531
|
+
order_by: Field to sort by
|
|
1532
|
+
|
|
1533
|
+
project_id: Search agents by project ID - this will default to your default project on cloud
|
|
1534
|
+
|
|
1535
|
+
query_text: Search agents by name
|
|
1536
|
+
|
|
1537
|
+
sort_by: Field to sort by. Options: 'created_at' (default), 'last_run_completion'
|
|
1538
|
+
|
|
1539
|
+
tags: List of tags to filter agents by
|
|
1540
|
+
|
|
1541
|
+
template_id: Search agents by template ID
|
|
1542
|
+
|
|
1543
|
+
extra_headers: Send extra headers
|
|
1544
|
+
|
|
1545
|
+
extra_query: Add additional query parameters to the request
|
|
1546
|
+
|
|
1547
|
+
extra_body: Add additional JSON properties to the request
|
|
1548
|
+
|
|
1549
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1550
|
+
"""
|
|
1551
|
+
return await self._get(
|
|
1552
|
+
"/v1/agents/",
|
|
1553
|
+
options=make_request_options(
|
|
1554
|
+
extra_headers=extra_headers,
|
|
1555
|
+
extra_query=extra_query,
|
|
1556
|
+
extra_body=extra_body,
|
|
1557
|
+
timeout=timeout,
|
|
1558
|
+
query=await async_maybe_transform(
|
|
1559
|
+
{
|
|
1560
|
+
"after": after,
|
|
1561
|
+
"ascending": ascending,
|
|
1562
|
+
"base_template_id": base_template_id,
|
|
1563
|
+
"before": before,
|
|
1564
|
+
"identifier_keys": identifier_keys,
|
|
1565
|
+
"identity_id": identity_id,
|
|
1566
|
+
"include": include,
|
|
1567
|
+
"include_relationships": include_relationships,
|
|
1568
|
+
"limit": limit,
|
|
1569
|
+
"match_all_tags": match_all_tags,
|
|
1570
|
+
"name": name,
|
|
1571
|
+
"order": order,
|
|
1572
|
+
"order_by": order_by,
|
|
1573
|
+
"project_id": project_id,
|
|
1574
|
+
"query_text": query_text,
|
|
1575
|
+
"sort_by": sort_by,
|
|
1576
|
+
"tags": tags,
|
|
1577
|
+
"template_id": template_id,
|
|
1578
|
+
},
|
|
1579
|
+
agent_list_params.AgentListParams,
|
|
1580
|
+
),
|
|
1581
|
+
),
|
|
1582
|
+
cast_to=AgentListResponse,
|
|
1583
|
+
)
|
|
1584
|
+
|
|
1585
|
+
async def delete(
|
|
1586
|
+
self,
|
|
1587
|
+
agent_id: str,
|
|
1588
|
+
*,
|
|
1589
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1590
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1591
|
+
extra_headers: Headers | None = None,
|
|
1592
|
+
extra_query: Query | None = None,
|
|
1593
|
+
extra_body: Body | None = None,
|
|
1594
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1595
|
+
) -> object:
|
|
1596
|
+
"""
|
|
1597
|
+
Delete an agent.
|
|
1598
|
+
|
|
1599
|
+
Args:
|
|
1600
|
+
agent_id: The ID of the agent in the format 'agent-<uuid4>'
|
|
1601
|
+
|
|
1602
|
+
extra_headers: Send extra headers
|
|
1603
|
+
|
|
1604
|
+
extra_query: Add additional query parameters to the request
|
|
1605
|
+
|
|
1606
|
+
extra_body: Add additional JSON properties to the request
|
|
1607
|
+
|
|
1608
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1609
|
+
"""
|
|
1610
|
+
if not agent_id:
|
|
1611
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1612
|
+
return await self._delete(
|
|
1613
|
+
f"/v1/agents/{agent_id}",
|
|
1614
|
+
options=make_request_options(
|
|
1615
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1616
|
+
),
|
|
1617
|
+
cast_to=object,
|
|
1618
|
+
)
|
|
1619
|
+
|
|
1620
|
+
async def count(
|
|
1621
|
+
self,
|
|
1622
|
+
*,
|
|
1623
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1624
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1625
|
+
extra_headers: Headers | None = None,
|
|
1626
|
+
extra_query: Query | None = None,
|
|
1627
|
+
extra_body: Body | None = None,
|
|
1628
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1629
|
+
) -> AgentCountResponse:
|
|
1630
|
+
"""Get the total number of agents."""
|
|
1631
|
+
return await self._get(
|
|
1632
|
+
"/v1/agents/count",
|
|
1633
|
+
options=make_request_options(
|
|
1634
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1635
|
+
),
|
|
1636
|
+
cast_to=int,
|
|
1637
|
+
)
|
|
1638
|
+
|
|
1639
|
+
async def export_file(
|
|
1640
|
+
self,
|
|
1641
|
+
agent_id: str,
|
|
1642
|
+
*,
|
|
1643
|
+
max_steps: int | Omit = omit,
|
|
1644
|
+
use_legacy_format: bool | Omit = omit,
|
|
1645
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1646
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1647
|
+
extra_headers: Headers | None = None,
|
|
1648
|
+
extra_query: Query | None = None,
|
|
1649
|
+
extra_body: Body | None = None,
|
|
1650
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1651
|
+
) -> str:
|
|
1652
|
+
"""
|
|
1653
|
+
Export the serialized JSON representation of an agent, formatted with
|
|
1654
|
+
indentation.
|
|
1655
|
+
|
|
1656
|
+
Args:
|
|
1657
|
+
use_legacy_format: If True, exports using the legacy single-agent 'v1' format with inline
|
|
1658
|
+
tools/blocks. If False, exports using the new multi-entity 'v2' format, with
|
|
1659
|
+
separate agents, tools, blocks, files, etc.
|
|
1660
|
+
|
|
1661
|
+
extra_headers: Send extra headers
|
|
1662
|
+
|
|
1663
|
+
extra_query: Add additional query parameters to the request
|
|
1664
|
+
|
|
1665
|
+
extra_body: Add additional JSON properties to the request
|
|
1666
|
+
|
|
1667
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1668
|
+
"""
|
|
1669
|
+
if not agent_id:
|
|
1670
|
+
raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
|
|
1671
|
+
return await self._get(
|
|
1672
|
+
f"/v1/agents/{agent_id}/export",
|
|
1673
|
+
options=make_request_options(
|
|
1674
|
+
extra_headers=extra_headers,
|
|
1675
|
+
extra_query=extra_query,
|
|
1676
|
+
extra_body=extra_body,
|
|
1677
|
+
timeout=timeout,
|
|
1678
|
+
query=await async_maybe_transform(
|
|
1679
|
+
{
|
|
1680
|
+
"max_steps": max_steps,
|
|
1681
|
+
"use_legacy_format": use_legacy_format,
|
|
1682
|
+
},
|
|
1683
|
+
agent_export_file_params.AgentExportFileParams,
|
|
1684
|
+
),
|
|
1685
|
+
),
|
|
1686
|
+
cast_to=str,
|
|
1687
|
+
)
|
|
1688
|
+
|
|
1689
|
+
async def import_file(
|
|
1690
|
+
self,
|
|
1691
|
+
*,
|
|
1692
|
+
file: FileTypes,
|
|
1693
|
+
append_copy_suffix: bool | Omit = omit,
|
|
1694
|
+
env_vars_json: Optional[str] | Omit = omit,
|
|
1695
|
+
override_embedding_handle: Optional[str] | Omit = omit,
|
|
1696
|
+
override_existing_tools: bool | Omit = omit,
|
|
1697
|
+
override_name: Optional[str] | Omit = omit,
|
|
1698
|
+
project_id: Optional[str] | Omit = omit,
|
|
1699
|
+
strip_messages: bool | Omit = omit,
|
|
1700
|
+
x_override_embedding_model: str | Omit = omit,
|
|
1701
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1702
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1703
|
+
extra_headers: Headers | None = None,
|
|
1704
|
+
extra_query: Query | None = None,
|
|
1705
|
+
extra_body: Body | None = None,
|
|
1706
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1707
|
+
) -> AgentImportFileResponse:
|
|
1708
|
+
"""Import a serialized agent file and recreate the agent(s) in the system.
|
|
1709
|
+
|
|
1710
|
+
Returns
|
|
1711
|
+
the IDs of all imported agents.
|
|
1712
|
+
|
|
1713
|
+
Args:
|
|
1714
|
+
append_copy_suffix: If set to True, appends "\\__copy" to the end of the agent name.
|
|
1715
|
+
|
|
1716
|
+
env_vars_json: Environment variables as a JSON string to pass to the agent for tool execution.
|
|
1717
|
+
|
|
1718
|
+
override_embedding_handle: Override import with specific embedding handle.
|
|
1719
|
+
|
|
1720
|
+
override_existing_tools: If set to True, existing tools can get their source code overwritten by the
|
|
1721
|
+
uploaded tool definitions. Note that Letta core tools can never be updated
|
|
1722
|
+
externally.
|
|
1723
|
+
|
|
1724
|
+
override_name: If provided, overrides the agent name with this value.
|
|
1725
|
+
|
|
1726
|
+
project_id: The project ID to associate the uploaded agent with.
|
|
1727
|
+
|
|
1728
|
+
strip_messages: If set to True, strips all messages from the agent before importing.
|
|
1729
|
+
|
|
1730
|
+
extra_headers: Send extra headers
|
|
1731
|
+
|
|
1732
|
+
extra_query: Add additional query parameters to the request
|
|
1733
|
+
|
|
1734
|
+
extra_body: Add additional JSON properties to the request
|
|
1735
|
+
|
|
1736
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1737
|
+
"""
|
|
1738
|
+
extra_headers = {
|
|
1739
|
+
**strip_not_given({"x-override-embedding-model": x_override_embedding_model}),
|
|
1740
|
+
**(extra_headers or {}),
|
|
1741
|
+
}
|
|
1742
|
+
body = deepcopy_minimal(
|
|
1743
|
+
{
|
|
1744
|
+
"file": file,
|
|
1745
|
+
"append_copy_suffix": append_copy_suffix,
|
|
1746
|
+
"env_vars_json": env_vars_json,
|
|
1747
|
+
"override_embedding_handle": override_embedding_handle,
|
|
1748
|
+
"override_existing_tools": override_existing_tools,
|
|
1749
|
+
"override_name": override_name,
|
|
1750
|
+
"project_id": project_id,
|
|
1751
|
+
"strip_messages": strip_messages,
|
|
1752
|
+
}
|
|
1753
|
+
)
|
|
1754
|
+
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
|
1755
|
+
# It should be noted that the actual Content-Type header that will be
|
|
1756
|
+
# sent to the server will contain a `boundary` parameter, e.g.
|
|
1757
|
+
# multipart/form-data; boundary=---abc--
|
|
1758
|
+
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
|
1759
|
+
return await self._post(
|
|
1760
|
+
"/v1/agents/import",
|
|
1761
|
+
body=await async_maybe_transform(body, agent_import_file_params.AgentImportFileParams),
|
|
1762
|
+
files=files,
|
|
1763
|
+
options=make_request_options(
|
|
1764
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1765
|
+
),
|
|
1766
|
+
cast_to=AgentImportFileResponse,
|
|
1767
|
+
)
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
class AgentsResourceWithRawResponse:
|
|
1771
|
+
def __init__(self, agents: AgentsResource) -> None:
|
|
1772
|
+
self._agents = agents
|
|
1773
|
+
|
|
1774
|
+
self.create = to_raw_response_wrapper(
|
|
1775
|
+
agents.create,
|
|
1776
|
+
)
|
|
1777
|
+
self.retrieve = to_raw_response_wrapper(
|
|
1778
|
+
agents.retrieve,
|
|
1779
|
+
)
|
|
1780
|
+
self.update = to_raw_response_wrapper(
|
|
1781
|
+
agents.update,
|
|
1782
|
+
)
|
|
1783
|
+
self.list = to_raw_response_wrapper(
|
|
1784
|
+
agents.list,
|
|
1785
|
+
)
|
|
1786
|
+
self.delete = to_raw_response_wrapper(
|
|
1787
|
+
agents.delete,
|
|
1788
|
+
)
|
|
1789
|
+
self.count = to_raw_response_wrapper(
|
|
1790
|
+
agents.count,
|
|
1791
|
+
)
|
|
1792
|
+
self.export_file = to_raw_response_wrapper(
|
|
1793
|
+
agents.export_file,
|
|
1794
|
+
)
|
|
1795
|
+
self.import_file = to_raw_response_wrapper(
|
|
1796
|
+
agents.import_file,
|
|
1797
|
+
)
|
|
1798
|
+
|
|
1799
|
+
@cached_property
|
|
1800
|
+
def tools(self) -> ToolsResourceWithRawResponse:
|
|
1801
|
+
return ToolsResourceWithRawResponse(self._agents.tools)
|
|
1802
|
+
|
|
1803
|
+
@cached_property
|
|
1804
|
+
def folders(self) -> FoldersResourceWithRawResponse:
|
|
1805
|
+
return FoldersResourceWithRawResponse(self._agents.folders)
|
|
1806
|
+
|
|
1807
|
+
@cached_property
|
|
1808
|
+
def files(self) -> FilesResourceWithRawResponse:
|
|
1809
|
+
return FilesResourceWithRawResponse(self._agents.files)
|
|
1810
|
+
|
|
1811
|
+
@cached_property
|
|
1812
|
+
def blocks(self) -> BlocksResourceWithRawResponse:
|
|
1813
|
+
return BlocksResourceWithRawResponse(self._agents.blocks)
|
|
1814
|
+
|
|
1815
|
+
@cached_property
|
|
1816
|
+
def groups(self) -> GroupsResourceWithRawResponse:
|
|
1817
|
+
return GroupsResourceWithRawResponse(self._agents.groups)
|
|
1818
|
+
|
|
1819
|
+
@cached_property
|
|
1820
|
+
def messages(self) -> MessagesResourceWithRawResponse:
|
|
1821
|
+
return MessagesResourceWithRawResponse(self._agents.messages)
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
class AsyncAgentsResourceWithRawResponse:
|
|
1825
|
+
def __init__(self, agents: AsyncAgentsResource) -> None:
|
|
1826
|
+
self._agents = agents
|
|
1827
|
+
|
|
1828
|
+
self.create = async_to_raw_response_wrapper(
|
|
1829
|
+
agents.create,
|
|
1830
|
+
)
|
|
1831
|
+
self.retrieve = async_to_raw_response_wrapper(
|
|
1832
|
+
agents.retrieve,
|
|
1833
|
+
)
|
|
1834
|
+
self.update = async_to_raw_response_wrapper(
|
|
1835
|
+
agents.update,
|
|
1836
|
+
)
|
|
1837
|
+
self.list = async_to_raw_response_wrapper(
|
|
1838
|
+
agents.list,
|
|
1839
|
+
)
|
|
1840
|
+
self.delete = async_to_raw_response_wrapper(
|
|
1841
|
+
agents.delete,
|
|
1842
|
+
)
|
|
1843
|
+
self.count = async_to_raw_response_wrapper(
|
|
1844
|
+
agents.count,
|
|
1845
|
+
)
|
|
1846
|
+
self.export_file = async_to_raw_response_wrapper(
|
|
1847
|
+
agents.export_file,
|
|
1848
|
+
)
|
|
1849
|
+
self.import_file = async_to_raw_response_wrapper(
|
|
1850
|
+
agents.import_file,
|
|
1851
|
+
)
|
|
1852
|
+
|
|
1853
|
+
@cached_property
|
|
1854
|
+
def tools(self) -> AsyncToolsResourceWithRawResponse:
|
|
1855
|
+
return AsyncToolsResourceWithRawResponse(self._agents.tools)
|
|
1856
|
+
|
|
1857
|
+
@cached_property
|
|
1858
|
+
def folders(self) -> AsyncFoldersResourceWithRawResponse:
|
|
1859
|
+
return AsyncFoldersResourceWithRawResponse(self._agents.folders)
|
|
1860
|
+
|
|
1861
|
+
@cached_property
|
|
1862
|
+
def files(self) -> AsyncFilesResourceWithRawResponse:
|
|
1863
|
+
return AsyncFilesResourceWithRawResponse(self._agents.files)
|
|
1864
|
+
|
|
1865
|
+
@cached_property
|
|
1866
|
+
def blocks(self) -> AsyncBlocksResourceWithRawResponse:
|
|
1867
|
+
return AsyncBlocksResourceWithRawResponse(self._agents.blocks)
|
|
1868
|
+
|
|
1869
|
+
@cached_property
|
|
1870
|
+
def groups(self) -> AsyncGroupsResourceWithRawResponse:
|
|
1871
|
+
return AsyncGroupsResourceWithRawResponse(self._agents.groups)
|
|
1872
|
+
|
|
1873
|
+
@cached_property
|
|
1874
|
+
def messages(self) -> AsyncMessagesResourceWithRawResponse:
|
|
1875
|
+
return AsyncMessagesResourceWithRawResponse(self._agents.messages)
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
class AgentsResourceWithStreamingResponse:
|
|
1879
|
+
def __init__(self, agents: AgentsResource) -> None:
|
|
1880
|
+
self._agents = agents
|
|
1881
|
+
|
|
1882
|
+
self.create = to_streamed_response_wrapper(
|
|
1883
|
+
agents.create,
|
|
1884
|
+
)
|
|
1885
|
+
self.retrieve = to_streamed_response_wrapper(
|
|
1886
|
+
agents.retrieve,
|
|
1887
|
+
)
|
|
1888
|
+
self.update = to_streamed_response_wrapper(
|
|
1889
|
+
agents.update,
|
|
1890
|
+
)
|
|
1891
|
+
self.list = to_streamed_response_wrapper(
|
|
1892
|
+
agents.list,
|
|
1893
|
+
)
|
|
1894
|
+
self.delete = to_streamed_response_wrapper(
|
|
1895
|
+
agents.delete,
|
|
1896
|
+
)
|
|
1897
|
+
self.count = to_streamed_response_wrapper(
|
|
1898
|
+
agents.count,
|
|
1899
|
+
)
|
|
1900
|
+
self.export_file = to_streamed_response_wrapper(
|
|
1901
|
+
agents.export_file,
|
|
1902
|
+
)
|
|
1903
|
+
self.import_file = to_streamed_response_wrapper(
|
|
1904
|
+
agents.import_file,
|
|
1905
|
+
)
|
|
1906
|
+
|
|
1907
|
+
@cached_property
|
|
1908
|
+
def tools(self) -> ToolsResourceWithStreamingResponse:
|
|
1909
|
+
return ToolsResourceWithStreamingResponse(self._agents.tools)
|
|
1910
|
+
|
|
1911
|
+
@cached_property
|
|
1912
|
+
def folders(self) -> FoldersResourceWithStreamingResponse:
|
|
1913
|
+
return FoldersResourceWithStreamingResponse(self._agents.folders)
|
|
1914
|
+
|
|
1915
|
+
@cached_property
|
|
1916
|
+
def files(self) -> FilesResourceWithStreamingResponse:
|
|
1917
|
+
return FilesResourceWithStreamingResponse(self._agents.files)
|
|
1918
|
+
|
|
1919
|
+
@cached_property
|
|
1920
|
+
def blocks(self) -> BlocksResourceWithStreamingResponse:
|
|
1921
|
+
return BlocksResourceWithStreamingResponse(self._agents.blocks)
|
|
1922
|
+
|
|
1923
|
+
@cached_property
|
|
1924
|
+
def groups(self) -> GroupsResourceWithStreamingResponse:
|
|
1925
|
+
return GroupsResourceWithStreamingResponse(self._agents.groups)
|
|
1926
|
+
|
|
1927
|
+
@cached_property
|
|
1928
|
+
def messages(self) -> MessagesResourceWithStreamingResponse:
|
|
1929
|
+
return MessagesResourceWithStreamingResponse(self._agents.messages)
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
class AsyncAgentsResourceWithStreamingResponse:
|
|
1933
|
+
def __init__(self, agents: AsyncAgentsResource) -> None:
|
|
1934
|
+
self._agents = agents
|
|
1935
|
+
|
|
1936
|
+
self.create = async_to_streamed_response_wrapper(
|
|
1937
|
+
agents.create,
|
|
1938
|
+
)
|
|
1939
|
+
self.retrieve = async_to_streamed_response_wrapper(
|
|
1940
|
+
agents.retrieve,
|
|
1941
|
+
)
|
|
1942
|
+
self.update = async_to_streamed_response_wrapper(
|
|
1943
|
+
agents.update,
|
|
1944
|
+
)
|
|
1945
|
+
self.list = async_to_streamed_response_wrapper(
|
|
1946
|
+
agents.list,
|
|
1947
|
+
)
|
|
1948
|
+
self.delete = async_to_streamed_response_wrapper(
|
|
1949
|
+
agents.delete,
|
|
1950
|
+
)
|
|
1951
|
+
self.count = async_to_streamed_response_wrapper(
|
|
1952
|
+
agents.count,
|
|
1953
|
+
)
|
|
1954
|
+
self.export_file = async_to_streamed_response_wrapper(
|
|
1955
|
+
agents.export_file,
|
|
1956
|
+
)
|
|
1957
|
+
self.import_file = async_to_streamed_response_wrapper(
|
|
1958
|
+
agents.import_file,
|
|
1959
|
+
)
|
|
1960
|
+
|
|
1961
|
+
@cached_property
|
|
1962
|
+
def tools(self) -> AsyncToolsResourceWithStreamingResponse:
|
|
1963
|
+
return AsyncToolsResourceWithStreamingResponse(self._agents.tools)
|
|
1964
|
+
|
|
1965
|
+
@cached_property
|
|
1966
|
+
def folders(self) -> AsyncFoldersResourceWithStreamingResponse:
|
|
1967
|
+
return AsyncFoldersResourceWithStreamingResponse(self._agents.folders)
|
|
1968
|
+
|
|
1969
|
+
@cached_property
|
|
1970
|
+
def files(self) -> AsyncFilesResourceWithStreamingResponse:
|
|
1971
|
+
return AsyncFilesResourceWithStreamingResponse(self._agents.files)
|
|
1972
|
+
|
|
1973
|
+
@cached_property
|
|
1974
|
+
def blocks(self) -> AsyncBlocksResourceWithStreamingResponse:
|
|
1975
|
+
return AsyncBlocksResourceWithStreamingResponse(self._agents.blocks)
|
|
1976
|
+
|
|
1977
|
+
@cached_property
|
|
1978
|
+
def groups(self) -> AsyncGroupsResourceWithStreamingResponse:
|
|
1979
|
+
return AsyncGroupsResourceWithStreamingResponse(self._agents.groups)
|
|
1980
|
+
|
|
1981
|
+
@cached_property
|
|
1982
|
+
def messages(self) -> AsyncMessagesResourceWithStreamingResponse:
|
|
1983
|
+
return AsyncMessagesResourceWithStreamingResponse(self._agents.messages)
|