Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed May 8, 2024
1 parent 1d913bc commit 64d8ca0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/gen-ai/llm-spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ The event name MUST be `gen_ai.tool.message`

| Body Field | Type | Description | Examples | Requirement Level | Sensitive |
|---|---|---|---|---|---|
| `role` | string | The role of the messages author | `tool`, `function` | `Conditionally Required`: when the message is returned by GenAI model. | |
| `content` | string | The contents of the tool message. | `opentelemetry.io` | `Opt-In` | ![Sensitive](https://img.shields.io/badge/-sensitive-red) |
| `tool_call_id` | string | Tool call that this message is responding to. | `call_mszuSIzqtI65i1wAUOE8w5H4` | `Required` | |

Expand Down Expand Up @@ -404,8 +403,8 @@ Here's the telemetry generated for each step in this scenario:
| Property | Value |
|---------------------|-------------------------------------------------------|
| `gen_ai.system` | `"openai"` |
| Event payload (with sensitive content) | `{"role":"tool","content":"opentelemetry.io/semconv/gen-ai","tool_call_id":"call_VSPygqKTWdrhaFErNvMV18Yl"}` |
| Event payload (without sensitive content) | `{"role":"tool","content":"REDACTED","tool_call_id":"call_VSPygqKTWdrhaFErNvMV18Yl"}` |
| Event payload (with sensitive content) | `{"content":"opentelemetry.io/semconv/gen-ai","tool_call_id":"call_VSPygqKTWdrhaFErNvMV18Yl"}` |
| Event payload (without sensitive content) | `{"content":"REDACTED","tool_call_id":"call_VSPygqKTWdrhaFErNvMV18Yl"}` |

- `gen_ai.choice` (could be reported when capturing sensitive content is disabled)

Expand Down

0 comments on commit 64d8ca0

Please sign in to comment.