Skip to main content

GEN_AI__OUTPUT__MESSAGES

Constant GEN_AI__OUTPUT__MESSAGES 

Source
pub const GEN_AI__OUTPUT__MESSAGES: &str = "gen_ai.output.messages";
Expand description

The model’s response messages. It has to be a stringified version of an array of message objects in the format {role: "assistant", parts: [...]}, which can include text responses and tool calls. Each part is an object with a type, such as {type: "text", content: "..."}. Other part types include "reasoning" and "tool_call". Put the model’s thinking in a {type: "reasoning", content: "..."} part, not a "text" part. Sentry shows reasoning separately from user-visible messages. The first example shows this shape. Some operations use a different shape. See the additional context.

  • Scrubbing: Manual
  • Rewriting behavior: None

§Aliases