Jido.Agent.StateOp.ReplaceState (Jido v2.0.0-rc.1)

View Source

Replace the agent's state wholesale (no merge).

Use cases:

  • Reset strategy state completely
  • Replace large blob structures
  • Ensure no stale keys remain from previous state

Summary

Functions

Returns the Zoi schema for ReplaceState.

Types

t()

@type t() :: %Jido.Agent.StateOp.ReplaceState{state: map()}

Functions

schema()

@spec schema() :: Zoi.schema()

Returns the Zoi schema for ReplaceState.