WebSearchResults class

Constructors

WebSearchResults({List<WebEngine> engines = const [], int? numberOfResults, String? query, List<WebResult> results = const []})
Returns a new WebSearchResults instance.

Properties

engines ↔ List<WebEngine>
Engines is one entry per engine asked, in the order they were asked. It is ADDITIVE to the SearXNG contract, which the LibreChat client ignores as an unknown field exactly as it ignores engine on a result.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
numberOfResults ↔ int?
NumberOfResults is len(results) — what this answer carries, never an estimate of what the web holds.
getter/setter pair
query ↔ String?
Query is the query that ran, echoed back.
getter/setter pair
results ↔ List<WebResult>
Results are the merged hits, deduplicated by normalised URL and capped at 30. Always an array and never null: no hits is an ANSWER, not a fault.
getter/setter pair
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
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) → WebSearchResults?
Returns a new WebSearchResults instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<WebSearchResults>
mapFromJson(dynamic json) → Map<String, WebSearchResults>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<WebSearchResults>>

Constants

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