Skip to content

Commit 5adfe9f

Browse files
committed
Include more_results_available in response.
1 parent 345818b commit 5adfe9f

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

web.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,18 @@ func (b *brave) WebSearch(ctx context.Context, term string, options ...SearchOpt
3535
}
3636

3737
type WebSearchResult struct {
38-
Type string `json:"type"`
39-
Discussions *ResultContainer[DiscussionResult] `json:"discussions"`
40-
FAQ *ResultContainer[QA] `json:"faq"`
41-
InfoBox *ResultContainer[GraphInfoBox] `json:"infobox"`
42-
Locations *ResultContainer[LocationResult] `json:"locations"`
43-
Mixed *Mixed `json:"mixed"`
44-
News *ResultContainer[NewsResult] `json:"news"`
45-
Query *Query `json:"query"`
46-
Videos *ResultContainer[VideoResult] `json:"videos"`
47-
Web *ResultContainer[SearchResult] `json:"web"`
48-
Summarizer *Summarizer `json:"summarizer"`
38+
Type string `json:"type"`
39+
MoreResultsAvailable bool `json:"more_results_available"`
40+
Discussions *ResultContainer[DiscussionResult] `json:"discussions"`
41+
FAQ *ResultContainer[QA] `json:"faq"`
42+
InfoBox *ResultContainer[GraphInfoBox] `json:"infobox"`
43+
Locations *ResultContainer[LocationResult] `json:"locations"`
44+
Mixed *Mixed `json:"mixed"`
45+
News *ResultContainer[NewsResult] `json:"news"`
46+
Query *Query `json:"query"`
47+
Videos *ResultContainer[VideoResult] `json:"videos"`
48+
Web *ResultContainer[SearchResult] `json:"web"`
49+
Summarizer *Summarizer `json:"summarizer"`
4950
}
5051

5152
type webSearchParams struct {

0 commit comments

Comments
 (0)