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
用于工具执行的、可自动关闭的遥测数据跟踪功能。
  • 构造函数详细信息

    • ToolExecution

      public ToolExecution(BaseTool tool, BaseAgent agent, Map<String,Object> functionArgs, io.opentelemetry.context.Context parentContext)
      构建一个新的…… 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)