web

package
v1.6.13 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const WebSearchToolName = "web_search"

Variables

This section is empty.

Functions

func NewWebSearchTool

func NewWebSearchTool() types.Tool

Types

type SearchResult

type SearchResult struct {
	Title    string
	Link     string
	Snippet  string
	Position int
}

type WebSearchTool

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

func (*WebSearchTool) Description

func (t *WebSearchTool) Description() string

func (*WebSearchTool) Execute

func (t *WebSearchTool) Execute(ctx context.Context, input map[string]interface{}) (interface{}, error)

func (*WebSearchTool) Metadata

func (t *WebSearchTool) Metadata() types.ToolMetadata

func (*WebSearchTool) Name

func (t *WebSearchTool) Name() string

func (*WebSearchTool) Schema

func (t *WebSearchTool) Schema() map[string]interface{}

Jump to

Keyboard shortcuts

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