Constant GEN_AI_INPUT_MESSAGES
pub const GEN_AI_INPUT_MESSAGES: &'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 chat history provided to the model as an input.
§Notes
Instrumentations MUST follow Input messages JSON schema. 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.
Messages MUST be provided in the order they were sent to the model. Instrumentations MAY provide a way for users to filter or truncate input 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\": \"user\",\n \"parts\": [\n {\n \"type\": \"text\",\n \"content\": \"Weather in Paris?\"\n }\n ]\n },\n {\n \"role\": \"assistant\",\n \"parts\": [\n {\n \"type\": \"tool_call\",\n \"id\": \"call_VSPygqKTWdrhaFErNvMV18Yl\",\n \"name\": \"get_weather\",\n \"arguments\": {\n \"location\": \"Paris\"\n }\n }\n ]\n },\n {\n \"role\": \"tool\",\n \"parts\": [\n {\n \"type\": \"tool_call_response\",\n \"id\": \" call_VSPygqKTWdrhaFErNvMV18Yl\",\n \"result\": \"rainy, 57°F\"\n }\n ]\n }\n]\n"