Jido.AI.Test.ReActScript (Jido AI v2.3.0)

Copy Markdown View Source

Deterministic ReAct script returned by Jido.AI.Test.expect_react/1.

Treat this struct as opaque. Pass it to Jido.AI.Test.react_opts/1 for agent requests or Jido.AI.Test.react_llm_opts/1 for standalone ReAct configs.

Summary

Types

t()

@type t() :: %Jido.AI.Test.ReActScript{
  id: String.t(),
  turns: [turn()],
  user: String.t()
}

turn()

@type turn() :: %{
  :type => :tool_call | :answer | :fail,
  optional(:tool_calls) => [map()],
  optional(:text) => String.t(),
  optional(:reason) => term(),
  optional(:usage) => map(),
  optional(:finish_reason) => atom()
}