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.