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

View Source

Set a value at a nested path in the agent's state.

Uses put_in/3 semantics. Path must be a list of atoms.

Example

%SetPath{path: [:config, :timeout], value: 5000}
# Sets agent.state.config.timeout = 5000

Summary

Functions

Returns the Zoi schema for SetPath.

Types

t()

@type t() :: %Jido.Agent.StateOp.SetPath{path: [atom()], value: any()}

Functions

schema()

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

Returns the Zoi schema for SetPath.