Module common

Source
Expand description

Common utilities and types used across multiple modules. This module defines enums, structs, and macros for handling message roles and usage metrics. It includes:

  • MessageRole: Enum representing different roles in a messaging system.
  • Usage: Struct for tracking token usage in prompts and completions.
  • impl_builder_methods!: Macro for generating builder methods for structs.

Structs§

Usage
Struct for tracking token usage.

Enums§

MessageRole
Represents different roles in a messaging system.