Message Types
LettaMessage
LettaMessage
Base class for simplified Letta message response type. This is intended to be used for developers who want the internal monologue, function calls, and function returns in a simplified format that does not include additional information other than the content and timestamp.
Attributes:
id
str - The ID of the messagedate
datetime - The date the message was created in ISO format
InternalMonologue
Representation of an agent’s internal monologue.
Attributes:
internal_monologue
str - The internal monologue of the agentid
str - The ID of the messagedate
datetime - The date the message was created in ISO format
FunctionCallMessage
A message representing a request to call a function (generated by the LLM to trigger function execution).
Attributes:
function_call
Union[FunctionCall, FunctionCallDelta] - The function callid
str - The ID of the messagedate
datetime - The date the message was created in ISO format
FunctionReturn
A message representing the return value of a function call (generated by Letta executing the requested function).
Attributes:
function_return
str - The return value of the functionstatus
Literal[“success”, “error”] - The status of the function callid
str - The ID of the messagedate
datetime - The date the message was created in ISO format