WebSearchResponse class final

One provider's answer to a search query (omp's SearchResponse).

Constructors

WebSearchResponse({required String provider, String? answer, List<WebSearchSource> sources = const []})
Creates a response.
const

Properties

answer String?
Synthesized answer text (Tavily only; DDG/Brave return sources only).
final
hashCode int
The hash code for this object.
no setterinherited
hasRenderableContent bool
Whether there is anything worth showing the model (omp's hasRenderableSearchContent, reduced to the ported fields).
no setter
provider String
Id of the provider that produced this response.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sources List<WebSearchSource>
Ranked results, best first.
final

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