# `PtcRunner.Lisp.Result`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/lisp/result.ex#L1)

Native continuation result returned by the neutral PTC-Lisp evaluator.

Evaluation-local tool cache entries are private evaluator state and are not
retained in this result. `Inspect` reports only the outcome, bounded field
counts, and retained memory size; it never renders return/failure values,
memory, prompts, messages, tool records, or child steps.

# `t`

```elixir
@type t() :: %PtcRunner.Lisp.Result{
  child_steps: [t()],
  child_traces: [String.t()],
  fail: map() | nil,
  failure_origin: :capability | nil,
  field_descriptions: map() | nil,
  memory: map(),
  messages: [map()] | nil,
  name: term(),
  original_prompt: term(),
  parent_trace_id: String.t() | nil,
  pmap_calls: [map()],
  prelude_call_counts: %{optional(String.t()) =&gt; non_neg_integer()},
  prelude_calls: [String.t()] | nil,
  prelude_trace: PtcRunner.Lisp.Prelude.trace_summary() | nil,
  prints: [String.t()],
  prompt: String.t() | nil,
  return: term() | nil,
  return_origin: :direct_tool_call | nil,
  signature: String.t() | nil,
  tool_calls: [map()],
  tools: map() | nil,
  trace_id: String.t() | nil,
  turns: [term()] | nil,
  usage: map() | nil
}
```

# `error`

```elixir
@spec error(atom(), String.t(), map()) :: t()
```

# `error`

```elixir
@spec error(atom(), String.t(), map(), map()) :: t()
```

# `ok`

```elixir
@spec ok(term(), map()) :: t()
```

---

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