@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
13 lines • 797 B
TypeScript
/**
* 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
* - First invocation (retryCount === 0): returns immediately with backgroundTaskPending=true
* so the loop can re-enter without blocking
* - Subsequent invocations: waits with timeout for the next task to complete,
* then sets isContinued=true so the LLM processes the result
* - If no running tasks: passes through unchanged
*/
export declare function createDurableBackgroundTaskCheckStep(): import("../../../../workflows").Step<string, unknown, any, any, unknown, unknown, import("../../../../workflows").DefaultEngineType, unknown>;
//# sourceMappingURL=background-task-check.d.ts.map