ExecutionMetrics Type
Aggregated metrics for an agent execution
Record fields
| Record Field |
Description
|
Full Usage:
AvgLatencyMs
Field type: float
|
Average latency per LLM call in milliseconds
|
|
Time spent waiting for LLM responses
|
Full Usage:
P95LatencyMs
Field type: float
|
P95 latency in milliseconds
|
|
Time spent in tool execution
|
Full Usage:
TotalCostUsd
Field type: decimal
|
Total estimated cost in USD
|
|
Total execution time
|
Full Usage:
TotalInputTokens
Field type: int
|
Total input tokens consumed
|
Full Usage:
TotalLlmCalls
Field type: int
|
Total LLM calls made
|
Full Usage:
TotalOutputTokens
Field type: int
|
Total output tokens generated
|
Full Usage:
TotalToolCalls
Field type: int
|
Total tool invocations
|
|
Core resource usage (shared with Environment layer)
|
Static members
| Static member |
Description
|
Full Usage:
ExecutionMetrics.FromUsage(usage)
Parameters:
ResourceUsage
Returns: ExecutionMetrics
|
Create from ResourceUsage (bridge from Environment layer)
|
|
|
Nao