search

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProbeTavily added in v0.3.0

func ProbeTavily(ctx context.Context, apiKey, proxy string) (string, error)

ProbeTavily verifies a single Tavily API key by issuing a minimal search directly against the Tavily API. Unlike Execute, it never falls back to DuckDuckGo, so an invalid or exhausted key surfaces as an error instead of being silently masked by the fallback. A non-empty proxy routes the request. On success it returns a short human-readable detail (e.g. "1 result").

Types

type CyberhubSearch

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

func NewCyberhubSearch

func NewCyberhubSearch(index *association.Index) *CyberhubSearch

func (*CyberhubSearch) Execute

func (c *CyberhubSearch) Execute(_ context.Context, args []string) error

func (*CyberhubSearch) Name

func (c *CyberhubSearch) Name() string

func (*CyberhubSearch) Usage

func (c *CyberhubSearch) Usage() string

type FetchCommand

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

func NewFetchCommand

func NewFetchCommand() *FetchCommand

func (*FetchCommand) ClearCache

func (c *FetchCommand) ClearCache()

func (*FetchCommand) Execute

func (c *FetchCommand) Execute(ctx context.Context, args []string) (err error)

func (*FetchCommand) Name

func (c *FetchCommand) Name() string

func (*FetchCommand) Usage

func (c *FetchCommand) Usage() string

type TavilySearch

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

func NewTavilySearch

func NewTavilySearch(builtinKeys string) *TavilySearch

func (*TavilySearch) Execute

func (c *TavilySearch) Execute(ctx context.Context, args []string) (string, error)

func (*TavilySearch) SetProxy

func (c *TavilySearch) SetProxy(proxyURLStr string)

type WebSearchTool

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

func NewWebSearchTool

func NewWebSearchTool(p provider.Provider, tavily *TavilySearch) *WebSearchTool

func (*WebSearchTool) Definition

func (t *WebSearchTool) Definition() commands.ToolDefinition

func (*WebSearchTool) Description

func (t *WebSearchTool) Description() string

func (*WebSearchTool) Execute

func (t *WebSearchTool) Execute(ctx context.Context, arguments string) (commands.ToolResult, error)

func (*WebSearchTool) Name

func (t *WebSearchTool) Name() string

Jump to

Keyboard shortcuts

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