switchyard
    Preparing search index...

    Interface ActorRefLike

    What the inspector reads from an actor: @statelyai/inspect takes the definition from logic.config and the parent and root from _parent, not from the call's info.

    interface ActorRefLike {
        _parent?: ActorRefLike;
        id: string;
        logic: { config: unknown };
        sessionId: string;
        getSnapshot(): unknown;
        send(event: { type: string }): void;
    }
    Index
    _parent?: ActorRefLike
    id: string
    logic: { config: unknown }
    sessionId: string
    • The machine's current snapshot, as the inspector shows it.

      Returns unknown

    • Sends an event the inspector fires at the machine, by its type.

      Parameters

      • event: { type: string }

      Returns void