{"modulePath":"github.com/GoCodeAlone/workflow","version":"v0.87.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ai\n\nPackage 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.\n\n## Types\n\n```go\ntype Plugin struct {\n\tpluginPkg.BaseEnginePlugin\n\t// contains filtered or unexported fields\n}\n```\nPlugin registers AI step factories, dynamic.component module factory, and the sub\\_workflow step factory.\n\n```go\nfunc New() *Plugin\n```\nNew creates a new AI plugin. Pass nil for any optional registries; the plugin will create defaults where needed.\n\n```go\nfunc (p *Plugin) Capabilities() []capability.Contract\n```\nCapabilities returns the capability contracts defined by this plugin.\n\n```go\nfunc (p *Plugin) ModuleFactories() map[string]pluginPkg.ModuleFactory\n```\nModuleFactories returns module factories for the dynamic.component type.\n\n```go\nfunc (p *Plugin) SetAIRegistry(reg *aiPkg.AIModelRegistry)\n```\nSetAIRegistry sets a custom AI model registry (for sharing with other services).\n\n```go\nfunc (p *Plugin) SetDynamicLoader(loader *dynamic.Loader)\n```\nSetDynamicLoader sets the dynamic loader for loading components from source files.\n\n```go\nfunc (p *Plugin) SetDynamicRegistry(reg *dynamic.ComponentRegistry)\n```\nSetDynamicRegistry sets the dynamic component registry for dynamic.component modules.\n\n```go\nfunc (p *Plugin) SetWorkflowRegistry(reg *pluginPkg.PluginWorkflowRegistry)\n```\nSetWorkflowRegistry sets the plugin workflow registry for sub\\_workflow steps.\n\n```go\nfunc (p *Plugin) StepFactories() map[string]pluginPkg.StepFactory\n```\nStepFactories returns step factories for AI steps and sub\\_workflow.\n\n","path":"github.com/GoCodeAlone/workflow/plugins/ai","name":"ai","synopsis":"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.","isRedistributable":true}
