agentskit.js

SloObserver

Auto-generated API reference for SloObserver.

Interface: SloObserver

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

#Extends

  • Observer

#Properties

#name

name: string

Defined in: core/dist/chat-BVIrx4Ob.d.ts:164

#Inherited from

Observer.name


#on

on: (event) => void | Promise<void>

Defined in: core/dist/chat-BVIrx4Ob.d.ts:165

#Parameters

event

AgentEvent

#Returns

void | Promise<void>

#Inherited from

Observer.on


#otel

otel: () => object[]

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

OpenTelemetry-shaped metric records (push to OTLP).

#Returns

object[]


#prometheus

prometheus: () => string

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

Prometheus exposition text (# HELP / # TYPE / metric\{...\} value).

#Returns

string


#snapshot

snapshot: (windowMs?) => SloSnapshot

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

#Parameters

windowMs?

number

#Returns

SloSnapshot


#stop

stop: () => void

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

Stop the burn-rate timer.

#Returns

void

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 via OpenRouter free-tier models. Rate limited per IP.