OpenTelemetry SDK
    Preparing search index...

    Variable ATTR_GEN_AI_TOOL_DEFINITIONSConst Experimental

    ATTR_GEN_AI_TOOL_DEFINITIONS: "gen_ai.tool.definitions" = ...

    The list of tool definitions available to the GenAI agent or model.

    [
    {
    "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"
    ]
    }
    }
    ]

    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.

    This attribute is experimental and is subject to breaking changes in minor releases of @opentelemetry/semantic-conventions.