# `Codex.Items.AgentMessage`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/items.ex#L101)

Assistant-authored message item emitted by the Codex runtime, with optional parsed
payloads for structured output experiments.

# `t`

```elixir
@type t() :: %Codex.Items.AgentMessage{
  id: String.t() | nil,
  parsed: map() | list() | nil,
  phase: String.t() | nil,
  text: String.t(),
  type: :agent_message
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
