UNPKG

@mastra/core

Version:
15 lines 981 B
/** * Create a durable background task check step. * * Mirrors the regular agent's backgroundTaskCheckStep pattern: * - After tool calls complete, checks if any background tasks are still running * - If no running tasks: passes through unchanged * - If an explicit waitTimeoutMs is configured and retryCount === 0: returns * immediately with backgroundTaskPending=true (caller drives continuation) * - Otherwise: waits for the next task to complete using the configured * waitTimeoutMs or a 1 s default — this keeps the workflow (and its pubsub * subscription) alive so background-task tool-result chunks are delivered * - When a task completes: sets isContinued=true so the LLM processes the result */ export declare function createDurableBackgroundTaskCheckStep(): import("../../../../workflows").Step<string, unknown, any, any, unknown, unknown, import("../../../../workflows").DefaultEngineType, unknown>; //# sourceMappingURL=background-task-check.d.ts.map