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
| <aid="gen-ai-agent-description"href="#gen-ai-agent-description">`gen_ai.agent.description`</a> | string | Free-form description of the GenAI agent provided by the application. |`Helps with math problems`; `Generates fiction stories`||
18
+
| <aid="gen-ai-agent-id"href="#gen-ai-agent-id">`gen_ai.agent.id`</a> | string | The unique identifier of the GenAI agent. |`asst_5j66UpCpwteGg4YSxUnt7lPY`||
19
+
| <aid="gen-ai-agent-name"href="#gen-ai-agent-name">`gen_ai.agent.name`</a> | string | Human-readable name of the GenAI agent provided by the application. |`Math Tutor`; `Fiction Writer`||
17
20
| <aid="gen-ai-operation-name"href="#gen-ai-operation-name">`gen_ai.operation.name`</a> | string | The name of the operation being performed. [1]|`chat`; `text_completion`; `embeddings`||
18
21
| <aid="gen-ai-output-type"href="#gen-ai-output-type">`gen_ai.output.type`</a> | string | Represents the content type requested by the client. [2]|`text`; `json`; `image`||
19
22
| <aid="gen-ai-request-encoding-formats"href="#gen-ai-request-encoding-formats">`gen_ai.request.encoding_formats`</a> | string[]| The encoding formats requested in an embeddings operation, if specified. [3]|`["base64"]`; `["float", "binary"]`||
@@ -31,6 +34,9 @@ This document defines the attributes used to describe telemetry in the context o
31
34
| <aid="gen-ai-response-model"href="#gen-ai-response-model">`gen_ai.response.model`</a> | string | The name of the model that generated the response. |`gpt-4-0613`||
32
35
| <aid="gen-ai-system"href="#gen-ai-system">`gen_ai.system`</a> | string | The Generative AI product as identified by the client or server instrumentation. [4]|`openai`||
33
36
| <aid="gen-ai-token-type"href="#gen-ai-token-type">`gen_ai.token.type`</a> | string | The type of token being counted. |`input`; `output`||
37
+
| <aid="gen-ai-tool-call-id"href="#gen-ai-tool-call-id">`gen_ai.tool.call.id`</a> | string | The tool call identifier. |`call_mszuSIzqtI65i1wAUOE8w5H4`||
38
+
| <aid="gen-ai-tool-name"href="#gen-ai-tool-name">`gen_ai.tool.name`</a> | string | Name of the tool utilized by the agent. |`Flights`||
39
+
| <aid="gen-ai-tool-type"href="#gen-ai-tool-type">`gen_ai.tool.type`</a> | string | Type of the tool utilized by the agent [5]|`function`; `extension`; `datastore`||
34
40
| <aid="gen-ai-usage-input-tokens"href="#gen-ai-usage-input-tokens">`gen_ai.usage.input_tokens`</a> | int | The number of tokens used in the GenAI input (prompt). |`100`||
35
41
| <aid="gen-ai-usage-output-tokens"href="#gen-ai-usage-output-tokens">`gen_ai.usage.output_tokens`</a> | int | The number of tokens used in the GenAI response (completion). |`180`||
36
42
@@ -54,14 +60,22 @@ attribute may help identify the actual system in use for `openai`.
54
60
For custom model, a custom friendly name SHOULD be used.
55
61
If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`.
56
62
63
+
**[5]`gen_ai.tool.type`:** Extension: A tool executed on the agent-side to directly call external APIs, bridging the gap between the agent and real-world systems.
64
+
Agent-side operations involve actions that are performed by the agent on the server or within the agent's controlled environment.
65
+
Function: A tool executed on the client-side, where the agent generates parameters for a predefined function, and the client executes the logic.
66
+
Client-side operations are actions taken on the user's end or within the client application.
67
+
Datastore: A tool used by the agent to access and query structured or unstructured external data for retrieval-augmented tasks or knowledge updates.
68
+
57
69
---
58
70
59
71
`gen_ai.operation.name` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
60
72
61
73
| Value | Description | Stability |
62
74
|---|---|---|
63
75
|`chat`| Chat completion operation such as [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat)||
|`embeddings`| Embeddings operation such as [OpenAI Create embeddings API](https://platform.openai.com/docs/api-reference/embeddings/create)||
78
+
|`execute_tool`| Execute a tool ||
65
79
|`text_completion`| Text completions operation such as [OpenAI Completions API (Legacy)](https://platform.openai.com/docs/api-reference/completions)||
Copy file name to clipboardExpand all lines: docs/gen-ai/azure-ai-inference.md
+2
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,9 @@ Additional output format details may be recorded in the future in the `gen_ai.ou
83
83
| Value | Description | Stability |
84
84
|---|---|---|
85
85
|`chat`| Chat completion operation such as [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat)||
|`embeddings`| Embeddings operation such as [OpenAI Create embeddings API](https://platform.openai.com/docs/api-reference/embeddings/create)||
88
+
|`execute_tool`| Execute a tool ||
87
89
|`text_completion`| Text completions operation such as [OpenAI Completions API (Legacy)](https://platform.openai.com/docs/api-reference/completions)||
0 commit comments