Documentation

HomeBAMLCLICloudTutorialsExamples

BAML documentation

  • Overview
  • Get started
  • Book
    • 8. Handle errors
    • 11. Interfaces
    • 12. Run work concurrently
  • Language reference
    • Functions
  • Standard packages
  • Language bridges
    • TypeScript

Products

  • BAML CLI
  • Cloud

Resources

  • Tutorials
    • Structured extraction
  • Examples
    • Classify support tickets
HomeBAMLCLICloudTutorialsExamples
Start

Sections

  • Overview
  • Get started
  • Book
    • 8. Handle errors
    • 11. Interfaces
    • 12. Run work concurrently
  • Language reference
    • Functions
  • Standard packages
  • Language bridges
    • TypeScript

Products

  • BAML CLI
  • Cloud

Resources

  • Tutorials
    • Structured extraction
  • Examples
    • Classify support tickets
BAMLStandard packagesv0.19.0aierrorsRefused

ai.errors.Refused

class in the ai package.

Reference version

Signature

class ai.errors.Refused

Source:<builtin>/ai/ns_errors/errors.bamlbytes 7053–7258

Fields

provider

string

reason

string

raw_body

string | null

Implementations

ai.errors.Failure for ai.errors.Refused

Instance methods

function

retry_safety

(self) -> ai.errors.RetrySafety

Source:<builtin>/ai/ns_errors/errors.bamlbytes 7138–7256

Related definitions

  • ai.errors.Failure
  • ai.errors.RetrySafety

On this page

  • Signature
  • Fields
  • Implementations
  • Related definitions

Build with BAML

Start with the language guide and a checked BAML function.

Continue into generated package and CLI references for the exact selected toolchain.

Get started
Developer documentation for BAML and Boundary products. Source available on GitHub. View release notes