[Core] Add Factory Pause Checkpoints - #2537
Conversation
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2dc7880 to
71666ea
Compare
SDK Consistency ReviewThis PR modifies only the Node.js/TypeScript SDK ( Cross-SDK check: The "Agent Factories" surface ( No action needed for other SDKs from this PR. If/when Agent Factories is promoted to a stable, multi-language feature, that expansion (including this new No inline consistency issues found; not adding line comments.
|
What
Adds token-scoped factory pause and durable checkpoint APIs to the Node.js SDK after the runtime contract lands. A paused attempt settles its waiter while resume preserves invocation limit overrides and execution identity.
Why
Factory authors need a safe checkpoint that stops spend without losing completed work. Token-scoped aborts stop an old attempt from cancelling a resumed attempt with the same run ID.