OpenInference JS
    Preparing search index...
    • Generates attributes for tool definitions.

      Creates OpenTelemetry attributes for tool information including name, description, and parameters schema.

      Parameters

      • options: { description?: string; name: string; parameters: Record<string, unknown> }

        Configuration object for tool attributes

        • Optionaldescription?: string

          Optional description of the tool

        • name: string

          The name of the tool

        • parameters: Record<string, unknown>

          Tool parameters as string or object

      Returns Attributes

      OpenTelemetry attributes for the tool

      const attrs = getToolAttributes({
      name: "search_tool",
      description: "Search for information",
      parameters: { query: { type: "string" } }
      });