Documentation

HomeBAMLCLICloudTutorialsExamples

BAML documentation

  • Overview
  • Get started
  • Book
    • 3. Common programming concepts
    • 8. Handle errors
    • 11. Interfaces
    • 12. Run work concurrently
    • 22. Patterns, matching, and destructuring
  • Language reference
    • Functions
  • Standard packages
  • Language bridges
    • TypeScript

Products

  • BAML CLI
  • Cloud

Resources

  • Tutorials
    • Structured extraction
  • Examples
    • Classify support tickets
    • Images and vision models
HomeBAMLCLICloudTutorialsExamples
Start

Sections

  • Overview
  • Get started
  • Book
    • 3. Common programming concepts
    • 8. Handle errors
    • 11. Interfaces
    • 12. Run work concurrently
    • 22. Patterns, matching, and destructuring
  • Language reference
    • Functions
  • Standard packages
  • Language bridges
    • TypeScript

Products

  • BAML CLI
  • Cloud

Resources

  • Tutorials
    • Structured extraction
  • Examples
    • Classify support tickets
    • Images and vision models
BAMLStandard packagesv0.18.1-nightly.20260906.aaiclients

ai.clients

namespace in the ai package.

Reference version

Contents

  • ai.clients._failed_leg_call function
  • ai.clients.Backoff class
  • ai.clients.Backoff$stream class
  • ai.clients.default_retry_judgment function
  • ai.clients.Fallback class
  • ai.clients.Fallback$stream class
  • ai.clients.resolve function
  • ai.clients.Retry class
  • ai.clients.Retry$stream class
  • ai.clients.RoundRobin class
  • ai.clients.RoundRobin$stream class
  • ai.clients.Selector type_alias
  • ai.clients.Selector$stream type_alias
  • ai.clients.StreamRelay class
  • ai.clients.StreamRelay$stream class
  • ai.clients.StreamRelayError class
  • ai.clients.StreamRelayError$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