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

View Source

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

Uses pop_in/2 semantics. Path must be a list of atoms.

Example

%DeletePath{path: [:temp, :cache]}
# Removes agent.state.temp.cache

Summary

Functions

Returns the Zoi schema for DeletePath.

Types

t()

@type t() :: %Jido.Agent.StateOp.DeletePath{path: [atom()]}

Functions

schema()

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

Returns the Zoi schema for DeletePath.