CodexEx.AppServer.ThreadItem.AgentMessage (codex_ex v0.1.0)

Copy Markdown View Source

The one item type whose text streams in deltas, so the runtime needs it typed. attrs still carries the complete protocol payload — phase and status are conveniences read from it, not a replacement for it.

Summary

Types

t()

@type t() :: %CodexEx.AppServer.ThreadItem.AgentMessage{
  attrs: CodexEx.AppServer.Types.json_object(),
  id: binary(),
  phase: CodexEx.AppServer.Types.json_value() | nil,
  status: CodexEx.AppServer.Types.json_value() | nil,
  text: binary() | nil,
  type: binary()
}