[Core] Add Factory Pause Checkpoints - #2537
Conversation
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>
SDK Consistency ReviewScope of PR #2537: Adds Cross-SDK check: The Agent Factories feature ( Conclusion: This PR extends an already Node.js-only (experimental) feature area rather than introducing a new cross-language asymmetry — the other SDKs (Python, Go, .NET, Rust, and Java's hand-written client) did not have factory pause/limits parity before this PR, and still don't, but that gap pre-dates this change. No inline consistency issues to flag for this PR specifically. Suggestion (non-blocking): Since Agent Factories is marked
|
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.