Adding a Provider
v1 status: stub. Step-by-step walkthrough TBD. In the meantime, see
examples/custom_provider.rsin the rantaiclaw repo and read Concepts → Channels & Providers.
The shape
- Implement
Providerinsrc/providers/<your_provider>.rs - Register the factory key in
src/providers/mod.rs - Add a config struct under
src/config/schema.rs - Add focused tests for factory wiring and error paths
- Document in Reference → Providers
Reference implementation
src/providers/openai.rs and src/providers/anthropic.rs are good starting points. Pick whichever protocol shape (OpenAI-compatible vs Anthropic Messages API) is closer to what you are integrating.
Last updated on