Documentation
¶
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 manages subagent spawning and lifecycle.
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []engine.Capability
func (*Plugin) ConfigSchema ¶
ConfigSchema implements engine.ConfigSchemaProvider.
func (*Plugin) Dependencies ¶
Dependencies returns no plugins. Earlier versions of this plugin declared a dependency on nexus.agent.react, but the runSubagent loop manages its own LLM + tool dispatch directly via bus subscriptions — react is never called into. The vestigial dep caused a real bug when the orchestrator (which itself depends on subagent) shipped a config that activated react for the orchestrator agent's parent thread: react's io.input handler raced the orchestrator's, producing duplicate plans + confused output.
Deployments that legitimately want a parent ReAct alongside subagent workers can still include nexus.agent.react in their `plugins.active` list explicitly; that's now an opt-in choice, not a side effect of using subagent.
func (*Plugin) Requires ¶
func (p *Plugin) Requires() []engine.Requirement
Requires auto-activates the shared tool catalog (optional, so a host that deliberately omits it still boots). Besides the registry, the catalog owns the unknown-tool fallback: a hallucinated tool name gets an error tool.result instead of leaving this loop waiting forever.
func (*Plugin) Subscriptions ¶
func (p *Plugin) Subscriptions() []engine.EventSubscription