SloTargets
Auto-generated API reference for SloTargets.
Interface: SloTargets
Defined in: observability/src/slo.ts:24
SLO preset for AgentsKit. Tracks the four metrics that matter for an agent runtime in production:
- success rate (per agent / per skill / per tool)
- p50 / p95 / p99 latency
- tool-error rate
- streaming-stall rate (first-token latency above threshold)
Operates on canonical AgentEvent only (no correlation id). In-flight operations are tracked as a single active op under the sequential event-stream assumption.
Exposes Prometheus + OpenTelemetry-shaped snapshots and burn-rate
alerts (1h + 6h windows) that fire into the same alert sink contract
the cost guard already uses (CostAlertSink-compatible payloads).
Closes issue #796.
#Properties
#latencyP95Ms?
optionallatencyP95Ms?:number
Defined in: observability/src/slo.ts:28
Milliseconds. Default 5000.
#streamingStallRate?
optionalstreamingStallRate?:number
Defined in: observability/src/slo.ts:32
0β1. Default 0.005.
#successRate?
optionalsuccessRate?:number
Defined in: observability/src/slo.ts:26
0β1. Default 0.99.
#toolErrorRate?
optionaltoolErrorRate?:number
Defined in: observability/src/slo.ts:30
0β1. Default 0.01.