Interface AgentInstance.Metrics
- Enclosing interface:
AgentInstance
public static interface AgentInstance.Metrics
Aggregated runtime metrics for this agent instance.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the total number of input tokens consumed across all model calls.intReturns the total number of LLM calls made.longReturns the total number of output tokens produced across all model calls.intReturns 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.
-