Constant GEN_AI_SYSTEM_INSTRUCTIONS
pub const GEN_AI_SYSTEM_INSTRUCTIONS: &'static str;{note: Moved to the OpenTelemetry GenAI semantic conventions repository. , reason: uncategorized}
opentelemetry and semconv_experimental only.Expand description
The system message or instructions provided to the GenAI model separately from the chat history.
§Notes
This attribute SHOULD be used when the corresponding provider or API allows to provide system instructions or messages separately from the chat history.
Instructions that are part of the chat history SHOULD be recorded in
gen_ai.input.messages attribute instead.
Instrumentations MUST follow System instructions JSON schema.
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 system instructions.
] [!Warning] ] This attribute may contain sensitive information.
See Recording content on attributes section for more details.
§Examples
"[\n {\n \"type\": \"text\",\n \"content\": \"You are an Agent that greet users, always use greetings tool to respond\"\n }\n]\n""[\n {\n \"type\": \"text\",\n \"content\": \"You are a language translator.\"\n },\n {\n \"type\": \"text\",\n \"content\": \"Your mission is to translate text in English to French.\"\n }\n]\n"