tool_docs_llm

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocsLLM

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

func NewDocsLLM

func NewDocsLLM(docsFetcher LLMDocsResourcesFetcher, disableResources bool) *DocsLLM

NewDocsLLM creates a new instance of the DocsLLM tool.

func (*DocsLLM) Handler

func (t *DocsLLM) Handler() mcp.ToolHandlerFor[Input, *Output]

Handler processes tool invocation requests and returns the requested documentation article. It fetches documentation in Markdown format from docs prepared specifically for LLMs.

func (*DocsLLM) Register

func (t *DocsLLM) Register(s *mcp.Server)

Register adds the DocsLLM tool to the provided MCP server instance.

func (*DocsLLM) Tool

func (t *DocsLLM) Tool() *mcp.Tool

Tool returns the mcp.Tool definition for the DocsLLM tool. This defines how the tool is represented in the MCP system.

type Input

type Input struct {
	ArticleURL string `` /* 147-byte string literal not displayed */
}

type LLMDocsResourcesFetcher

type LLMDocsResourcesFetcher interface {
	// FetchLLMDocsResources retrieves documentation content (targeted for LLMs) for a specified article.
	// If the articleURL is empty, the implementation should return the documentation index.
	FetchLLMDocsResources(ctx context.Context, articleURL *string) (*mcp.ReadResourceResult, error)
}

LLMDocsResourcesFetcher defines the interface for retrieving documentation resources targeted for LLMs. Implementations should provide methods to fetch Firebolt documentation.

type Output

type Output struct {
	Articles []mcp.Content `json:"articles"`
}

Jump to

Keyboard shortcuts

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