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

Constructors

LlmRefusalException(String message, {String? category})
Creates an exception.
const

Properties

category → String?
Refusal category reported by the provider, if any.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
What went wrong.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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