Skip to main content

Overview

lua preprocessors manages preprocessor primitives — code that runs before a user message reaches your agent. Use preprocessors for content filtering, routing, rate limiting, validation, and message rewriting.
For defining preprocessors in code, see the Preprocessor concept and the Preprocessor API.

Subcommands

Options

The shorthand pre resolves to preprocessor in most argument positions — e.g. lua pre view, lua logs --type pre.

Examples

Common Workflow