search

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Search)

Option configures Search.

func WithAPIKey

func WithAPIKey(key string) Option

WithAPIKey sets the Serper API key. Defaults to SERPER_API_KEY env.

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

Search performs Google search via Serper API. Requires SERPER_API_KEY.

func New

func New(opts ...Option) *Search

New returns a new Search tool. Uses SERPER_API_KEY from env if not set.

func (*Search) ApprovalRequired

func (*Search) ApprovalRequired() bool

func (*Search) Description

func (*Search) Description() string

func (*Search) Execute

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

func (*Search) Name

func (*Search) Name() string

func (*Search) Parameters

func (*Search) Parameters() interfaces.JSONSchema

Jump to

Keyboard shortcuts

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