agent_tools

package
v0.0.0-...-52c304b Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToolManager

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

ToolManager 工具管理器

func NewToolManager

func NewToolManager() *ToolManager

NewToolManager 创建工具管理器

func (*ToolManager) ExecuteTool

func (tm *ToolManager) ExecuteTool(
	ctx context.Context,
	toolName string,
	params map[string]interface{},
) (*schema.ToolResult, error)

ExecuteTool 执行工具(统一入口)

func (*ToolManager) GetMCPExecutor

func (tm *ToolManager) GetMCPExecutor() *mcp.MCPToolCaller

GetMCPExecutor 获取 MCP 执行器(用于访问 MCP 客户端)

func (*ToolManager) SetMCPExecutor

func (tm *ToolManager) SetMCPExecutor(ctx context.Context) (*mcp.MCPToolCaller, error)

SetMCPExecutor 设置MCP执行器

Directories

Path Synopsis
mcp

Jump to

Keyboard shortcuts

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