brave

package
v0.0.0-...-9370133 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package brave implements a web search tool using the Brave search API - see https://brave.com/search/api/

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default configuration
	Country    = "gb"
	Language   = "en"
	NumResults = 10
	MaxRetries = 3
)

Functions

This section is empty.

Types

type Search struct {
	// contains filtered or unexported fields
}

Tool to search on the web - implements agent.Tool interface

func (*Search) Call

func (t *Search) Call(ctx context.Context, arg string) string

func (Search) Definition

func (Search) Definition() llm.FunctionDefinition

Jump to

Keyboard shortcuts

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