Documentation
¶
Overview ¶
Package tool_def_pruner removes tool definitions from outgoing LLMRequest.Tools when those tools have been idle past a turn threshold. Pairs with nexus.discovery.progressive: progressive scopes by class; this plugin scopes per individual tool.
Runs at priority 14 on before:llm.request — after both progressive (8) and tool_result_clear (12) have shaped the request. Idle tools are surfaced as MemoryToolDefPruned events; they reappear automatically next turn if the agent invokes them via discover or any other path, since this plugin observes tool.invoke and resets the last-used counter.
Index ¶
- func New() engine.Plugin
- type Plugin
- func (p *Plugin) Capabilities() []engine.Capability
- func (p *Plugin) ConfigSchema() []byte
- func (p *Plugin) Dependencies() []string
- func (p *Plugin) Emissions() []string
- func (p *Plugin) ID() string
- func (p *Plugin) Init(ctx engine.PluginContext) error
- func (p *Plugin) Name() string
- func (p *Plugin) Ready() error
- func (p *Plugin) Requires() []engine.Requirement
- func (p *Plugin) Shutdown(_ context.Context) error
- func (p *Plugin) Subscriptions() []engine.EventSubscription
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin tracks per-tool last-used turn and prunes idle definitions.
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []engine.Capability
func (*Plugin) ConfigSchema ¶
ConfigSchema implements engine.ConfigSchemaProvider.
func (*Plugin) Dependencies ¶
func (*Plugin) Requires ¶
func (p *Plugin) Requires() []engine.Requirement
func (*Plugin) Subscriptions ¶
func (p *Plugin) Subscriptions() []engine.EventSubscription