Agent message chunk update.
Represents a streaming chunk of agent response content.
Required Fields
type- Always "agent_message_chunk" for this variantsession_update- Update identifiercontent- Content block (ContentBlock struct or map)
Optional Fields
meta- Additional metadata (map)
Example
%ACPex.Schema.Types.SessionUpdate.AgentMessageChunk{
type: "agent_message_chunk",
session_update: "update-456",
content: %{"type" => "text", "text" => "Here's my response"}
}JSON Representation
{
"type": "agent_message_chunk",
"sessionUpdate": "update-456",
"content": {
"type": "text",
"text": "Here's my response"
}
}
Summary
Functions
Creates a changeset for validation.
Types
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Creates a changeset for validation.
Required Fields
session_update- Must be presentcontent- Must be present
The type field defaults to "agent_message_chunk".