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.20.2-nightly.20261001.aanthropicinternalAnthBlock

anthropic.internal.AnthBlock

type_alias in the anthropic package.

Reference version

Signature

type anthropic.internal.AnthBlock = anthropic.internal.AnthTextBlock | anthropic.internal.AnthMediaBlock | anthropic.internal.AnthToolUseBlock | anthropic.internal.AnthToolResultBlock

Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 3362–3451

Related definitions

  • anthropic.internal.AnthMediaBlock
  • anthropic.internal.AnthTextBlock
  • anthropic.internal.AnthToolResultBlock
  • anthropic.internal.AnthToolUseBlock

On this page

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