Jido.Composer.Directive.Suspend (Jido Composer v0.6.0)

Copy Markdown View Source

Generalized suspend directive emitted by strategies when a flow suspends.

The runtime interprets this directive to:

  1. Deliver the notification through the configured channel
  2. Optionally start a timeout timer via a Schedule directive
  3. Optionally hibernate the agent for long-pause resource management

Summary

Types

t()

@type t() :: %Jido.Composer.Directive.Suspend{
  hibernate: boolean() | map(),
  notification: term() | nil,
  suspension: Jido.Composer.Suspension.t()
}