RefusalContent class
Refusal content when model declines to respond.
- Inheritance
-
- Object
- OutputContent
- RefusalContent
- Annotations
-
- @immutable
Constructors
- RefusalContent({required String refusal})
-
Creates a RefusalContent.
const
-
RefusalContent.fromJson(Map<
String, dynamic> json) -
Creates a RefusalContent from JSON.
factory
Properties
Methods
-
copyWith(
{String? refusal}) → RefusalContent - Creates a copy with replaced values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override