LlmRefusalException class
The model (or a safety classifier) declined the request.
When streaming, text already delivered before the refusal is partial and should be discarded.
- Inheritance
-
- Object
- LlmException
- LlmRefusalException
Constructors
- LlmRefusalException(String message, {String? category})
-
Creates an exception.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited