LettaAPI.Model.Message (letta_api v1.0.0)
Letta's internal representation of a message. Includes methods to convert to/from LLM provider formats. Attributes: id (str): The unique identifier of the message. role (MessageRole): The role of the participant. text (str): The text of the message. user_id (str): The unique identifier of the user. agent_id (str): The unique identifier of the agent. model (str): The model used to make the function call. name (str): The name of the participant. created_at (datetime): The time the message was created. tool_calls (List[OpenAIToolCall,]): The list of tool calls requested. tool_call_id (str): The id of the tool call. step_id (str): The id of the step that this message was created in. otid (str): The offline threading id associated with this message. tool_returns (List[ToolReturn]): The list of tool returns requested. group_id (str): The multi-agent group that the message was sent in. sender_id (str): The id of the sender of the message, can be an identity id or agent id.
Summary
Types
@type t() :: %LettaAPI.Model.Message{ agent_id: String.t() | nil, batch_item_id: String.t() | nil, content: [LettaAPI.Model.MessageContentInner.t()] | nil, created_at: DateTime.t() | nil, created_by_id: String.t() | nil, group_id: String.t() | nil, id: String.t() | nil, last_updated_by_id: String.t() | nil, model: String.t() | nil, name: String.t() | nil, organization_id: String.t() | nil, otid: String.t() | nil, role: LettaAPI.Model.MessageRole.t(), sender_id: String.t() | nil, step_id: String.t() | nil, tool_call_id: String.t() | nil, tool_calls: [LettaAPI.Model.ChatCompletionMessageToolCall.t()] | nil, tool_returns: [LettaAPI.Model.ToolReturn.t()] | nil, updated_at: DateTime.t() | nil }