Defend

Concepts

How Defend fits into your application, how the pipeline layers work, and how sessions tie input and output together.

Defend is a guardrail service: you call it at two boundaries—before the LLM (input) and before you expose model output (output). Configuration lives in defend.config.yaml; behavior is a mix of heuristics, optional local ML when you choose the defend provider, session state, and optional LLM-based evaluation.

Placement and processing

Where guards sit in your stack and what runs on the input path before a decision.

Conversation and decisions

Linking turns and interpreting what the API returns.

Evidence and boundaries

Benchmark context and what Defend does not promise.