Documentation
¶
Overview ¶
Package ai provides a plugin that registers AI pipeline step types (ai_complete, ai_classify, ai_extract), the dynamic.component module type, and the sub_workflow step.
Index ¶
- type Plugin
- func (p *Plugin) Capabilities() []capability.Contract
- func (p *Plugin) ModuleFactories() map[string]pluginPkg.ModuleFactory
- func (p *Plugin) SetAIRegistry(reg *aiPkg.AIModelRegistry)
- func (p *Plugin) SetDynamicLoader(loader *dynamic.Loader)
- func (p *Plugin) SetDynamicRegistry(reg *dynamic.ComponentRegistry)
- func (p *Plugin) SetWorkflowRegistry(reg *pluginPkg.PluginWorkflowRegistry)
- func (p *Plugin) StepFactories() map[string]pluginPkg.StepFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
pluginPkg.BaseEnginePlugin
// contains filtered or unexported fields
}
Plugin registers AI step factories, dynamic.component module factory, and the sub_workflow step factory.
func New ¶
func New() *Plugin
New creates a new AI plugin. Pass nil for any optional registries; the plugin will create defaults where needed.
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []capability.Contract
Capabilities returns the capability contracts defined by this plugin.
func (*Plugin) ModuleFactories ¶
func (p *Plugin) ModuleFactories() map[string]pluginPkg.ModuleFactory
ModuleFactories returns module factories for the dynamic.component type.
func (*Plugin) SetAIRegistry ¶
func (p *Plugin) SetAIRegistry(reg *aiPkg.AIModelRegistry)
SetAIRegistry sets a custom AI model registry (for sharing with other services).
func (*Plugin) SetDynamicLoader ¶
SetDynamicLoader sets the dynamic loader for loading components from source files.
func (*Plugin) SetDynamicRegistry ¶
func (p *Plugin) SetDynamicRegistry(reg *dynamic.ComponentRegistry)
SetDynamicRegistry sets the dynamic component registry for dynamic.component modules.
func (*Plugin) SetWorkflowRegistry ¶
func (p *Plugin) SetWorkflowRegistry(reg *pluginPkg.PluginWorkflowRegistry)
SetWorkflowRegistry sets the plugin workflow registry for sub_workflow steps.
func (*Plugin) StepFactories ¶
func (p *Plugin) StepFactories() map[string]pluginPkg.StepFactory
StepFactories returns step factories for AI steps and sub_workflow.