workflow

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Id           string
	Title        string
	Desc         string
	InputSchema  []types.FormField
	OutputSchema []types.FormField
	Run          func(ctx types.Context, input types.KV) (types.KV, error)
}

type Ruleset

type Ruleset []Rule

func (Ruleset) ProcessRule

func (r Ruleset) ProcessRule(ctx types.Context, input types.KV) (types.KV, error)

ProcessRule processes a specific rule within the Ruleset based on the provided context and input. It returns the result of the rule execution or an error if the execution fails or times out.

Jump to

Keyboard shortcuts

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