bodhi-realtime-agent / Actor
Interface: Actor
Defined in: src/runtime/actor-runtime.ts:24
Lifecycle hooks + message handler for an actor.
Properties
id
readonlyid:string
Defined in: src/runtime/actor-runtime.ts:26
Unique actor identity.
Methods
onMessage()
onMessage(
envelope):Promise<void>
Defined in: src/runtime/actor-runtime.ts:32
Handle one envelope. Called serially — no concurrent invocations.
Parameters
envelope
Returns
Promise<void>
onStart()?
optionalonStart():Promise<void>
Defined in: src/runtime/actor-runtime.ts:29
Called once when the actor is started (before any messages).
Returns
Promise<void>
onStop()?
optionalonStop(reason):Promise<void>
Defined in: src/runtime/actor-runtime.ts:35
Called when the actor is stopped.
Parameters
reason
string
Returns
Promise<void>