builtin_tool

package
v1.783.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

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