Header menu logo Nao

ExecutionMetrics Type

Aggregated metrics for an agent execution

Record fields

Record Field Description

AvgLatencyMs

Full Usage: AvgLatencyMs

Field type: float

Average latency per LLM call in milliseconds

Field type: float

LlmWaitTime

Full Usage: LlmWaitTime

Field type: TimeSpan

Time spent waiting for LLM responses

Field type: TimeSpan

P95LatencyMs

Full Usage: P95LatencyMs

Field type: float

P95 latency in milliseconds

Field type: float

ToolExecutionTime

Full Usage: ToolExecutionTime

Field type: TimeSpan

Time spent in tool execution

Field type: TimeSpan

TotalCostUsd

Full Usage: TotalCostUsd

Field type: decimal

Total estimated cost in USD

Field type: decimal

TotalDuration

Full Usage: TotalDuration

Field type: TimeSpan

Total execution time

Field type: TimeSpan

TotalInputTokens

Full Usage: TotalInputTokens

Field type: int

Total input tokens consumed

Field type: int

TotalLlmCalls

Full Usage: TotalLlmCalls

Field type: int

Total LLM calls made

Field type: int

TotalOutputTokens

Full Usage: TotalOutputTokens

Field type: int

Total output tokens generated

Field type: int

TotalToolCalls

Full Usage: TotalToolCalls

Field type: int

Total tool invocations

Field type: int

Usage

Full Usage: Usage

Field type: ResourceUsage

Core resource usage (shared with Environment layer)

Field type: ResourceUsage

Static members

Static member Description

ExecutionMetrics.FromUsage(usage)

Full Usage: ExecutionMetrics.FromUsage(usage)

Parameters:
Returns: ExecutionMetrics

Create from ResourceUsage (bridge from Environment layer)

usage : ResourceUsage
Returns: ExecutionMetrics

ExecutionMetrics.Zero

Full Usage: ExecutionMetrics.Zero

Returns: ExecutionMetrics

Type something to start searching.