Normandy.Agents.Turn.State (normandy v1.1.0)

View Source

Serializable data for one in-flight turn (the design's %TurnState{}).

Summary

Types

status()

@type status() ::
  :provisioning
  | :assistant_streaming
  | :tool_dispatch
  | :finalizing
  | :awaiting_approval
  | :steering
  | :stopped
  | :failed

t()

@type t() :: %Normandy.Agents.Turn.State{
  awaiting_final: boolean(),
  error: term() | nil,
  final_response: term() | nil,
  held_results: [term()],
  iterations_left: integer(),
  last_response: term() | nil,
  max_iterations: pos_integer(),
  output_schema: term(),
  parked_calls: [term()],
  pending_calls: [term()],
  response_model: term(),
  status: status(),
  stop_reason: :completed | :max_iterations | nil
}