The identity and technical contract details declared by the specification.
ToolReturnContent
object
4 properties
3 required
ZAIModelSettings
object
Z.ai (ZhipuAI) model configuration (OpenAI-compatible).
6 properties
OpenAIReasoning
object
1 property
SourceSchema
object
Source with human-readable ID for agent file
8 properties
2 required
TagSchema
object
1 property
1 required
UpdateAgent
object
37 properties
GoogleAIModelSettings
object
6 properties
OpenRouterModelSettings
object
OpenRouter model configuration (OpenAI-compatible).
5 properties
ImageContent
object
2 properties
1 required
SleeptimeManagerSchema
object
3 properties
1 required
Memory
object
Represents the in-context memory (i.e. Core memory) of the agent. This includes both the Block objects (labelled by sections), as well as tools to edit the blo…
5 properties
1 required
ToolCall
object
3 properties
3 required
ArchivalMemorySearchResponse
object
2 properties
2 required
ClientToolSchema
object
Schema for a client-side tool passed in the request. Client-side tools are executed by the client, not the server. When the agent calls a client-side tool, exe…
3 properties
1 required
ContextWindowOverview
object
Overview of the context window, including the number of messages and tokens.
23 properties
16 required
IdentityProperty
object
A property of an identity
3 properties
3 required
BasetenModelSettings
object
Baseten model configuration (OpenAI-compatible).
4 properties
MCPServerSchema
object
MCP server schema for agent files with remapped ID.
6 properties
3 required
XAIModelSettings
object
xAI model configuration (OpenAI-compatible).
5 properties
Identity
object
8 properties
5 required
ToolJSONSchema
object
5 properties
3 required
NpmRequirement
object
2 properties
1 required
GenerateResponse
object
Response from direct LLM generation.
3 properties
3 required
RedactedReasoningContent
object
Sent via the Anthropic Messages API
2 properties
1 required
EmbeddingConfig
object
Configuration for embedding model connection and processing parameters.
10 properties
3 required
Group
object
18 properties
4 required
RoundRobinManager
object
2 properties
ToolExecutionResult
object
6 properties
1 required
ChatCompletionMessageFunctionToolCall-Output
object
A call to a function tool created by the model.
3 properties
3 required
MessageCreate
object
Request to create a message
8 properties
2 required
LettaAsyncRequest
object
17 properties
GeminiThinkingConfig
object
2 properties
CreateAgentRequest
object
CreateAgent model specifically for POST request body, excluding userid which comes from headers
48 properties
Block
object
A Block represents a reserved section of the LLM's context window.
19 properties
1 required
ClientSkillSchema
object
Schema for a client-side skill passed in the request. Client-side skills represent environment-provided capabilities (e.g. project-scoped skills) that are not…
3 properties
3 required
LettaStreamingRequest
object
20 properties
JsonObjectResponseFormat
object
Response format for JSON object responses.
1 property
ReasoningMessage
object
Representation of an agent's internal reasoning. Args: id (str): The ID of the message date (datetime): The date the message was created in ISO format name (Op…
13 properties
3 required
ToolReturnCreate
object
Submit tool return(s) from client-side tool execution. This is the preferred way to send tool results back to the agent after client-side tool execution. It is…
4 properties
1 required
ToolCallNode
object
Typed child override for prefilled arguments. When used in a ChildToolRule, if this child is selected next, its args will be applied as prefilled arguments (ov…
2 properties
1 required
AnthropicModelSettings
object
9 properties
MessageSearchResult
object
Result from a message search operation with scoring details.
5 properties
3 required
Message
object
Letta's internal representation of a message. Includes methods to convert to/from LLM provider formats. Attributes: id (str): The unique identifier of the mess…
25 properties
1 required
ToolReturnMessage
object
A message representing the return value of a tool call (generated by Letta executing the requested tool). Args: id (str): The ID of the message date (datetime)…
16 properties
5 required
AgentEnvironmentVariable
object
10 properties
3 required
SummarizedReasoningContent
object
The style of reasoning content returned by the OpenAI Responses API
4 properties
2 required
Passage
object
Representation of a passage, which is stored in archival memory.
15 properties
3 required
AgentFileSchema
object
Schema for serialized agent file that can be exported to JSON and imported into agent server.
10 properties
7 required
letta__schemas__openai__chat_completion_response__ChatCompletionTokenLogprob
object
4 properties
3 required
LettaUserMessageContentUnion
Source
object
(Deprecated: Use Folder) Representation of a source, which is a collection of files and passages.
11 properties
2 required
BedrockModelSettings
object
AWS Bedrock model configuration.
5 properties
CompactionStats
object
Statistics about a memory compaction operation.
6 properties
4 required
ReasoningContent
object
Sent via the Anthropic Messages API
4 properties
2 required
ParametersSchema
object
3 properties
1 required
ResetMessagesRequest
object
Request body for resetting messages on an agent.
1 property
ModifyApprovalRequest
object
Request body for modifying tool approval requirements.
1 property
1 required
ToolCallContent
object
5 properties
3 required
FileProcessingStatus
string
LettaStopReason
object
The stop reason from Letta indicating why agent loop stopped execution.
2 properties
1 required
GroqModelSettings
object
Groq model configuration (OpenAI-compatible).
5 properties
VectorDBProvider
string
Supported vector database providers for archival memory
CompactionResponse
object
3 properties
3 required
GroupSchema
object
Group with human-readable ID for agent file
7 properties
3 required
ApprovalCreate
object
Input to approve or deny a tool call request
7 properties
IdentityType
string
Enum to represent the type of the identity.
ChildToolRuleSchema
object
3 properties
3 required
letta__schemas__openai__chat_completion_response__ChoiceLogprobs
object
2 properties
InitToolRule
object
Represents the initial tool rule configuration.
4 properties
1 required
LettaToolReturnContentUnion
VoiceSleeptimeManagerSchema
object
4 properties
1 required
CompactionSettings-Output
object
Configuration for conversation compaction / summarization. Per-model settings (temperature, max tokens, etc.) are derived from the default configuration for th…
7 properties
OpenAIModelSettings
object
7 properties
ImportedAgentsResponse
object
Response model for imported agents
1 property
1 required
FunctionDefinition
object
4 properties
1 required
AzureModelSettings
object
Azure OpenAI model configuration (OpenAI-compatible).
5 properties
TurnTokenData
object
Token data for a single LLM generation turn in a multi-turn agent interaction. Used for RL training to track token IDs and logprobs across all LLM calls, not j…
5 properties
1 required
LettaErrorMessage
object
Error messages are used to notify the client of an error that occurred during the agent's execution.
6 properties
4 required
UserMessage
object
A message sent by the user. Never streamed back on a response, only used for cursor pagination. Args: id (str): The ID of the message date (datetime): The date…
11 properties
3 required
ValidationError
object
3 properties
3 required
SystemMessage
object
A message generated by the system. Never streamed back on a response, only used for cursor pagination. Args: id (str): The ID of the message date (datetime): T…
11 properties
3 required
UrlImage
object
2 properties
1 required
FileAgentSchema
object
File-Agent relationship with human-readable ID for agent file
10 properties
5 required
RequiredBeforeExitToolRule
object
Represents a tool rule configuration where this tool must be called before the agent loop can exit.
3 properties
1 required
BlockSchema
object
Block with human-readable ID for agent file
17 properties
3 required
ApprovalRequestMessage
object
A message representing a request for approval to call a tool (generated by the LLM to trigger tool execution). Args: id (str): The ID of the message date (date…
12 properties
3 required
Body_export_agent
object
2 properties
Base64Image
object
4 properties
2 required
letta__schemas__letta_message__ToolReturn
object
6 properties
3 required
EventMessage
object
A message for notifying the developer that an event that has occured (e.g. a compaction). Events are NOT part of the context window.
12 properties
4 required
letta__schemas__agent_file__AgentSchema
object
Agent with human-readable ID for agent file
53 properties
1 required
HiddenReasoningMessage
object
Representation of an agent's internal reasoning where reasoning content has been hidden from the response. Args: id (str): The ID of the message date (datetime…
12 properties
3 required
TextResponseFormat
object
Response format for plain text responses.
1 property
TogetherModelSettings
object
Together AI model configuration (OpenAI-compatible).
5 properties
CompactionSettings-Input
object
Configuration for conversation compaction / summarization. Per-model settings (temperature, max tokens, etc.) are derived from the default configuration for th…
7 properties
ToolCallMessage
object
A message representing a request to call a tool (generated by the LLM to trigger tool execution). Args: id (str): The ID of the message date (datetime): The da…
12 properties
3 required
SupervisorManagerSchema
object
2 properties
1 required
SummaryMessage
object
A message representing a summary of the conversation. Sent to the LLM as a user or system message depending on the provider.
12 properties
3 required
LettaResponse
object
Response object from an agent interaction, consisting of the new messages generated by the agent and usage statistics. The type of the returned messages can be…
5 properties
3 required
MessageSearchRequest
object
Request model for searching messages across the organization
10 properties
AgentFileAttachment
object
Response model for agent file attachments showing file status in agent context
10 properties
6 required
SkillSchema
object
Skill schema for agent files. Skills are folders of instructions, scripts, and resources that agents can load. Either files (with SKILL.md) or sourceurl must b…
3 properties
1 required
BaseToolRuleSchema
object
2 properties
2 required
ContinueToolRule
object
Represents a tool rule configuration where if this tool gets called, it must continue the agent loop.
3 properties
1 required
RequiresApprovalToolRule
object
Represents a tool rule configuration which requires approval before the tool can be invoked.
3 properties
1 required
letta__serialize_schemas__pydantic_agent_schema__ToolSchema
object
12 properties
11 required
CoreMemoryBlockSchema
object
9 properties
8 required
ChatGPTOAuthReasoning
object
Reasoning configuration for ChatGPT OAuth models (GPT-5.x, o-series).
1 property
UpdateAssistantMessage
object
2 properties
1 required
TextContent
object
3 properties
1 required
PaginatedAgentFiles
object
Paginated response for agent files
3 properties
2 required
SummarizedReasoningContentPart
object
2 properties
2 required
Body_import_agent
object
13 properties
1 required
GoogleVertexModelSettings
object
6 properties
MaxCountPerStepToolRule
object
Represents a tool rule configuration which constrains the total number of times this tool can be invoked in a single step.
4 properties
2 required
CreateArchivalMemory
object
3 properties
1 required
letta__schemas__message__ToolReturn-Input
object
5 properties
1 required
ParentToolRule
object
A ToolRule that only allows a child tool to be called if the parent has been called.
4 properties
2 required
AgentState
object
Representation of an agent's state. This is the state of the agent at a given time, and is persisted in the DB backend. The state has all the information neede…
45 properties
10 required
GenerateRequest
object
Request for direct LLM generation without agent processing.
4 properties
1 required
UpdateUserMessage
object
2 properties
1 required
letta__schemas__message__ToolReturn-Output
object
5 properties
1 required
HTTPValidationError
object
1 property
letta__schemas__mcp_server__ToolExecuteRequest
object
Request to execute a tool.
1 property
IdentityPropertyType
string
Enum to represent the type of the identity property.
LettaRequest
object
16 properties
TerminalToolRule
object
Represents a terminal tool rule configuration where if this tool gets called, it must end the agent loop.
3 properties
1 required
FileSchema
object
File with human-readable ID for agent file
14 properties
2 required
ConditionalToolRuleSchema
object
5 properties
5 required
letta__schemas__agent_file__ToolSchema
object
Tool with human-readable ID for agent file
18 properties
1 required
ApprovalReturn
object
4 properties
2 required
ChatCompletionMessageFunctionToolCall-Input
object
A call to a function tool created by the model.
3 properties
3 required
AssistantMessage
object
A message sent by the LLM in response to user input. Used in the LLM context. Args: id (str): The ID of the message date (datetime): The date the message was c…
11 properties
3 required
AnthropicThinking
object
2 properties
openai__types__chat__chat_completion_message_function_tool_call__Function
object
The function that the model called.
2 properties
2 required
SGLangModelSettings
object
SGLang model configuration (OpenAI-compatible runtime with SGLang-specific parsing).
8 properties
letta__schemas__agent_file__MessageSchema
object
Message with human-readable ID for agent file
19 properties
3 required
LettaPing
object
A ping message used as a keepalive to prevent SSE streams from timing out during long running requests. Args: id (str): The ID of the message date (datetime):…
10 properties
2 required
JsonSchemaResponseFormat
object
Response format for JSON schema-based responses.
2 properties
1 required
LettaRequestConfig
object
4 properties
letta__serialize_schemas__pydantic_agent_schema__MessageSchema
object
10 properties
10 required
ExportAgentRequest
object
Request body for POST /export endpoint.
3 properties
CancelAgentRunRequest
object
1 property
BlockResponse
object
19 properties
2 required
Tool
object
Representation of a tool, which is a function that can be called by the agent.
18 properties
CreateBlock
object
Create a block
16 properties
2 required
ConditionalToolRule
object
A ToolRule that conditionally maps to different child tools based on the output.
6 properties
2 required
AgentType
string
Enum to represent the type of agent.
ToolEnvVarSchema
object
5 properties
5 required
FunctionTool
object
2 properties
2 required
ToolCallDelta
object
3 properties
PipRequirement
object
2 properties
1 required
FileBlock
object
23 properties
4 required
LettaStreamingResponse
Streaming response type for Server-Sent Events (SSE) endpoints. Each event in the stream will be one of these types.
UpdateReasoningMessage
object
2 properties
1 required
ArchivalMemorySearchResult
object
4 properties
3 required
letta__serialize_schemas__pydantic_agent_schema__AgentSchema
object
19 properties
18 required
ChildToolRule
object
A ToolRule represents a tool that can be invoked by the agent.
5 properties
2 required
ChatGPTOAuthModelSettings
object
ChatGPT OAuth model configuration (uses ChatGPT backend API).
5 properties
LettaAssistantMessageContentUnion
LettaImage
object
5 properties
1 required
letta__server__rest_api__routers__v1__agents__CompactionRequest
object
1 property
UpdateSystemMessage
object
2 properties
1 required
DeepseekModelSettings
object
Deepseek model configuration (OpenAI-compatible).
5 properties
ParameterProperties
object
2 properties
1 required
LLMConfig
object
Configuration for Language Model (LLM) connection and generation parameters. .. deprecated:: LLMConfig is deprecated and should not be used as an input or retu…
27 properties
3 required
letta__schemas__openai__chat_completion_response__TopLogprob
object
3 properties
2 required
LettaUsageStatistics
object
Usage statistics for the agent interaction. Attributes: completiontokens (int): The number of tokens generated by the agent. prompttokens (int): The number of…
10 properties
RunStatus
string
Status of the run.
ZAIThinking
object
Thinking configuration for ZAI GLM-4.5+ models.
2 properties
BlockUpdate
object
Update a block
16 properties
Run
object
Representation of a run - a conversation or processing session for an agent. Runs track when agents process messages and maintain the relationship between agen…
17 properties
1 required
MaxCountPerStepToolRuleSchema
object
3 properties
3 required
OmittedReasoningContent
object
A placeholder for reasoning content we know is present, but isn't returned by the provider (e.g. OpenAI GPT-5 on ChatCompletions)
2 properties
ApprovalResponseMessage
object
A message representing a response form the user indicating whether a tool has been approved to run. Args: id (str): The ID of the message date (datetime): The…
14 properties
2 required
DynamicManagerSchema
object
4 properties
1 required
Function-Output
object
The function that the model called.
2 properties
2 required
The full machine-readable OpenAPI contract behind this narrative.
Other APIs Letta publishes across the network.