ExAgent.RunPaused exception (ExAgent v3.0.0)

View Source

Raised by ExAgent.run!/3 when the run paused for a persisted approval.

Stability — Stable.

A pause is not a failure: ExAgent.run/3 returns it as {:ok, %{status: :paused}}. run!/3 promises the output and there is none yet, so it raises this exception. result is that paused result carrying result.continuation. Record each pending approval or deferred result with ExAgent.Continuation.decide/4 or ExAgent.Continuation.supply_result/4, then resume with ExAgent.resume/3 using the new ready reference returned in that reply (not the replaced pause reference).

Summary

Types

t()

@type t() :: %ExAgent.RunPaused{__exception__: term(), result: map()}