RagAnswer class
A generated answer with its evidence.
Constructors
-
RagAnswer(String text, List<
RagSource> sources, {ChatResponse? response}) -
Creates an answer.
const
Properties
-
citations
→ List<
RagSource> -
The sources the answer actually cites, in order of first citation.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- response → ChatResponse?
-
The raw model response, when not streamed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
→ List<
RagSource> -
The sources the model was given, in rank order — those that fitted the
context budget.
final
- text → String
-
The model's answer.
final
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