Files
fil/docs/snippets/elixir/plugins/plugin_validator.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

875 B

Custom validator implementation is not available in the Elixir binding. Validators must be implemented in Rust using the Validator trait.

To implement a custom validator in Rust and use it from Elixir:

  1. Implement the Plugin and Validator traits in Rust
  2. Register the validator in the Rust core
  3. Call extraction functions from Elixir, which will automatically apply registered validators

The validator will run after extraction completes and can reject results that don't meet validation criteria.