Anchorage API reference
    Preparing search index...
    interface ThreadAgentHost {
        blockingRun(scope: ThreadScope): Promise<BlockingAgentRun | undefined>;
        notificationDispatchAllowed(
            scope: ThreadScope,
            agentId: string,
        ): Promise<boolean>;
        recoverNotificationOperation(
            scope: ThreadScope,
            invocationId: string,
        ): Promise<"receipt-recorded" | "unresolved">;
        recoverOwnership(scope: AgentThreadInstanceScope): Promise<void>;
        requestContextForRun(base?: RequestContextProvider): RequestContextProvider;
        resolveBoundAgent(
            scope: ThreadScope,
            input: {
                agentId?: string;
                entryPath:
                    | "approval.resume"
                    | "http.start"
                    | "remote-step.resume"
                    | "signal.message"
                    | "signal.queue"
                    | "signal.reactive"
                    | "signal.state"
                    | "signal.notification"
                    | "signal.wake"
                    | "notification.dispatch"
                    | "schedule.fire";
            },
        ): Promise<BoundThreadAgent>;
        route(request: Request, scope: ThreadScope): Promise<Response | null>;
        scheduleDispatchStatus(
            scope: ThreadScope,
            input: { agentId: string; resourceId: string; runId: string },
        ): Promise<RunSummary | undefined>;
        serializeDispatch<T>(operation: () => Promise<T>): Promise<T>;
        start(
            scope: ThreadScope,
            input: ThreadAgentStartInput,
        ): Promise<AgentRunEnvelope>;
    }
    Index

    Methods

    • Check the catalog's system notification-dispatch declaration. Automated-entry authorization and required permissions still apply at dispatch.

      Parameters

      Returns Promise<boolean>

    • Parameters

      • scope: ThreadScope
      • input: {
            agentId?: string;
            entryPath:
                | "approval.resume"
                | "http.start"
                | "remote-step.resume"
                | "signal.message"
                | "signal.queue"
                | "signal.reactive"
                | "signal.state"
                | "signal.notification"
                | "signal.wake"
                | "notification.dispatch"
                | "schedule.fire";
        }

      Returns Promise<BoundThreadAgent>