Codex.ApprovalError exception (Codex SDK v0.7.2)

Copy Markdown View Source

Error returned when an approval policy denies a tool invocation.

Summary

Types

t()

@type t() :: %Codex.ApprovalError{
  __exception__: true,
  message: String.t(),
  reason: String.t() | nil,
  tool: String.t()
}

Functions

new(tool, reason)

@spec new(String.t(), String.t()) :: t()