advisortool

package
v0.260806.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MPL-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 Provider

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

Provider implements servertool.ToolProvider for the built-in advisor virtual tool.

func NewProvider

func NewProvider(cfg typ.AdvisorConfig, cp *client.ClientPool, store *mcpruntime.SessionStore) Provider

NewProvider constructs an advisor servertool provider. cp and store may be nil in tests.

func (Provider) Descriptor

func (p Provider) Descriptor() coretool.VirtualTool

Descriptor returns the VirtualTool definition for the advisor.

func (Provider) Hook

func (p Provider) Hook() servertool.Hook

Hook returns the AdvisorHook that injects AdvisorContext before each call.

Jump to

Keyboard shortcuts

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