schema

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph added in v0.39.0

type Graph struct {
	Producers map[string]Producer   `json:"producers"`
	Nodes     map[string]Node       `json:"nodes"`
	Notes     map[string]any        `json:"notes"`
	Variables NestedGroup[Variable] `json:"variables,omitempty"`
	Profiles  []string              `json:"profiles,omitempty"`
	SubGraphs map[string]SubGraph   `json:"subGraphs,omitempty"`
}

type GraphExecutionReport added in v0.32.0

type GraphExecutionReport struct {
	Nodes map[string]NodeExecutionReport `json:"nodes"`
}

type NestedGroup added in v0.28.0

type NestedGroup[T any] struct {
	Variables map[string]T              `json:"variables"`
	SubGroups map[string]NestedGroup[T] `json:"subgroups"`
}

func (NestedGroup[T]) Traverse added in v0.28.0

func (vg NestedGroup[T]) Traverse(f func(path string, variable T) bool)

type Node added in v0.39.0

type Node struct {
	Type          string                    `json:"type"`
	Name          string                    `json:"name"`
	AssignedInput map[string]PortReference  `json:"assignedInput"`
	Output        map[string]NodeOutputPort `json:"output"`

	Parameter Parameter      `json:"parameter,omitempty"`
	Variable  any            `json:"variable,omitempty"`
	Metadata  map[string]any `json:"metadata,omitempty"`

	SubGraphInputBoundary  *SubGraphPortBoundary `json:"subGraphInputBoundary,omitempty"`
	SubGraphOutputBoundary *SubGraphPortBoundary `json:"subGraphOutputBoundary,omitempty"`
	SubGraphId             string                `json:"subGraphId,omitempty"`
}

type NodeExecutionReport added in v0.32.0

type NodeExecutionReport struct {
	Output map[string]nodes.ExecutionReport `json:"output"`
}

type NodeOutputPort added in v0.39.0

type NodeOutputPort struct {
	Version int `json:"version"`
}

type NodeType

type NodeType struct {
	DisplayName string                    `json:"displayName"`
	Info        string                    `json:"info"`
	Type        string                    `json:"type"`
	Path        string                    `json:"path"`
	Outputs     map[string]NodeTypeOutput `json:"outputs,omitempty"`
	Inputs      map[string]NodeTypeInput  `json:"inputs,omitempty"`
	Parameter   Parameter                 `json:"parameter,omitempty"`
}

type NodeTypeInput added in v0.39.0

type NodeTypeInput struct {
	Type        string `json:"type"`
	IsArray     bool   `json:"isArray"`
	Description string `json:"description,omitempty"`
}

type NodeTypeOutput added in v0.39.0

type NodeTypeOutput struct {
	Type        string `json:"type"`
	Description string `json:"description,omitempty"`
}

type Parameter

type Parameter interface {
	ValueType() string
	DisplayName() string
}

type ParameterBase

type ParameterBase struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

func (ParameterBase) DisplayName

func (pb ParameterBase) DisplayName() string

func (ParameterBase) ValueType

func (pb ParameterBase) ValueType() string

type PortReference added in v0.23.0

type PortReference struct {
	NodeId   string `json:"id"`
	PortName string `json:"port"`
}

type Producer

type Producer struct {
	NodeID string `json:"nodeID"`
	Port   string `json:"port"` // Name of node out port
}

type SubGraph added in v0.39.0

type SubGraph struct {
	Nodes map[string]Node `json:"nodes"`
	Notes map[string]any  `json:"notes,omitempty"`
}

type SubGraphPortBoundary added in v0.39.0

type SubGraphPortBoundary struct {
	PortName string `json:"portName"`
	PortType string `json:"portType"`
}

type Variable added in v0.39.0

type Variable struct {
	Description string `json:"description"`
	Type        string `json:"type"`
	Value       any    `json:"value"`
}

Jump to

Keyboard shortcuts

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