Jido.Agent.Directive.Error (Jido v2.0.0-rc.1)

View Source

Signal an error from agent command processing.

This directive carries a Jido.Error.t() for consistent error handling. The runtime can log, emit, or handle errors based on this directive.

Fields

  • error - A Jido.Error.t() struct
  • context - Optional atom describing error context (e.g., :normalize, :instruction)

Summary

Functions

Returns the Zoi schema for Error.

Types

t()

@type t() :: %Jido.Agent.Directive.Error{context: atom(), error: any()}

Functions

schema()

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

Returns the Zoi schema for Error.