Skip to content

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 ​

readonly at: number

Defined in: src/runtime/envelope.ts:30

Timestamp (ms since epoch) when the envelope was created.


causationId? ​

readonly optional causationId?: string

Defined in: src/runtime/envelope.ts:28

ID of the message that caused this one (causal chain).


correlationId? ​

readonly optional correlationId?: string

Defined in: src/runtime/envelope.ts:26

Links related messages in a workflow (e.g., all messages for one tool call).


from? ​

readonly optional from?: string

Defined in: src/runtime/envelope.ts:32

Sender actor ID. Omitted for external/system-originated messages.


payload ​

readonly payload: TPayload

Defined in: src/runtime/envelope.ts:24

Message-specific data payload.


to ​

readonly to: string

Defined in: src/runtime/envelope.ts:34

Recipient actor ID.


type ​

readonly type: TType

Defined in: src/runtime/envelope.ts:22

Message type string following domain.action naming convention.

Built with VitePress