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

ai

package in the ai package.

Reference version

Contents

  • ai.Agent class
  • ai.Agent$stream class
  • ai.Client interface
  • ai.clients namespace
  • ai.content namespace
  • ai.Context class
  • ai.Context$stream class
  • ai.ContextClient class
  • ai.ContextClient$stream class
  • ai.Credential type_alias
  • ai.Credential$stream type_alias
  • ai.errors namespace
  • ai.events namespace
  • ai.FunctionSpec class
  • ai.FunctionSpec$stream class
  • ai.internal namespace
  • ai.Journal class
  • ai.Journal$stream class
  • ai.mcp namespace
  • ai.MediaPart type_alias
  • ai.MediaPart$stream type_alias
  • ai.ModelTurn class
  • ai.ModelTurn$stream class
  • ai.ModelTurnInput class
  • ai.ModelTurnInput$stream class
  • ai.OutputFormat class
  • ai.OutputFormat$stream class
  • ai.prompt function
  • ai.Prompt class
  • ai.Prompt$stream class
  • ai.PromptMessage class
  • ai.PromptMessage$stream class
  • ai.PromptPart type_alias
  • ai.PromptPart$stream type_alias
  • ai.Role class
  • ai.Role$stream class
  • ai.Runner interface
  • ai.RunResult class
  • ai.RunResult$stream class
  • ai.Selector type_alias
  • ai.Selector$stream type_alias
  • ai.stream namespace
  • ai.tools namespace
  • ai.wire namespace

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