switchyard
    Preparing search index...

    Interface InspectorLike

    The inspector calls this needs: createBrowserInspector() from @statelyai/inspect fits.

    interface InspectorLike {
        actor(
            actor: ActorRefLike,
            snapshot?: { status?: string; value?: unknown },
        ): void;
        event(
            sessionId: string,
            event: { type: string },
            info?: { source?: string },
        ): void;
        snapshot(
            sessionId: string,
            snapshot: { status?: string; value?: unknown },
            info?: { event?: { type: string } },
        ): void;
    }
    Index
    • Registers an actor and its starting snapshot.

      Parameters

      • actor: ActorRefLike
      • Optionalsnapshot: { status?: string; value?: unknown }

      Returns void

    • Records an event the actor received.

      Parameters

      • sessionId: string
      • event: { type: string }
      • Optionalinfo: { source?: string }

      Returns void

    • Records the actor's new snapshot after an event.

      Parameters

      • sessionId: string
      • snapshot: { status?: string; value?: unknown }
      • Optionalinfo: { event?: { type: string } }

      Returns void