Jido.AI.Directive.EmitRequestError (Jido AI v2.2.0)

Copy Markdown View Source

Directive to immediately emit a request error signal.

Used when a request cannot be processed (e.g., agent is busy). This ensures the caller receives feedback instead of the request being silently dropped.

Summary

Functions

Create a new EmitRequestError directive.

Types

t()

@type t() :: %Jido.AI.Directive.EmitRequestError{
  message: binary(),
  reason: atom(),
  request_id: binary()
}

Functions

new!(attrs)

Create a new EmitRequestError directive.