Skip to content

prepare

Required / Provided Methods

fn name(&self) -> &''static str
fn mutate(&self, cfg: &ModelConfig, req: &mut LlmRequest) -> anyhow::Result<()>

Required / Provided Methods

fn name(&self) -> &''static str
fn validate(&self, cfg: &ModelConfig, req: &LlmRequest, policy: Policy) -> anyhow::Result<()>

Variants

VariantDescription
Strict
Permissive
fn prepare_request(cfg: &ModelConfig, req: LlmRequest, mutators: &[Box<dyn RequestMutator>], validators: &[Box<dyn RequestValidator>], policy: Policy) -> anyhow::Result<LlmRequest>