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

anthropic.internal.Usage

class in the anthropic package.

Reference version

Signature

class anthropic.internal.Usage

Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 5374–6677

Fields

input_tokens

int | null

output_tokens

int | null

output_tokens_details

anthropic.internal.AnthOutputTokensDetails | null

cache_read_input_tokens

int | null

cache_creation_input_tokens

int | null

Related definitions

  • anthropic.internal.AnthOutputTokensDetails

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