@mastra/core
Version:
13 lines • 934 B
TypeScript
/**
* Maximum time to retain a running tool's result after caller cancellation.
* Review probes measured two competing bounds, not a rationale for choosing 250 ms:
* - A tool unwinding for 120 ms kept its result with a 150 ms window, but got a notice at 100 ms.
* - With totalMs: 300, an uncooperative tool recorded a notice at 250 ms; a 1000 ms window
* lost to MastraTimeoutError before recording one (in-process engine only).
* Cleanup needs time to finish, but the remaining run budget can pre-empt this window.
*/
export declare const TOOL_ABORT_GRACE_MS = 250;
/** Time past the grace window for an aborted tool's step to record its result. */
export declare const TOOL_SETTLE_MARGIN_MS = 250;
export declare const TOOL_ABORT_NOTICE = "Tool execution was aborted while running. The tool may still be running and its effects are unknown. Check its status before retrying.";
//# sourceMappingURL=tool-abort-grace.d.ts.map