Package com.rpl.agentorama.analytics
Interface BasicAgentInvokeStats
public interface BasicAgentInvokeStats
Basic statistics for an agent invocation including token counts and operation metrics.
BasicAgentInvokeStats provides fundamental performance and usage metrics for a single
agent execution, including token consumption, nested operation statistics, and
per-node performance data.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the total number of input tokens consumed during this execution.Gets statistics for nested operations by type.Gets statistics for each node execution within this agent.intGets the total number of output tokens generated during this execution.intGets the total number of tokens for this execution.
-
Method Details
-
getNestedOpStats
Map<NestedOpType,OpStats> getNestedOpStats()Gets statistics for nested operations by type.- Returns:
- map from nested operation type to operation statistics
-
getInputTokenCount
int getInputTokenCount()Gets the total number of input tokens consumed during this execution.- Returns:
- input token count
-
getOutputTokenCount
int getOutputTokenCount()Gets the total number of output tokens generated during this execution.- Returns:
- output token count
-
getTotalTokenCount
int getTotalTokenCount()Gets the total number of tokens for this execution.- Returns:
- total token count
-
getNodeStats
Gets statistics for each node execution within this agent.- Returns:
- map from node name to node execution statistics
-