tool_docs_llm

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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