Documentation
¶
Overview ¶
Package tools provides the tools infrastructure for the Cortex MCP platform.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages all available tools
func NewManager ¶
NewManager creates a new tools manager
func (*Manager) GetAllTools ¶
GetAllTools returns all tool definitions from all providers
func (*Manager) RegisterProvider ¶
func (m *Manager) RegisterProvider(provider ToolProvider)
RegisterProvider registers an external tool provider
type ToolProvider ¶
type ToolProvider interface { // RegisterTool registers the tool with the provided registry RegisterTool(registerFunc func(string, func(context.Context, map[string]interface{}, *domain.ClientSession) (interface{}, error))) // GetToolDefinitions returns the tool definitions GetToolDefinitions() []*domain.Tool }
ToolProvider is an interface for a service that provides tools
type ToolRegistry ¶
type ToolRegistry interface {
RegisterToolHandler(name string, handler func(ctx context.Context, params map[string]interface{}, session *domain.ClientSession) (interface{}, error))
}
ToolRegistry provides registration methods for tool handlers
Click to show internal directories.
Click to hide internal directories.