tools

package
v1.1.25 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSearchTool

type WebSearchTool struct{}

WebSearchTool implements web search via Exa's MCP API.

func (*WebSearchTool) Execute

func (w *WebSearchTool) Execute(ctx context.Context, args map[string]any) (string, error)

Execute performs the web search using Exa's MCP endpoint.

func (*WebSearchTool) Name

func (w *WebSearchTool) Name() string

Name returns the tool name.

func (*WebSearchTool) Schema

func (w *WebSearchTool) Schema() desktop.Tool

Schema returns the OpenAI tool definition for web search.

Jump to

Keyboard shortcuts

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