arxiv

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 5 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

View Source
const DefaultUserAgent = "github.com/nvroot/langchaingo/tools/arxiv"

DefaultUserAgent defines a default value for user-agent header.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	CallbacksHandler callbacks.Handler
	// contains filtered or unexported fields
}

Tool defines a tool implementation for the arXiv Search.

func New

func New(maxResults int, userAgent string) (*Tool, error)

New initializes a new arXiv Search tool with arguments for setting a max results per search query and a value for the user agent header.

func (Tool) Call

func (t Tool) Call(ctx context.Context, input string) (string, error)

Call performs the search and return the result.

func (Tool) Description

func (t Tool) Description() string

Description returns a description for the tool.

func (Tool) Name

func (t Tool) Name() string

Name returns a name for the tool.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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