builtin_tool

package
v1.833.91 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 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

This section is empty.

Types

type BuiltinTool

type BuiltinTool interface {
	GetName() string
	GetDescription() string
	GetInputSchema() interface{}
	Execute(ctx context.Context, arguments map[string]interface{}) (*protocol.CallToolResult, error)
}

type ToolRegistry

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

func NewToolRegistry

func NewToolRegistry() *ToolRegistry

func (*ToolRegistry) ExecuteTool

func (r *ToolRegistry) ExecuteTool(ctx context.Context, name string, arguments map[string]interface{}) (*protocol.CallToolResult, error)

func (*ToolRegistry) GetAllTools

func (r *ToolRegistry) GetAllTools() map[string]BuiltinTool

func (*ToolRegistry) GetTool

func (r *ToolRegistry) GetTool(name string) (BuiltinTool, bool)

func (*ToolRegistry) GetToolsAsProtocolTools

func (r *ToolRegistry) GetToolsAsProtocolTools() []*protocol.Tool

func (*ToolRegistry) RegisterTool

func (r *ToolRegistry) RegisterTool(tool BuiltinTool)

Directories

Path Synopsis
Package webtools gives every Responses-API agent the three capabilities the platform already serves and no agent could reach: web search, page fetch, and deep research.
Package webtools gives every Responses-API agent the three capabilities the platform already serves and no agent could reach: web search, page fetch, and deep research.

Jump to

Keyboard shortcuts

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