Ephemeral data value passed through the Jidoka turn workflow.
Summary
Types
@type t() :: %Jidoka.Turn.State{ agent_state: term(), diagnostics: [any()], events: [term()], journal: term(), llm_result: nil | nil | term(), loop_index: integer(), memory: nil | nil | term(), operation_plan: nil | nil | term(), pending_effects: [term()], pending_interrupt: nil | nil | term(), plan: term(), prompt: nil | nil | any(), request: term(), result: nil | nil | binary(), result_repair_count: integer(), result_value: nil | nil | any(), spec: term(), started_at_ms: nil | nil | integer(), status: (:running | :waiting | :finished) | binary() }
Functions
@spec apply_effect_result(t(), Jidoka.Effect.Result.t()) :: {:ok, t()} | {:error, term()}
@spec current_pending_effect(t()) :: Jidoka.Effect.Intent.t() | nil
@spec from_snapshot(Jidoka.Runtime.AgentSnapshot.t()) :: {:ok, t()} | {:error, term()}
@spec put_pending_interrupt(t(), Jidoka.Review.Interrupt.t()) :: t()
@spec schema() :: Zoi.schema()
@spec set_pending_effects(t(), [Jidoka.Effect.Intent.t()]) :: t()