feat: introduce custom agent companion crate - #2388
Conversation
Out-of-Scope CI/Linting ChangesTo ensure the CI pipelines pass cleanly, we configured 1.
2.
3. Test Suite Warnings (
|
|
Fixes #2393 |
…handler # Conflicts: # crates/rig-core/src/providers/cohere/embeddings.rs # crates/rig-core/src/providers/copilot/mod.rs # crates/rig-core/src/providers/ollama.rs # crates/rig-core/src/providers/openai/embedding.rs # crates/rig-core/src/providers/voyageai.rs
|
Hello, for now we want to minimize the amount of crates that are added to the rig codebase, since that is extra surface we have to maintain. We would prefer you to maintain it independently, and we can add it to github.com/0xPlaygrounds/awesome-rig . Perhaps upstreaming it in the future if it is actively maintained and used. We welcome any changes to rig-core that make it more extensible if necessary for the creation of companion crates. So please open a new PR with the rig-core change, and open a new pr to awesome-rig with your crates. Thank you. |
This PR introduces a new companion crate
rig-custom-agentthat demonstrates the Custom Agent pattern for full control over the orchestration loop and telemetry. It provides a flexible, transparent, and DRY alternative for developers who need to customize the agent lifecycle natively.Changes:
rig-custom-agentcrate to the workspace.CustomAgentandCustomAgentBuilderdemonstrating a simple orchestration loop supportingtemperature,max_tokens,additional_params,tool_choice,output_schema, andrecord_telemetry_content.provider_layout.rstest exemptions to account for the new crate.Fixes #2393