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.
Click to show internal directories.
Click to hide internal directories.