Developing
Adding a Built-in AI Filter
Add a built-in Praxis AI filter by following the filter contract and registering it with the product.
On this page
Read the extensions guide first.
- Create the filter module:
- Provider API filters:
apis/src/<provider>/ - Cross-provider filters:
filters/src/<category>/
- Provider API filters:
- Implement
HttpFilterfrompraxis-filter, with afrom_configfactory that deserializes aserde_yaml::Valueinto your config struct. - Register it in
praxis_ai_filters::register_ai_filters(infilters/src/register.rs). - Add unit tests and doctests.
- Add an example config in the matching category under
examples/configs/. - Add a functional integration test in
tests/integration/tests/suite/. - List new or renamed example configs in
examples/README.md.
The testing requirements in the shared development conventions apply; a feature without tests and an example is not complete.