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 (*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执行器
Click to show internal directories.
Click to hide internal directories.