refactor(agent-runtime): extract provider contracts to corvus-traits (#431)#508
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Contributor ReportUser: @yacosta738
Contributor Report evaluates based on public GitHub activity. Analysis period: 2025-04-11 to 2026-04-11 |
3ffa363
into
feature/capability-architecture
Related Issues
Summary
Extracts shared provider contracts from
src/providers/traits.rsintocrates/corvus-traits/src/providers.rs(new module), exports fromlib.rs, and converts runtime traits.rs into a compatibility shim with re-exports.Extracted contracts:
ChatMessage,ToolCall,ChatResponse,ChatRequestToolResultMessage,ConversationMessage,StreamChunk,StreamOptionsProviderCapabilities,ToolsPayload,Providertraitbuild_tool_instructions_text,StreamError,StreamResultRuntime's traits.rs is now a compatibility shim that re-exports from
corvus_traits::providers.Tested Information
cargo check— passescargo fmt --check— passescargo clippy— passes with no warningscargo test --test traits_api_compat— 2 tests passlegacy_paths_match_extracted_trait_identitieslegacy_paths_accept_trait_objects_from_extracted_crateDocumentation Impact
Breaking Changes