Interface AgentInstance.Metrics

Enclosing interface:
AgentInstance

public static interface AgentInstance.Metrics
Aggregated runtime metrics for this agent instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the total number of input tokens consumed across all model calls.
    int
    Returns the total number of LLM calls made.
    long
    Returns the total number of output tokens produced across all model calls.
    int
    Returns the total number of tool calls made.
  • Method Details

    • getInputTokens

      long getInputTokens()
      Returns the total number of input tokens consumed across all model calls.
    • getOutputTokens

      long getOutputTokens()
      Returns the total number of output tokens produced across all model calls.
    • getModelCalls

      int getModelCalls()
      Returns the total number of LLM calls made.
    • getToolCalls

      int getToolCalls()
      Returns the total number of tool calls made.