AiResponse class
The structured response from an AI provider.
Constructors
-
AiResponse({required String content, String? confidence, Map<
String, dynamic> ? metadata}) -
const
Properties
- confidence → String?
-
Optional confidence hint provided by the AI provider.
final
- content → String
-
The AI-generated text response.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> ? -
Optional provider-specific metadata (model name, token usage, etc.).
final
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited