Report class

Constructors

Report({String? answer, List<String> followUps = const [], String? mode, String? model, List<ModelSource> sources = const []})
Returns a new Report instance.

Properties

answer ↔ String?
Answer is the grounded prose, with inline markdown citations. Every link in it points at a page in Sources: the citation check runs on the text before it leaves the engine, so a cited URL is one THIS call fetched.
getter/setter pair
followUps ↔ List<String>
FollowUps are the questions worth asking next. Best-effort — an empty list is a normal outcome, not a fault.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
mode ↔ String?
Mode is the profile that ran: search, news, research or deep.
getter/setter pair
model ↔ String?
Model is the model that synthesized the answer.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sources ↔ List<ModelSource>
Sources are the pages the answer was written from, deduplicated and ranked. Always an array, never null.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Report?
Returns a new Report instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Report>
mapFromJson(dynamic json) → Map<String, Report>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Report>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.