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

ai.errors

namespace in the ai package.

Reference version

Contents

  • ai.errors.classify_http function
  • ai.errors.Failure interface
  • ai.errors.FinishReasonError class
  • ai.errors.FinishReasonError$stream class
  • ai.errors.InvalidRequest class
  • ai.errors.InvalidRequest$stream class
  • ai.errors.InvokeError type_alias
  • ai.errors.InvokeError$stream type_alias
  • ai.errors.NetworkFailure class
  • ai.errors.NetworkFailure$stream class
  • ai.errors.normalize function
  • ai.errors.normalize_invoke function
  • ai.errors.ParseFailed class
  • ai.errors.ParseFailed$stream class
  • ai.errors.PreviewUnsupported class
  • ai.errors.PreviewUnsupported$stream class
  • ai.errors.PromptRenderError class
  • ai.errors.PromptRenderError$stream class
  • ai.errors.RaisedInClient type_alias
  • ai.errors.RaisedInClient$stream type_alias
  • ai.errors.RateLimited class
  • ai.errors.RateLimited$stream class
  • ai.errors.Refused class
  • ai.errors.Refused$stream class
  • ai.errors.RetrySafety enum
  • ai.errors.StepBudgetExceeded class
  • ai.errors.StepBudgetExceeded$stream class
  • ai.errors.StreamingUnsupported class
  • ai.errors.StreamingUnsupported$stream class
  • ai.errors.ToolFailedError class
  • ai.errors.ToolFailedError$stream class

On this page

  • Contents

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