# `Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalOutputResponse`
[🔗](https://github.com/DROOdotFOO/raxol-agent/blob/raxol_agent_client_protocol-v0.1.0/packages/raxol_agent_client_protocol/lib/raxol/agent_client_protocol/schema/client_types.ex#L807)

Response containing the terminal output captured so far, and its exit
status if the command has completed.

## Fixed defect (missing required field, vs. schema-oracle)

Upstream omitted the oracle's required `truncated: boolean` field
entirely. Added here.

Ported from the MIT `f1729/agent_client_protocol` (c) 2025 f1729; see NOTICE.md.

# `t`

```elixir
@type t() :: %Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalOutputResponse{
  _meta: map(),
  exit_status:
    Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalExitStatus.t() | nil,
  output: String.t(),
  truncated: boolean()
}
```

# `from_json`

```elixir
@spec from_json(term()) :: {:ok, t()} | {:error, term()}
```

Total: never raises. Missing/non-string `output` or missing/non-boolean
`truncated` is the only failure mode -- `exitStatus`, if present but
unparseable, defaults to `nil` rather than failing the response.

# `new`

```elixir
@spec new(String.t(), boolean()) :: t()
```

# `to_json`

```elixir
@spec to_json(t()) :: map()
```

---

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