Generates attributes for tool definitions.
Creates OpenTelemetry attributes for tool information including name, description, and parameters schema.
Configuration object for tool attributes
Optional
Optional description of the tool
The name of the tool
Tool parameters as string or object
OpenTelemetry attributes for the tool
const attrs = getToolAttributes({ name: "search_tool", description: "Search for information", parameters: { query: { type: "string" } }}); Copy
const attrs = getToolAttributes({ name: "search_tool", description: "Search for information", parameters: { query: { type: "string" } }});
Generates attributes for tool definitions.
Creates OpenTelemetry attributes for tool information including name, description, and parameters schema.