brave

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingHook

type BillingHook func(endpoint string)

type SearchResult

type SearchResult struct {
	Title   string `json:"title"`
	URL     string `json:"url"`
	Snippet string `json:"snippet"`
}
func Search(
	ctx context.Context,
	apiKey, query string,
	count int,
	charge BillingHook,
) ([]SearchResult, error)

Search queries Brave's LLM context endpoint for rich, grounding-ready results. Falls back to the regular web search endpoint (with extra_snippets) on failure. Returns nil, nil if apiKey is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL