Skip to main content

Module types

Module types 

Source
Expand description

Structured metrics types for Agent observability.

These types were moved from agent-base to phi-telemetry so that agent-base remains a pure runtime kernel with no knowledge of metrics.

Structs§

SessionMetrics
Accumulated session metrics. Written incrementally to session_metrics.json at the end of each turn.
SessionSummary
Lightweight summary returned by list_all().
TurnMetrics
Per-turn metrics — one per LLM interaction.

Enums§

SessionOutcome
Outcome of a session (the entire conversation).
TurnOutcome
Outcome of a single turn (one LLM interaction).

Functions§

run_outcome_to_session_outcome
Convert agent-base RunOutcome to SessionOutcome.
run_outcome_to_turn_outcome
Convert an agent-base RunOutcome to a turn-level TurnOutcome. Checks tools_used to distinguish ToolCalls from Completed.