tools

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MCPToolManager

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

MCPToolManager manages MCP tools and clients

func NewMCPToolManager

func NewMCPToolManager() *MCPToolManager

NewMCPToolManager creates a new MCP tool manager

func (*MCPToolManager) Close

func (m *MCPToolManager) Close() error

Close closes all MCP clients

func (*MCPToolManager) GetTools

func (m *MCPToolManager) GetTools() []tool.BaseTool

GetTools returns all loaded tools

func (*MCPToolManager) LoadTools

func (m *MCPToolManager) LoadTools(ctx context.Context, config *config.Config) error

LoadTools loads tools from MCP servers based on configuration

type PrefixedTool added in v0.11.2

type PrefixedTool struct {
	tool.InvokableTool
	// contains filtered or unexported fields
}

PrefixedTool wraps an eino tool to add a server prefix to its name

func (*PrefixedTool) Info added in v0.11.2

func (p *PrefixedTool) Info(ctx context.Context) (*schema.ToolInfo, error)

Info returns the tool information with prefixed name

Jump to

Keyboard shortcuts

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