agentskit.js

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?

optional latencyP95Ms?: number

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

Milliseconds. Default 5000.


#streamingStallRate?

optional streamingStallRate?: number

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

0–1. Default 0.005.


#successRate?

optional successRate?: number

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

0–1. Default 0.99.


#toolErrorRate?

optional toolErrorRate?: number

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

0–1. Default 0.01.

Explore nearby

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

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.