Formal Jidoka state contract stored inside a process-hosted Jido agent.
Jido.AgentServer expects conventional top-level fields like :status,
:last_answer, and :error. Jidoka keeps those fields for Jido
compatibility and stores its typed turn/runtime state under :jidoka.
Summary
Types
Functions
@spec completed(Jidoka.Turn.Result.t(), Jidoka.Turn.Request.t()) :: t()
@spec current_agent_state(map()) :: Jidoka.Agent.State.t()
@spec failed(term(), Jidoka.Agent.State.t(), keyword() | map()) :: t()
@spec hibernated(Jidoka.Runtime.AgentSnapshot.t(), Jidoka.Turn.Request.t()) :: t()
@spec schema() :: Zoi.schema()
@spec state_key() :: atom()
@spec to_run_result(t()) :: {:ok, Jidoka.Turn.Result.t()} | {:hibernate, Jidoka.Runtime.AgentSnapshot.t()} | {:error, term()}