@dxos/compute - v0.16.0
    Preparing search index...

    Interface Manager

    Observes and invokes the triggers registered with the dispatchers (local and edge).

    interface Manager {
        invokeTrigger: (
            options: Trigger.InvokeOptions,
        ) => Effect<void, TriggerDisabledError>;
        localDispatcherEnabled: boolean;
        resetTrigger: (
            options: ResetOptions,
        ) => Effect<void, TriggerNotResettableError>;
        triggers: Atom<readonly Trigger.State[]>;
    }
    Index

    Properties

    invokeTrigger: (
        options: Trigger.InvokeOptions,
    ) => Effect<void, TriggerDisabledError>

    Invoke a trigger. Available only for direct and timer triggers. Invocation respects the trigger's concurrency limit. Fails with TriggerDisabledError for a trigger that is switched off.

    localDispatcherEnabled: boolean
    resetTrigger: (options: ResetOptions) => Effect<void, TriggerNotResettableError>

    Rewind a feed trigger to the start of its feed, so every item is delivered again (e.g. after an extractor's prompt or model changes). Routed by the trigger's remote flag, like invokeTrigger. Fails with TriggerNotResettableError for a trigger that is not a feed trigger.

    triggers: Atom<readonly Trigger.State[]>

    Triggers actively registered in the dispatcher. Could contain entries for both local and edge triggers, but only the edge ones are actually running.