Import Agent Serialized
Import a serialized agent file and recreate the agent in the system.
Headers
Authorization
Header authentication of the form Bearer <token>
Query parameters
append_copy_suffix
If set to True, appends “_copy” to the end of the agent name.
override_existing_tools
If set to True, existing tools can get their source code overwritten by the uploaded tool definitions. Note that Letta core tools can never be updated externally.
project_id
The project ID to associate the uploaded agent with.
strip_messages
If set to True, strips all messages from the agent before importing.
Response
Successful Response
id
The id of the agent. Assigned by the database.
name
The name of the agent.
system
The system prompt used by the agent.
agent_type
The type of agent.
llm_config
The LLM configuration used by the agent.
embedding_config
The embedding configuration used by the agent.
memory
The in-context memory of the agent.
tools
The tools used by the agent.
sources
The sources used by the agent.
created_by_id
The id of the user that made this object.
last_updated_by_id
The id of the user that made this object.
created_at
The timestamp when the object was created.
updated_at
The timestamp when the object was last updated.
tool_rules
The list of tool rules.
message_ids
The ids of the messages in the agent’s in-context memory.
response_format
The response format used by the agent when returning from send_message
.
description
The description of the agent.
metadata
The metadata of the agent.
tool_exec_environment_variables
The environment variables for tool execution specific to this agent.
project_id
The id of the project the agent belongs to.
template_id
The id of the template the agent belongs to.
base_template_id
The base template id of the agent.
identity_ids
The ids of the identities associated with this agent.
message_buffer_autoclear
If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.
enable_sleeptime
If set to True, memory management will move to a background agent thread.
multi_agent_group
The multi-agent group that this agent manages