Class Instrumentation.ToolExecution

java.lang.Object
com.google.adk.telemetry.Instrumentation.ClosableTelemetryScope
com.google.adk.telemetry.Instrumentation.ToolExecution
All Implemented Interfaces:
AutoCloseable
Enclosing class:
Instrumentation

public static final class Instrumentation.ToolExecution extends Instrumentation.ClosableTelemetryScope
AutoCloseable telemetry tracking scope for tool executions.
  • Constructor Details

    • ToolExecution

      public ToolExecution(BaseTool tool, BaseAgent agent, Map<String,Object> functionArgs, io.opentelemetry.context.Context parentContext)
      Constructs a new ToolExecution telemetry scope.
      Parameters:
      tool - The tool being executed.
      agent - The agent invoking the tool.
      functionArgs - The arguments passed to the tool.
      parentContext - The OpenTelemetry parent context.
  • Method Details