Skip to main content

LlmSanitizeRequestFn

Type Alias LlmSanitizeRequestFn 

Source
pub type LlmSanitizeRequestFn = Box<dyn Fn(LlmRequest) -> LlmRequest + Send + Sync>;
Expand description

Sanitize an LLM request before the runtime records it.

LLM request sanitizers affect the serialized request payload emitted on start events. They do not mutate the caller-owned LlmRequest unless a separate request intercept does so.

Aliased Typeยง

pub struct LlmSanitizeRequestFn(/* private fields */);