Token

sealed interface Token : GenAIAttribute(source)

gen_ai.token attribute namespace.

Inheritors

Types

Link copied to clipboard

Allowed values for gen_ai.token.type per the OTel GenAI semantic conventions.

Link copied to clipboard

gen_ai.token.type attribute.

Properties

Link copied to clipboard
open override val key: String

Attribute key

Link copied to clipboard
abstract val value: Any

Attribute value.

Functions

Link copied to clipboard
open fun String.concatKey(other: String): String

Joins two attribute-key segments with a . separator.