Documentation
¶
Index ¶
- func NewDocsGetTool(baseDir string) (tools.Tool, error)
- func NewDocsSearchTool(baseDir string) (tools.Tool, error)
- type Config
- type DocsGetTool
- func (t *DocsGetTool) Description() string
- func (t *DocsGetTool) Execute(ctx context.Context, input map[string]interface{}, tc *tools.ToolContext) (interface{}, error)
- func (t *DocsGetTool) InputSchema() map[string]interface{}
- func (t *DocsGetTool) Name() string
- func (t *DocsGetTool) Prompt() string
- type DocsSearchTool
- func (t *DocsSearchTool) Description() string
- func (t *DocsSearchTool) Execute(ctx context.Context, input map[string]interface{}, tc *tools.ToolContext) (interface{}, error)
- func (t *DocsSearchTool) InputSchema() map[string]interface{}
- func (t *DocsSearchTool) Name() string
- func (t *DocsSearchTool) Prompt() string
- type DocsToolConfig
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Registry *tools.Registry
Executor *tools.Executor
ContextFactory func(ctx context.Context) *tools.ToolContext
}
Config MCP Server 配置
type DocsGetTool ¶
type DocsGetTool struct {
// contains filtered or unexported fields
}
func (*DocsGetTool) Description ¶
func (t *DocsGetTool) Description() string
func (*DocsGetTool) Execute ¶
func (t *DocsGetTool) Execute(ctx context.Context, input map[string]interface{}, tc *tools.ToolContext) (interface{}, error)
func (*DocsGetTool) InputSchema ¶
func (t *DocsGetTool) InputSchema() map[string]interface{}
func (*DocsGetTool) Name ¶
func (t *DocsGetTool) Name() string
func (*DocsGetTool) Prompt ¶
func (t *DocsGetTool) Prompt() string
type DocsSearchTool ¶
type DocsSearchTool struct {
// contains filtered or unexported fields
}
func (*DocsSearchTool) Description ¶
func (t *DocsSearchTool) Description() string
func (*DocsSearchTool) Execute ¶
func (t *DocsSearchTool) Execute(ctx context.Context, input map[string]interface{}, tc *tools.ToolContext) (interface{}, error)
func (*DocsSearchTool) InputSchema ¶
func (t *DocsSearchTool) InputSchema() map[string]interface{}
func (*DocsSearchTool) Name ¶
func (t *DocsSearchTool) Name() string
func (*DocsSearchTool) Prompt ¶
func (t *DocsSearchTool) Prompt() string
type DocsToolConfig ¶
type DocsToolConfig struct {
BaseDir string
}
DocsToolConfig 配置 docs_get/docs_search 工具
Click to show internal directories.
Click to hide internal directories.