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

ai.content

namespace in the ai package.

Reference version

Contents

  • ai.content.Block type_alias
  • ai.content.Block$stream type_alias
  • ai.content.blocks function
  • ai.content.Media class
  • ai.content.Media$stream class
  • ai.content.ModelBlock type_alias
  • ai.content.ModelBlock$stream type_alias
  • ai.content.Reasoning class
  • ai.content.Reasoning$stream class
  • ai.content.StopReason enum
  • ai.content.text function
  • ai.content.Text class
  • ai.content.Text$stream class
  • ai.content.ToolUse class
  • ai.content.ToolUse$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