You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: includes/tracing/ai-agents-module/ai-client-span.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,9 @@ Additional attributes on the span:
18
18
|`gen_ai.request.temperature`| float | optional | Model configuration parameter. |`0.1`|
19
19
|`gen_ai.request.top_p`| float | optional | Model configuration parameter. |`0.7`|
20
20
|`gen_ai.response.tool_calls`| string | optional | The tool calls in the model's response. **[0]**|`"[{\"name\": \"random_number\", \"type\": \"function_call\", \"arguments\": \"...\"}]"`|
21
-
|`gen_ai.response.text`| string | optional | The text representation of the model's responses. **[0]**|`"[\"The weather in Paris is rainy\", \"The weather in London is sunny\"]"`|
22
-
|`gen_ai.usage.input_tokens.cached`| int | optional | The number of cached tokens used in the AI input (prompt) |`50`|
21
+
|`gen_ai.response.text`| string | optional | The text representation of the model's responses. **[0]**|`"[\"The weather in Paris is rainy\", \"The weather in London is sunny\"]"`|
22
+
|`gen_ai.usage.input_tokens.cache_write`| int | optional | The number of tokens written to the cache when processing the AI input (prompt). |`100`|
23
+
|`gen_ai.usage.input_tokens.cached`| int | optional | The number of cached tokens used in the AI input (prompt) |`50`|
23
24
|`gen_ai.usage.input_tokens`| int | optional | The number of tokens used in the AI input (prompt). |`10`|
24
25
|`gen_ai.usage.output_tokens.reasoning`| int | optional | The number of tokens used for reasoning. |`30`|
25
26
|`gen_ai.usage.output_tokens`| int | optional | The number of tokens used in the AI response. |`100`|
Copy file name to clipboardExpand all lines: includes/tracing/ai-agents-module/invoke-agent-span.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,13 @@ Additional attributes on the span:
22
22
|`gen_ai.request.temperature`| float | optional | Model configuration parameter. |`0.1`|
23
23
|`gen_ai.request.top_p`| float | optional | Model configuration parameter. |`0.7`|
24
24
|`gen_ai.response.tool_calls`| string | optional | The tool calls in the model’s response. **[0]**|`"[{\"name\": \"random_number\", \"type\": \"function_call\", \"arguments\": \"...\"}]"`|
25
-
|`gen_ai.response.text`| string | optional | The text representation of the model’s responses. **[0]**|`"[\"The weather in Paris is rainy\", \"The weather in London is sunny\"]"`|
26
-
|`gen_ai.usage.input_tokens.cached`| int | optional | The number of cached tokens used in the AI input (prompt) |`50`|
25
+
|`gen_ai.response.text`| string | optional | The text representation of the model's responses. **[0]**|`"[\"The weather in Paris is rainy\", \"The weather in London is sunny\"]"`|
26
+
|`gen_ai.usage.input_tokens.cache_write`| int | optional | The number of tokens written to the cache when processing the AI input (prompt). |`100`|
27
+
|`gen_ai.usage.input_tokens.cached`| int | optional | The number of cached tokens used in the AI input (prompt) |`50`|
27
28
|`gen_ai.usage.input_tokens`| int | optional | The number of tokens used in the AI input (prompt). |`10`|
28
29
|`gen_ai.usage.output_tokens.reasoning`| int | optional | The number of tokens used for reasoning. |`30`|
29
30
|`gen_ai.usage.output_tokens`| int | optional | The number of tokens used in the AI response. |`100`|
30
31
|`gen_ai.usage.total_tokens`| int | optional | The total number of tokens used to process the prompt. (input and output) |`190`|
31
32
32
33
-**[0]:** Span attributes only allow primitive data types (like `int`, `float`, `boolean`, `string`). This means you need to use a stringified version of a list of dictionaries. Do NOT set `[{"foo": "bar"}]` but rather the string `"[{\"foo\": \"bar\"}]"`.
33
-
-**[1]:** Each message item uses the format `{role:"", content:""}`. The `role` can be `"user"`, `"assistant"`, or `"system"`. The `content` can be either a string or a list of dictionaries.
34
+
-**[1]:** Each message item uses the format `{role:"", content:""}`. The `role` can be `"user"`, `"assistant"`, or `"system"`. The `content` can be either a string or a list of dictionaries.
0 commit comments