Create Agent
Headers
Header authentication of the form Bearer <token>
Request
The blocks to create in the agent’s in-context memory.
The initial set of messages to put in the agent’s in-context memory.
If true, attaches the Letta core tools (e.g. archival_memory and core_memory related functions).
If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent).
If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed).
The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config.
The embedding configuration handle used by the agent, specified in the format provider/model-name.
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.
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.
Response
The in-context memory of the agent.
The ids of the messages in the agent’s in-context memory.
The response format used by the agent when returning from send_message
.
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.
The multi-agent group that this agent manages