Agent base class, imported from
@telnyx/edge-runtime:
Two rules apply across the whole surface:
- Every member is
protected— this is an inside-the-class API, called from your own methods. It is not part of the RPC surface your subclass exposes to stubs. alarm()is claimed by the SDK. The task scheduler runs on the actor’s single alarm slot. Do not overridealarm()in anAgentsubclass — schedule a task instead. (On a plainStatefulActor,alarm()remains yours — see Alarms.)
StatefulActor is still there — this.ctx, this.env, RPC dispatch,
fetch() — see the
StatefulActor Runtime API.