workflow

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(reg *nodes.NodeRegistry) *Builder

func (*Builder) Build

Build 构建DAG

func (*Builder) GetRegister

func (b *Builder) GetRegister() *nodes.NodeRegistry

type CompiledWorkflow

type CompiledWorkflow struct {
	// contains filtered or unexported fields
}

func (CompiledWorkflow) Graph

func (c CompiledWorkflow) Graph() *graph.Graph

func (CompiledWorkflow) Name

func (c CompiledWorkflow) Name() string

func (*CompiledWorkflow) NodeList

func (c *CompiledWorkflow) NodeList() []nodes.Node

func (CompiledWorkflow) Nodes

func (c CompiledWorkflow) Nodes() map[string]nodes.Node

func (CompiledWorkflow) Order

func (c CompiledWorkflow) Order() []string

func (*CompiledWorkflow) Source

type Workflow

type Workflow interface {
	Name() string                           // 工作流名称
	Nodes() map[string]nodes.Node           // 所有节点map
	Graph() *graph.Graph                    // DAG 的基础结构
	Order() []string                        // 拓扑排序结果(Topological Order)
	Source() *definition.WorkflowDefinition // 源工作流定义
}

Workflow AI 工作流协议

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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