# `ClaudeWrapper.Result`
[🔗](https://github.com/joshrotenberg/claude_wrapper_ex/blob/main/lib/claude_wrapper/result.ex#L1)

Result from a completed query execution.

Maps to the Rust `QueryResult` — the parsed JSON output from
`--output-format json`.

# `t`

```elixir
@type t() :: %ClaudeWrapper.Result{
  cost_usd: float() | nil,
  duration_ms: non_neg_integer() | nil,
  extra: map(),
  is_error: boolean(),
  num_turns: non_neg_integer() | nil,
  result: String.t(),
  session_id: String.t() | nil
}
```

# `from_json`

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

Parse a result from the JSON output of a query command.

---

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