gen_ai.tool.definitions
MovedGenAI registryanyas of v1.44.0
The list of tool definitions available to the GenAI agent or model.
Instrumentations MUST follow Tool Definitions JSON Schema.
When the attribute is recorded on events, it MUST be recorded in structured form. 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.
Since this attribute could be large, it's NOT RECOMMENDED to populate non-required properties by default. Instrumentations MAY provide a way to enable populating optional properties.
Examples
- [ { "type": "function", "name": "get_current_weather", "description": "Get the current weather in a given location", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The city and state, e.g. San Francisco, CA" }, "unit": { "type": "string", "enum": [ "celsius", "fahrenheit" ] } }, "required": [ "location", "unit" ] } } ]
Used by
events (1)
- gen_ai.client.inference.operation.details (opt-in)
spans (7)
- span.anthropic.inference.client (opt-in)
- span.aws.bedrock.client (opt-in)
- span.azure.ai.inference.client (opt-in)
- span.gen_ai.inference.client (opt-in)
- span.gen_ai.invoke_agent.client (opt-in)
- span.gen_ai.invoke_agent.internal (opt-in)
- span.openai.inference.client (opt-in)
* required on that signal.
History
- v1.42.0deprecated
Moved to the OpenTelemetry GenAI semantic conventions repository.
Added as development.