Skip to main content

GEN_AI_USAGE_INPUT_TOKENS

Constant GEN_AI_USAGE_INPUT_TOKENS 

pub const GEN_AI_USAGE_INPUT_TOKENS: &'static str;
👎Deprecated:

{note: Moved to the OpenTelemetry GenAI semantic conventions repository. , reason: uncategorized}

Available on crate features opentelemetry and semconv_experimental only.
Expand description

The number of tokens used in the GenAI input (prompt).

§Notes

This value SHOULD include all types of input tokens, including cached tokens. Instrumentations SHOULD make a best effort to populate this value, using a total provided by the provider when available or, depending on the provider API, by summing different token types parsed from the provider output.

§Examples

  • 100