Skip to content

@pgege/kaboo-react


Interface: ActivityState

Defined in: src/types.ts:306

The full activity snapshot for a conversation: every StreamGroup keyed by group id. This is what useActivity exposes.

Properties

groups

groups: Record\<string, StreamGroup>

Defined in: src/types.ts:308

All activity groups for the current thread, keyed by group id.


traceByRun?

optional traceByRun?: Record\<string, string>

Defined in: src/types.ts:320

Per-run OpenTelemetry trace id (the run's root trace), keyed by AG-UI runId. Present only when the workflow service runs with telemetry enabled. Use it to attach run-level feedback scores to the exact trace.


usageByRun?

optional usageByRun?: Record\<string, TokenUsage>

Defined in: src/types.ts:314

Per-run token usage rollup, keyed by AG-UI runId. Accumulated independently of groups so run totals include every agent completion — even groupless ones. Absent on streams from older services.