ACPex.Schema.Types.SessionUpdate.AgentThoughtChunk (ACPex v0.1.1)

Copy Markdown View Source

Agent thought chunk update.

Represents a streaming chunk of agent reasoning/thinking content.

Required Fields

  • type - Always "agent_thought_chunk" for this variant
  • session_update - Update identifier
  • content - Content block (ContentBlock struct or map)

Optional Fields

  • meta - Additional metadata (map)

Example

%ACPex.Schema.Types.SessionUpdate.AgentThoughtChunk{
  type: "agent_thought_chunk",
  session_update: "update-789",
  content: %{"type" => "text", "text" => "Let me analyze this..."}
}

JSON Representation

{
  "type": "agent_thought_chunk",
  "sessionUpdate": "update-789",
  "content": {
    "type": "text",
    "text": "Let me analyze this..."
  }
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Types.SessionUpdate.AgentThoughtChunk{
  content: map(),
  meta: map() | nil,
  session_update: String.t(),
  type: String.t()
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Required Fields

  • session_update - Must be present
  • content - Must be present

The type field defaults to "agent_thought_chunk".