agentskit.js

SloTargets

Auto-generated API reference for SloTargets.

Interface: SloTargets

Defined in: observability/src/slo.ts:20

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 (no chunk for stallThresholdMs)

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?

optional latencyP95Ms?: number

Defined in: observability/src/slo.ts:24

Milliseconds. Default 5000.


#streamingStallRate?

optional streamingStallRate?: number

Defined in: observability/src/slo.ts:28

0–1. Default 0.005.


#successRate?

optional successRate?: number

Defined in: observability/src/slo.ts:22

0–1. Default 0.99.


#toolErrorRate?

optional toolErrorRate?: number

Defined in: observability/src/slo.ts:26

0–1. Default 0.01.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page