graphx

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package graphx 从 workflow.Graph 抽取各域(图/视频/音频)共用字段。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AudioInstructions

func AudioInstructions(graph workflow.Graph) (string, bool)

func AudioLanguageType

func AudioLanguageType(graph workflow.Graph) (string, bool)

func AudioOptimizeInstructions

func AudioOptimizeInstructions(graph workflow.Graph) (bool, bool)

func AudioVoice

func AudioVoice(graph workflow.Graph) (string, bool)

func BoolOption

func BoolOption(graph workflow.Graph, keys ...string) (bool, bool)

func DeriveResolution

func DeriveResolution(graph workflow.Graph) (string, bool)

func ImageURLs

func ImageURLs(graph workflow.Graph) []string

func IntOption

func IntOption(graph workflow.Graph, keys ...string) (int, bool)

func MediaURLs

func MediaURLs(graph workflow.Graph) []string

func Prompt

func Prompt(graph workflow.Graph) (string, error)

func Resolution

func Resolution(graph workflow.Graph) (string, bool)

func Size

func Size(graph workflow.Graph, fallback string) string

func StringOption

func StringOption(graph workflow.Graph, keys ...string) (string, bool)

func VideoEditMedia

func VideoEditMedia(graph workflow.Graph) []map[string]any

func VoiceDesignFields

func VoiceDesignFields(graph workflow.Graph) (voicePrompt, previewText, targetModel string, err error)

func VoiceDesignLanguage

func VoiceDesignLanguage(graph workflow.Graph) (string, bool)

func VoiceDesignOmitPreview

func VoiceDesignOmitPreview(graph workflow.Graph) bool

func VoiceDesignPreferredName

func VoiceDesignPreferredName(graph workflow.Graph) (string, bool)

func VoiceDesignResponseFormat

func VoiceDesignResponseFormat(graph workflow.Graph) (string, bool)

func VoiceDesignSampleRate

func VoiceDesignSampleRate(graph workflow.Graph) (int, bool)

func WidthHeightSize

func WidthHeightSize(graph workflow.Graph) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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