bodhi-realtime-agent / Envelope
Interface: Envelope<TType, TPayload>
Defined in: src/runtime/envelope.ts:20
Typed envelope carrying a message between actors.
Type Parameters
TType
TType extends string = string
Message type string (discriminant).
TPayload
TPayload = unknown
Message-specific payload.
Properties
at
readonlyat:number
Defined in: src/runtime/envelope.ts:30
Timestamp (ms since epoch) when the envelope was created.
causationId?
readonlyoptionalcausationId?:string
Defined in: src/runtime/envelope.ts:28
ID of the message that caused this one (causal chain).
correlationId?
readonlyoptionalcorrelationId?:string
Defined in: src/runtime/envelope.ts:26
Links related messages in a workflow (e.g., all messages for one tool call).
from?
readonlyoptionalfrom?:string
Defined in: src/runtime/envelope.ts:32
Sender actor ID. Omitted for external/system-originated messages.
payload
readonlypayload:TPayload
Defined in: src/runtime/envelope.ts:24
Message-specific data payload.
to
readonlyto:string
Defined in: src/runtime/envelope.ts:34
Recipient actor ID.
type
readonlytype:TType
Defined in: src/runtime/envelope.ts:22
Message type string following domain.action naming convention.