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.0aierrorsFailure

ai.errors.Failure

interface in the ai package.

Reference version

Signature

interface ai.errors.Failure

Source:<builtin>/ai/ns_errors/errors.bamlbytes 298–380

Required instance methods

function

retry_safety

(self) -> ai.errors.RetrySafety

Related definitions

  • ai.errors.FinishReasonError
  • ai.errors.InvalidRequest
  • ai.errors.NetworkFailure
  • ai.errors.ParseFailed
  • ai.errors.PreviewUnsupported
  • ai.errors.PromptRenderError
  • ai.errors.RateLimited
  • ai.errors.Refused
  • ai.errors.RetrySafety
  • ai.errors.StepBudgetExceeded
  • ai.errors.StreamingUnsupported
  • ai.errors.ToolFailedError
  • ai.errors.FinishReasonError
  • ai.errors.InvalidRequest
  • ai.errors.NetworkFailure
  • ai.errors.ParseFailed
  • ai.errors.PreviewUnsupported
  • ai.errors.PromptRenderError
  • ai.errors.RateLimited
  • ai.errors.Refused
  • ai.errors.StepBudgetExceeded
  • ai.errors.StreamingUnsupported
  • ai.errors.ToolFailedError

On this page

  • Signature
  • Required instance methods
  • 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