search

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: AGPL-3.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProbeTavily

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) Name

func (c *CyberhubSearch) Name() string

func (*CyberhubSearch) Run

func (c *CyberhubSearch) Run(_ context.Context, execution *commands.Execution) (any, error)

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) Name

func (c *FetchCommand) Name() string

func (*FetchCommand) Run

func (c *FetchCommand) Run(ctx context.Context, execution *commands.Execution) (_ any, err error)

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() *tool.Definition

func (*WebSearchTool) Description

func (t *WebSearchTool) Description() string

func (*WebSearchTool) Execute

func (t *WebSearchTool) Execute(ctx context.Context, arguments string) (*tool.Result, 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