feat(agent): production-grade interactive runtime#2122
Closed
gold-silver-copper wants to merge 1 commit into
Closed
feat(agent): production-grade interactive runtime#2122gold-silver-copper wants to merge 1 commit into
gold-silver-copper wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR delivers a broad foundation and partial implementation of the production interactive-agent roadmap in #2118. It does not complete the epic or every linked issue.
Implemented scope
Interactive runtime
RunControlHandle/RunContextwith status, cooperative cancellation, deadlines, steering, follow-ups, safe checkpoints, and resume.Tool platform
ToolDefinition::output_schemaand structured rich tool output parts while retaining string-returning tool compatibility.AgentBuilder; OpenAI request conversion merges hosted and native tools into one wire array.Persistence and reusable capabilities
ConversationMemorywith atomic multi-connection ordering.Coding-tool foundation
durable_coding_agentexample.What this PR does not complete
The following #2118 work remains and should be handled in focused follow-ups:
next_turnqueue/API separate from steer and follow-up;CodeModeToolin this PR is an allowlisted command-execution foundation, not completion of feat: Add a "Code Mode" tool to Rig #1439;Accordingly, this PR advances but does not close #2118, #2095, #1906, #1264, #1439, or #1886.
Breaking API migration
The implemented output-schema and correlation work adds fields to public response/tool types.
CHANGELOG.mddocuments struct-literal migration and constructors/helpers. Serialized checkpoint/session fields use defaults where backward deserialization is safe.Validation
cargo test -p rig-core --all-features --lib— 1303 passed, 8 ignoredcargo test -p rig-sqlite --lib— 56 passedcargo check --workspace --all-targets --all-featurescargo check -p rig-core --target wasm32-unknown-unknowncargo check -p rig-core --features wasm --target wasm32-unknown-unknowncargo clippy -p rig-core --all-targets --all-features -- -D warningscargo clippy -p rig-sqlite --lib --all-features -- -D warningscargo doc -p rig-core -p rig-sqlite --no-depscargo check --manifest-path examples/durable_coding_agent/Cargo.tomlcargo fmt --all -- --checkgit diff --checkLive provider and external SSH/container/sandbox execution remain environment-dependent. Windows process-tree cleanup uses the host's
taskkill /T /F.Supersedes the steering approach in #1858. It does not fully supersede #1886.
Closes #2116
Closes #2090
Closes #2094
Closes #1613
Closes #1890
Closes #1968