Documentation
¶
Overview ¶
Package observability derives vendor-neutral traces and aggregate metrics from agent events. It owns no goroutines and does not export prompts or tool payloads; applications decide where and how to persist or export snapshots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
RunsStarted uint64
RunsCompleted uint64
Turns uint64
ToolCalls uint64
ToolFailures uint64
Usage ai.Usage
}
Metrics aggregates completed and in-flight observations. Counts are useful for a metrics exporter; usage is the sum reported by turn/run events.
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder consumes events through its Observe method, suitable for passing to agent.WithOnEvent. It is safe for concurrent agent runs.
Click to show internal directories.
Click to hide internal directories.