Constant GEN_AI_OUTPUT_MESSAGES
pub const GEN_AI_OUTPUT_MESSAGES: &'static str;{note: Moved to the OpenTelemetry GenAI semantic conventions repository. , reason: uncategorized}
opentelemetry and semconv_experimental only.Expand description
Messages returned by the model where each message represents a specific model response (choice, candidate).
§Notes
Instrumentations MUST follow Output messages JSON schema
Each message represents a single output choice/candidate generated by the model. Each message corresponds to exactly one generation (choice/candidate) and vice versa - one choice cannot be split across multiple messages or one message cannot contain parts from multiple choices.
When the attribute is recorded on events, it MUST be recorded in structured form. When recorded on spans, it MAY be recorded as a JSON string if structured format is not supported and SHOULD be recorded in structured form otherwise.
Instrumentations MAY provide a way for users to filter or truncate output messages.
] [!Warning] ] This attribute is likely to contain sensitive information including user/PII data.
See Recording content on attributes section for more details.
§Examples
"[\n {\n \"role\": \"assistant\",\n \"parts\": [\n {\n \"type\": \"text\",\n \"content\": \"The weather in Paris is currently rainy with a temperature of 57°F.\"\n }\n ],\n \"finish_reason\": \"stop\"\n }\n]\n"