Jido.AI.Reasoning.AlgorithmOfThoughts.Result (Jido AI v2.2.0)

Copy Markdown View Source

Canonical structured result contract for Algorithm-of-Thoughts (AoT) runs.

Summary

Functions

Builds an AoT result payload from parsed data and machine state.

Types

t()

@type t() :: %{
  answer: String.t() | nil,
  found_solution?: boolean(),
  first_operations_considered: non_neg_integer(),
  backtracking_steps: non_neg_integer(),
  raw_response: String.t(),
  usage: map(),
  termination: termination(),
  diagnostics: map()
}

termination()

@type termination() :: %{
  reason: atom(),
  status:
    Jido.AI.Reasoning.AlgorithmOfThoughts.Machine.external_status() | atom(),
  duration_ms: non_neg_integer()
}

Functions

build(machine, parsed, reason, status, raw_response)

Builds an AoT result payload from parsed data and machine state.