org.llm4s.error.ValidationError
See theValidationError companion object
final case class ValidationError extends LLMError, NonRecoverableError
Raised when the request parameters or inputs fail validation before being sent to the provider.
This is a NonRecoverableError: it indicates malformed requests, such as providing invalid parameters, missing required fields, or exceeding token limits in the input. The user must fix the request payload to resolve this error.
Value parameters
- field
-
the name of the field that failed validation
- message
-
human-readable description of the validation failure
- violations
-
list of specific validation rules that were violated
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait NonRecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article