Skip to content

DiagnosticCapture

Defined in: packages/devtools/src/capture.ts:37

Bounded explicit capture. No content is retained before start.

new DiagnosticCapture(getKey?, options?): DiagnosticCapture

Defined in: packages/devtools/src/capture.ts:67

Creates an inactive capture with optional redaction and bounds.

() => string | null

CaptureOptions = {}

DiagnosticCapture

addRedactor(redact): () => void

Defined in: packages/devtools/src/capture.ts:151

Composes an application policy into an existing store, including retained evidence. Policies should be idempotent.

(value) => unknown

() => void


clear(): void

Defined in: packages/devtools/src/capture.ts:126

Clears retained evidence and notes.

void


engineRequest(message): void

Defined in: packages/devtools/src/capture.ts:301

Records request identity and update reasons.

ChartRequestMessage

void


engineResponse(requestId, response, durationMs): void

Defined in: packages/devtools/src/capture.ts:310

Records a correlated Engine response.

string

MaelstromResponse

number

void


export(outcome?): string

Defined in: packages/devtools/src/capture.ts:334

Serializes retained evidence using capture schema version 1.

string = ...

string


getEvidenceRevision(): number

Defined in: packages/devtools/src/capture.ts:60

Returns a revision for capture evidence changes, including redaction. Note edits update status separately.

number


getLimits(): Required<Pick<CaptureOptions, "maxEvents" | "maxCharacters" | "maxStringCharacters">>

Defined in: packages/devtools/src/capture.ts:76

Returns the configured event, serialized-character, and string limits.

Required<Pick<CaptureOptions, "maxEvents" | "maxCharacters" | "maxStringCharacters">>


getSnapshot(): object

Defined in: packages/devtools/src/capture.ts:58

Returns retained capture status.

object

active: boolean

count: number

dropped: number

optional mode?: string

outcome: string


observations(snapshot, identity, initial?): void

Defined in: packages/devtools/src/capture.ts:259

Records observation changes and post-start transcript revisions.

VoiceObservationSnapshot

Fields

boolean = false

void


record(kind, fields): void

Defined in: packages/devtools/src/capture.ts:188

Records one event only during an explicit capture.

string

Fields

void


sessionEvent(input, identity): void

Defined in: packages/devtools/src/capture.ts:225

Projects supported voice events without retaining raw provider frames.

unknown

Fields

void


setOutcome(outcome): void

Defined in: packages/devtools/src/capture.ts:324

Retains a redacted note, limited to 4000 characters.

string

void


start(mode, sessionId?, providerInstanceId?): void

Defined in: packages/devtools/src/capture.ts:97

Starts a new capture and clears earlier evidence. Omit identities to capture all Provider lifetimes.

string

string

string

void


stop(): void

Defined in: packages/devtools/src/capture.ts:117

Stops recording and retains the evidence.

void


subscribe(listener): () => boolean

Defined in: packages/devtools/src/capture.ts:62

Observes changes until unsubscribed.

() => void

() => boolean