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.

Praxis AI v0.13.0 (alpha) 1 min read
On this page

Read the extensions guide first.

  1. Create the filter module:
    • Provider API filters: apis/src/<provider>/
    • Cross-provider filters: filters/src/<category>/
  2. Implement HttpFilter from praxis-filter, with a from_config factory that deserializes a serde_yaml::Value into your config struct.
  3. Register it in praxis_ai_filters::register_ai_filters (in filters/src/register.rs).
  4. Add unit tests and doctests.
  5. Add an example config in the matching category under examples/configs/.
  6. Add a functional integration test in tests/integration/tests/suite/.
  7. 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.