search

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

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

Tool performs web searches via Brave API with semantic re-ranking.

func New

func New(embedding oasis.EmbeddingProvider, braveAPIKey string) *Tool

New creates a SearchTool. Requires an embedding provider and Brave API key.

func (*Tool) Definitions

func (t *Tool) Definitions() []oasis.ToolDefinition

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, _ string, args json.RawMessage) (oasis.ToolResult, error)

func (*Tool) Search

func (t *Tool) Search(ctx context.Context, query string) (string, error)

Search performs a web search with semantic re-ranking.

Jump to

Keyboard shortcuts

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