# `Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalExitStatus`
[🔗](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#L748)

Exit status of a terminal command: an exit code (normal exit) and/or a
signal name (killed by signal), independently nullable per the
schema-oracle.

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

Upstream modeled only `exitCode`; the oracle also has a nullable `signal`
field. Added here.

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

# `t`

```elixir
@type t() :: %Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalExitStatus{
  _meta: map(),
  exit_code: non_neg_integer() | nil,
  signal: String.t() | nil
}
```

# `from_json`

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

Total: never raises, even for a non-map argument.

# `new`

```elixir
@spec new(non_neg_integer() | nil, String.t() | nil) :: t()
```

# `to_json`

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

---

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