Documentation
¶
Index ¶
- func BoolOption(g workflow.Graph, keys ...string) (bool, bool)
- func ExtractPrompt(g workflow.Graph) (string, error)
- func Float64Option(g workflow.Graph, keys ...string) (float64, bool)
- func IntOption(g workflow.Graph, keys ...string) (int, bool)
- func MergeJSONOption(g workflow.Graph, dst map[string]any, keys ...string)
- func NormalizeOpenAIImageSize(width, height int) string
- func ResolveLinkString(g workflow.Graph, ref []any, seen map[string]bool) (string, bool, error)
- func ResolveNodeString(g workflow.Graph, nodeID string, seen map[string]bool) (string, bool, error)
- func ResolveValueString(g workflow.Graph, value any, seen map[string]bool) (string, bool, error)
- func StringOption(g workflow.Graph, keys ...string) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPrompt ¶ added in v0.9.0
ExtractPrompt extracts a text prompt from the workflow graph. It first checks CLIPTextEncode nodes (with link resolution), then falls back to common option keys: "prompt", "text", "value".
func MergeJSONOption ¶ added in v0.9.0
MergeJSONOption searches for JSON-string inputs in the graph under the given keys and merges them into dst.
func ResolveLinkString ¶
func ResolveNodeString ¶
func ResolveValueString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.