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.20260909.aaiModelTurn$stream

ai.ModelTurn$stream

class in the ai package.

Reference version

Signature

class ai.ModelTurn$stream

Source:<builtin>/ai/turn.bamlbytes 0–0

Fields

content

ai.content.Block$stream[]

stop_reason

ai.content.StopReason | null

usage

ai.events.Usage$stream | null

calls

ai.events.LLMCall$stream[]

Related definitions

  • ai.content.Block$stream
  • ai.content.StopReason
  • ai.events.LLMCall$stream
  • ai.events.Usage$stream

On this page

  • Signature
  • Fields
  • 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