DiagnosticEvent
Defined in: packages/protocol/src/lib/diagnostics.ts:13
One diagnostic observation. Durations use the emitting process’s clock.
Properties
Section titled “Properties”
readonlyat:number
Defined in: packages/protocol/src/lib/diagnostics.ts:19
Wall-clock emission time; clocks in different processes can disagree.
content?
Section titled “content?”
readonlyoptionalcontent?:unknown
Defined in: packages/protocol/src/lib/diagnostics.ts:35
Explicitly recorded application content, after producer-side redaction.
readonlyid:string
Defined in: packages/protocol/src/lib/diagnostics.ts:15
Unique event identity within a capture.
readonlykind:string
Defined in: packages/protocol/src/lib/diagnostics.ts:17
Namespaced event name, such as client.request.started.
metadata
Section titled “metadata”
readonlymetadata:DiagnosticMetadata
Defined in: packages/protocol/src/lib/diagnostics.ts:33
Metadata that excludes transcripts, prompts, arguments, and credentials.
requestId?
Section titled “requestId?”
readonlyoptionalrequestId?:string
Defined in: packages/protocol/src/lib/diagnostics.ts:26
Originating request when the producer can prove the association. Engine
events never carry it together with runId.
runId?
Section titled “runId?”
readonlyoptionalrunId?:string
Defined in: packages/protocol/src/lib/diagnostics.ts:31
Server-minted Agent Run whose work produced this event. An Engine event
with neither requestId nor runId belongs to the session as a whole.
sessionId
Section titled “sessionId”
readonlysessionId:string
Defined in: packages/protocol/src/lib/diagnostics.ts:21
Session whose work produced this event.