org.llm4s.error.InvalidInputError
See theInvalidInputError companion object
final case class InvalidInputError extends LLMError, NonRecoverableError
Error for invalid input values that fail validation.
Provides detailed context about which field was invalid, what value was provided, and why it was rejected. As a NonRecoverableError, the input must be corrected before retrying.
Value parameters
- field
-
The name of the field that has invalid input
- message
-
Human-readable error description
- reason
-
Explanation of why the value is invalid
- value
-
The invalid value that was provided
Attributes
- Example
-
val error = InvalidInputError("temperature", "2.5", "must be between 0 and 1") error.context // Map("field" -> "temperature", "value" -> "2.5", "reason" -> "...") - Companion
- object
- Graph
-
- Supertypes
-
trait NonRecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article