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

openai.internal.ChatMessage

class in the openai package.

Reference version

Signature

class openai.internal.ChatMessage

Source:<builtin>/openai/ns_internal/chat.bamlbytes 12609–12742

Fields

role

string

content

openai.internal.ChatMessageContent | null

tool_calls

openai.internal.ChatToolCall[] | null

tool_call_id

string | null

Related definitions

  • openai.internal.ChatMessageContent
  • openai.internal.ChatToolCall

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