tool

package
v1.800.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 42 Imported by: 1 module, 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 HandleChromeConnectWebSocket added in v1.789.0

func HandleChromeConnectWebSocket(w http.ResponseWriter, r *http.Request)

Types

type BrowserTool added in v1.783.0

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

BrowserTool is the Tool Type "web_browser".

func NewBrowserTool added in v1.783.0

func NewBrowserTool(config Config) (*BrowserTool, error)

func (*BrowserTool) BuiltinTools added in v1.783.0

func (p *BrowserTool) BuiltinTools() []BuiltinTool

type BrowserUseTool added in v1.783.1

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

BrowserUseTool is the Tool Type "browser_use". It opens a visible, persistent Chromium browser for human-observable web tasks.

func NewBrowserUseTool added in v1.783.1

func NewBrowserUseTool(config Config) (*BrowserUseTool, error)

func (*BrowserUseTool) BuiltinTools added in v1.783.1

func (p *BrowserUseTool) BuiltinTools() []BuiltinTool

type BuiltinTool added in v1.788.0

type BuiltinTool = builtin_tool.BuiltinTool

Type aliases so callers can use tool.BuiltinTool and tool.ToolRegistry without importing the sub-package directly.

type Config added in v1.783.0

type Config struct {
	Type         string
	SubType      string
	ProviderUrl  string
	ClientId     string
	ClientSecret string
	EnableProxy  bool
	Mode         string
}

Config contains the fields needed to construct builtin tools.

type LocalFileTool added in v1.792.0

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

LocalFileTool is the Tool Type "local_file".

func (*LocalFileTool) BuiltinTools added in v1.792.0

func (p *LocalFileTool) BuiltinTools() []BuiltinTool

type OfficeTool added in v1.783.0

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

OfficeTool is the Tool Type "office". It exposes read/write tools for Word (.docx), Excel (.xlsx), and PowerPoint (.pptx). SubType controls which tool(s) are exposed: "All" exposes all six; any specific SubType (e.g. "Word Read") exposes only that single tool.

func (*OfficeTool) BuiltinTools added in v1.783.0

func (p *OfficeTool) BuiltinTools() []BuiltinTool

type ShellTool added in v1.783.0

type ShellTool struct{}

ShellTool is the Tool Type "shell".

func (*ShellTool) BuiltinTools added in v1.783.0

func (p *ShellTool) BuiltinTools() []BuiltinTool

type TimeTool added in v1.783.0

type TimeTool struct{}

TimeTool is the Tool Type "time".

func (*TimeTool) BuiltinTools added in v1.783.0

func (p *TimeTool) BuiltinTools() []BuiltinTool

type Tool added in v1.783.0

type Tool interface {
	BuiltinTools() []BuiltinTool
}

Tool supplies LLM-callable tools.

func New added in v1.783.0

func New(config Config, lang string) (Tool, error)

New instantiates a tool implementation from its type.

type ToolRegistry added in v1.788.0

type ToolRegistry = builtin_tool.ToolRegistry

Type aliases so callers can use tool.BuiltinTool and tool.ToolRegistry without importing the sub-package directly.

func NewToolRegistry added in v1.788.0

func NewToolRegistry() *ToolRegistry

type VideoDownloadTool added in v1.783.0

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

VideoDownloadTool is the Tool Type "video_download".

func NewVideoDownloadTool added in v1.783.1

func NewVideoDownloadTool(_ Config) (*VideoDownloadTool, error)

func (*VideoDownloadTool) BuiltinTools added in v1.783.0

func (p *VideoDownloadTool) BuiltinTools() []BuiltinTool

type WebFetchTool added in v1.783.0

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

WebFetchTool is the Tool Type "web_fetch".

func NewWebFetchTool added in v1.783.0

func NewWebFetchTool(config Config) (*WebFetchTool, error)

func (*WebFetchTool) BuiltinTools added in v1.783.0

func (p *WebFetchTool) BuiltinTools() []BuiltinTool

type WebSearchTool added in v1.783.0

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

WebSearchTool is the Tool Type "web_search" (single web_search tool).

func NewWebSearchTool added in v1.783.0

func NewWebSearchTool(config Config) (*WebSearchTool, error)

func (*WebSearchTool) BuiltinTools added in v1.783.0

func (p *WebSearchTool) BuiltinTools() []BuiltinTool

type WindowsUiaTool added in v1.783.0

type WindowsUiaTool struct{}

WindowsUiaTool implements the Windows UI Automation tool (Type "gui", SubType "Windows UIA").

func NewWindowsUiaTool added in v1.783.0

func NewWindowsUiaTool(_ Config) (*WindowsUiaTool, error)

func (*WindowsUiaTool) BuiltinTools added in v1.783.0

func (t *WindowsUiaTool) BuiltinTools() []BuiltinTool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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