0xPlaygrounds / 0xPlaygrounds/rig
feat: add a universal API for reasoning
- Lingua principale
- Rust
- Stelle
- 8.6k
- Fork
- 959
- Merge medio
- 4h 32m
- PR unite (30g)
- 117
Descrizione
- [x] I have looked for existing issues (including closed) about this
## Feature Request
Allow reasoning to be turned on and configured through provider-agnostic `AgentBuilder` methods.
### Motivation
Currently, enabling reasoning in rig is very provider-specfic with configuration usually being done through the miscellaneous additional_params method. This makes writing multi-provider AI software more difficult as the user of the library must configure each provider seperately.
### Proposal
This feature might be a little hard to implement as almost all providers have very different configuration methods for reasoning, with some providers not supporting it at all. However, I feel like most configuration should be abstractable into generic methods, reserving untranslatable provider-exclusive options for additional_params (e.g. Gemini's reasoning budget).
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Look at the AgentBuilder struct and existing provider-specific reasoning configurations. Examine how additional_params is currently used. The goal is to design a unified API that abstracts reasoning configuration across providers, handling provider-specific options via a fallback mechanism. Start by reviewing the provider modules to understand their differing approaches.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- ai-infra-agents, backend-api-design
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100