opentelemetry_semantic_conventions::attribute

Constant GEN_AI_COMPLETION

source
pub const GEN_AI_COMPLETION: &str = "gen_ai.completion";
Expand description

The full response received from the GenAI model.

§Notes

It’s RECOMMENDED to format completions as JSON string matching OpenAI messages format

§Examples

  • "[{'role': 'assistant', 'content': 'The capital of France is Paris.'}]"