Skip to main content

Module capability_guard

Module capability_guard 

Source
Expand description

Request/provider capability validation

§Capability Guard

Validates that a ChatRequest only uses parameters the target provider actually supports, based on its LlmCapabilities flags.

In strict mode, unsupported parameters cause an immediate RunnerError rejection. In permissive mode (the default), the function returns warning strings that callers can surface in ChatResponse::warnings.

Functions§

validate_capabilities
Validate that a request’s parameters are supported by the provider.