TavilySearchProvider class final

Tavily search via the agent-focused API, keyed by TAVILY_API_KEY.

Implemented types

Constructors

TavilySearchProvider()
Creates the provider.
const

Properties

apiKeyName → String?
Secret name this provider needs (e.g. BRAVE_API_KEY), or null when it is keyless (DuckDuckGo).
no setteroverride
endpoint → Uri
The endpoint this provider sends searches to — the host the network gate (issue #682) checks before any request leaves.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
id → String
Provider id used in config and error messages (e.g. duckduckgo).
no setteroverride
label → String
Human-readable name (e.g. DuckDuckGo).
no setteroverride
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
Runs one search. Throws WebSearchException on failure so the chain advances to the next provider.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

buildRequestBody(WebSearchRequest request) → Map<String, dynamic>
Builds the Tavily request body (omp's buildRequestBody, reduced: no recency/topic mapping — topic stays at the default general scope).