duckduckgo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FnPrototype

type FnPrototype func(Input) Output

type Input

type Input struct {
	Query string `json:"query" jsonschema:"description=the query to search for"`
}

type Output

type Output struct {
	Error   string   `json:"error,omitempty"`
	Results []result `json:"results,omitempty"`
}

type Tool

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

func New

func New() *Tool

func (*Tool) Description

func (t *Tool) Description() string

func (*Tool) Fn

func (t *Tool) Fn() any

func (*Tool) Name

func (t *Tool) Name() string

func (*Tool) WithMaxResults

func (t *Tool) WithMaxResults(maxResults uint) *Tool

func (*Tool) WithUserAgent

func (t *Tool) WithUserAgent(userAgent string) *Tool

Jump to

Keyboard shortcuts

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