flows

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFlowActions

func BuildFlowActions(defs []FlowDef, parent func() []action.AnyAction) []action.AnyAction

BuildFlowActions turns FlowDefs into actions. Each flow action reads its own DSL and pipelines on every call and runs them against a per-call snapshot of the parent registry.

func BuildFlowMetaTools

func BuildFlowMetaTools(defs []FlowDef, flowActions map[string]action.AnyAction) []action.AnyAction

BuildFlowMetaTools returns flow.list, flow.inspect, and flow.run.

Types

type FlowDef

type FlowDef struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	Path        string `json:"path"`
}

FlowDef describes one .flow file that declared itself an action via @action.

func ScanFlowsFolder

func ScanFlowsFolder(root string) ([]FlowDef, error)

ScanFlowsFolder walks root recursively and returns every *.flow file that declares @action. Files without @action are ignored.

Jump to

Keyboard shortcuts

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