toolsstring[] nullable
The tools used by the agent.
tool_idsstring[] nullable
The ids of the tools used by the agent.
source_idsstring[] nullable
The ids of the sources used by the agent.
block_idsstring[] nullable
The ids of the blocks used by the agent.
tagsstring[] nullable
The tags associated with the agent.
systemstring nullable
The system prompt used by the agent.
agent_type'memgpt_agent' | 'memgpt_v2_agent' | 'letta_v1_agent' | 'react_agent' | 'workflow_agent' | 'split_thread_agent' | 'sleeptime_agent' | 'voice_convo_agent' | 'voice_sleeptime_agent'
Enum to represent the type of agent.
include_base_toolsboolean
If true, attaches the Letta core tools (e.g. core_memory related functions).
include_multi_agent_toolsboolean
If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent).
include_base_tool_rulesboolean nullable
If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed).
include_default_sourceboolean
If true, automatically creates and attaches a default data source for this agent.
descriptionstring nullable
The description of the agent.
metadataobject nullable
The metadata of the agent.
modelstring nullable
The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config.
embeddingstring nullable
The embedding configuration handle used by the agent, specified in the format provider/model-name.
context_window_limitinteger nullable
The context window limit used by the agent.
embedding_chunk_sizeinteger nullable
The embedding chunk size used by the agent.
max_tokensinteger nullable
The maximum number of tokens to generate, including reasoning step. If not set, the model will use its default value.
max_reasoning_tokensinteger nullable
The maximum number of tokens to generate for reasoning step. If not set, the model will use its default value.
enable_reasonerboolean nullable
Whether to enable internal extended thinking step for a reasoner model.
reasoningboolean nullable
Whether to enable reasoning for this agent.
from_templatestring nullable
Deprecated: please use the 'create agents from a template' endpoint instead.
templateboolean
Deprecated: No longer used
projectstring nullable
Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below.
tool_exec_environment_variablesobject nullable
Deprecated: use secrets field instead.
secretsobject nullable
The environment variables for tool execution specific to this agent.
memory_variablesobject nullable
The variables that should be set for the agent.
project_idstring nullable
The id of the project the agent belongs to.
template_idstring nullable
The id of the template the agent belongs to.
base_template_idstring nullable
The base template id of the agent.
identity_idsstring[] nullable
The ids of the identities associated with this agent.
message_buffer_autoclearboolean
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_sleeptimeboolean nullable
If set to True, memory management will move to a background agent thread.
timezonestring nullable
The timezone of the agent (IANA format).
max_files_openinteger nullable
Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent.
per_file_view_window_char_limitinteger nullable
The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent.
hiddenboolean nullable
If set to True, the agent will be hidden.