Help us shape the future of Go! Take the 2026 Go Developer Survey

ai

package
v0.87.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 7 Imported by: 0

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

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

func (p *Plugin) SetDynamicLoader(loader *dynamic.Loader)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL