PtcRunner.Lisp.Result (PtcRunner v0.14.0)

Copy Markdown View Source

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.

Summary

Types

t()

@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()) => 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
}

Functions

error(reason, message, memory)

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

error(reason, message, memory, details)

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

ok(return, memory)

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