External-facing API for resuming suspended agents.
Handles both live agents (deliver signal directly) and checkpointed agents (thaw from storage, then deliver). Provides idempotency via suspension ID matching.
Options
:deliver_fn—(agent, signal) -> {agent, directives}. Required. Delivers the resume signal to a live agent.:thaw_fn—(agent_id) -> {:ok, agent} | {:error, reason}. Optional. Restores an agent from checkpoint storage.:agent_id—String.t(). Required whenagentis nil and:thaw_fnis provided.:storage— Map withcompare_and_set_status/3callback. Optional. When provided, performs CAS on checkpoint status for idempotent resume.
Summary
Functions
@spec resume(Jido.Agent.t() | nil, String.t(), map(), keyword()) :: {:ok, Jido.Agent.t(), list()} | {:error, term()}