workflow

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package workflow provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADCChannel

type ADCChannel struct {
	Id    string         `json:"id"`
	Label string         `json:"label"`
	Type  ADCChannelType `json:"type"`
}

ADCChannel defines model for ADCChannel.

type ADCChannelType

type ADCChannelType string

ADCChannelType defines model for ADCChannel.Type.

const (
	ADC ADCChannelType = "ADC"
)

Defines values for ADCChannelType.

func (ADCChannelType) Valid

func (e ADCChannelType) Valid() bool

Valid indicates whether the value is a known member of the ADCChannelType enum.

type AgentNode

type AgentNode struct {
	Arguments struct {
		Answer       OutputBinding `json:"answer"`
		Instructions *string       `json:"instructions,omitempty"`

		// MaxTurns Maximum number of agent runner turns
		MaxTurns *int `json:"maxTurns,omitempty"`

		// MemoryRefs Memory files this agent can access, each with an access mode.
		MemoryRefs []MemoryRef `json:"memoryRefs"`
		Model      *string     `json:"model,omitempty"`

		// Name Name of the agent
		Name *string `json:"name,omitempty"`

		// OutputDeclarations Ordered list of structured-output declarations. Names must be unique within this list
		OutputDeclarations []OutputDeclaration `json:"outputDeclarations"`

		// ToolDescription Description exposed to the LLM when this node is wired as a tool. Ignored in exec mode.
		ToolDescription *string `json:"toolDescription,omitempty"`
	} `json:"arguments"`
	Id       string        `json:"id"`
	Label    *string       `json:"label,omitempty"`
	Position NodePosition  `json:"position"`
	Type     AgentNodeType `json:"type"`
}

AgentNode defines model for AgentNode.

type AgentNodeType

type AgentNodeType string

AgentNodeType defines model for AgentNode.Type.

const (
	Agent AgentNodeType = "Agent"
)

Defines values for AgentNodeType.

func (AgentNodeType) Valid

func (e AgentNodeType) Valid() bool

Valid indicates whether the value is a known member of the AgentNodeType enum.

type AlarmNode

type AlarmNode struct {
	Arguments struct {
		// Days Days of the week to fire on (empty = every day)
		Days []string `json:"days"`

		// Time Time of day to fire (HH:MM, 24h format)
		Time *string `json:"time,omitempty"`
	} `json:"arguments"`
	Id       string        `json:"id"`
	Label    *string       `json:"label,omitempty"`
	Position NodePosition  `json:"position"`
	Type     AlarmNodeType `json:"type"`
}

AlarmNode defines model for AlarmNode.

type AlarmNodeType

type AlarmNodeType string

AlarmNodeType defines model for AlarmNode.Type.

const (
	Alarm AlarmNodeType = "Alarm"
)

Defines values for AlarmNodeType.

func (AlarmNodeType) Valid

func (e AlarmNodeType) Valid() bool

Valid indicates whether the value is a known member of the AlarmNodeType enum.

type Channel

type Channel struct {
	// contains filtered or unexported fields
}

Channel defines model for Channel.

func (Channel) AsADCChannel

func (t Channel) AsADCChannel() (ADCChannel, error)

AsADCChannel returns the union data inside the Channel as a ADCChannel

func (Channel) AsDACChannel

func (t Channel) AsDACChannel() (DACChannel, error)

AsDACChannel returns the union data inside the Channel as a DACChannel

func (Channel) AsGPIOINChannel

func (t Channel) AsGPIOINChannel() (GPIOINChannel, error)

AsGPIOINChannel returns the union data inside the Channel as a GPIOINChannel

func (Channel) AsGPIOOUTChannel

func (t Channel) AsGPIOOUTChannel() (GPIOOUTChannel, error)

AsGPIOOUTChannel returns the union data inside the Channel as a GPIOOUTChannel

func (Channel) AsMQTTChannel

func (t Channel) AsMQTTChannel() (MQTTChannel, error)

AsMQTTChannel returns the union data inside the Channel as a MQTTChannel

func (Channel) AsPWMChannel

func (t Channel) AsPWMChannel() (PWMChannel, error)

AsPWMChannel returns the union data inside the Channel as a PWMChannel

func (Channel) AsUARTChannel

func (t Channel) AsUARTChannel() (UARTChannel, error)

AsUARTChannel returns the union data inside the Channel as a UARTChannel

func (Channel) Discriminator

func (t Channel) Discriminator() (string, error)

func (*Channel) FromADCChannel

func (t *Channel) FromADCChannel(v ADCChannel) error

FromADCChannel overwrites any union data inside the Channel as the provided ADCChannel

func (*Channel) FromDACChannel

func (t *Channel) FromDACChannel(v DACChannel) error

FromDACChannel overwrites any union data inside the Channel as the provided DACChannel

func (*Channel) FromGPIOINChannel

func (t *Channel) FromGPIOINChannel(v GPIOINChannel) error

FromGPIOINChannel overwrites any union data inside the Channel as the provided GPIOINChannel

func (*Channel) FromGPIOOUTChannel

func (t *Channel) FromGPIOOUTChannel(v GPIOOUTChannel) error

FromGPIOOUTChannel overwrites any union data inside the Channel as the provided GPIOOUTChannel

func (*Channel) FromMQTTChannel

func (t *Channel) FromMQTTChannel(v MQTTChannel) error

FromMQTTChannel overwrites any union data inside the Channel as the provided MQTTChannel

func (*Channel) FromPWMChannel

func (t *Channel) FromPWMChannel(v PWMChannel) error

FromPWMChannel overwrites any union data inside the Channel as the provided PWMChannel

func (*Channel) FromUARTChannel

func (t *Channel) FromUARTChannel(v UARTChannel) error

FromUARTChannel overwrites any union data inside the Channel as the provided UARTChannel

func (Channel) MarshalJSON

func (t Channel) MarshalJSON() ([]byte, error)

func (*Channel) MergeADCChannel

func (t *Channel) MergeADCChannel(v ADCChannel) error

MergeADCChannel performs a merge with any union data inside the Channel, using the provided ADCChannel

func (*Channel) MergeDACChannel

func (t *Channel) MergeDACChannel(v DACChannel) error

MergeDACChannel performs a merge with any union data inside the Channel, using the provided DACChannel

func (*Channel) MergeGPIOINChannel

func (t *Channel) MergeGPIOINChannel(v GPIOINChannel) error

MergeGPIOINChannel performs a merge with any union data inside the Channel, using the provided GPIOINChannel

func (*Channel) MergeGPIOOUTChannel

func (t *Channel) MergeGPIOOUTChannel(v GPIOOUTChannel) error

MergeGPIOOUTChannel performs a merge with any union data inside the Channel, using the provided GPIOOUTChannel

func (*Channel) MergeMQTTChannel

func (t *Channel) MergeMQTTChannel(v MQTTChannel) error

MergeMQTTChannel performs a merge with any union data inside the Channel, using the provided MQTTChannel

func (*Channel) MergePWMChannel

func (t *Channel) MergePWMChannel(v PWMChannel) error

MergePWMChannel performs a merge with any union data inside the Channel, using the provided PWMChannel

func (*Channel) MergeUARTChannel

func (t *Channel) MergeUARTChannel(v UARTChannel) error

MergeUARTChannel performs a merge with any union data inside the Channel, using the provided UARTChannel

func (*Channel) UnmarshalJSON

func (t *Channel) UnmarshalJSON(b []byte) error

func (Channel) ValueByDiscriminator

func (t Channel) ValueByDiscriminator() (interface{}, error)

type DACChannel

type DACChannel struct {
	Id    string         `json:"id"`
	Label string         `json:"label"`
	Type  DACChannelType `json:"type"`
}

DACChannel defines model for DACChannel.

type DACChannelType

type DACChannelType string

DACChannelType defines model for DACChannel.Type.

const (
	DAC DACChannelType = "DAC"
)

Defines values for DACChannelType.

func (DACChannelType) Valid

func (e DACChannelType) Valid() bool

Valid indicates whether the value is a known member of the DACChannelType enum.

type DataType

type DataType string

DataType defines model for DataType.

const (
	Bool   DataType = "bool"
	Float  DataType = "float"
	Int    DataType = "int"
	String DataType = "string"
)

Defines values for DataType.

func (DataType) Valid

func (e DataType) Valid() bool

Valid indicates whether the value is a known member of the DataType enum.

type DelayNode

type DelayNode struct {
	Arguments struct {
		// DelayMs Time in milliseconds to pause execution
		DelayMs *int `json:"delayMs,omitempty"`
	} `json:"arguments"`
	Id       string        `json:"id"`
	Label    *string       `json:"label,omitempty"`
	Position NodePosition  `json:"position"`
	Type     DelayNodeType `json:"type"`
}

DelayNode defines model for DelayNode.

type DelayNodeType

type DelayNodeType string

DelayNodeType defines model for DelayNode.Type.

const (
	Delay DelayNodeType = "Delay"
)

Defines values for DelayNodeType.

func (DelayNodeType) Valid

func (e DelayNodeType) Valid() bool

Valid indicates whether the value is a known member of the DelayNodeType enum.

type Edge

type Edge struct {
	// Description LLM-readable explanation of when the edge should fire. Present on `agentChoice` and `agentDelegate`.
	Description *string     `json:"description,omitempty"`
	From        Vertex      `json:"from"`
	Id          string      `json:"id"`
	Prompt      *Expression `json:"prompt,omitempty"`
	To          Vertex      `json:"to"`
	Type        EdgeType    `json:"type"`
}

Edge defines model for Edge.

type EdgeType

type EdgeType string

EdgeType defines model for EdgeType.

const (
	AgentChoice   EdgeType = "agentChoice"
	AgentDelegate EdgeType = "agentDelegate"
	AgentTask     EdgeType = "agentTask"
	Control       EdgeType = "control"
	Tool          EdgeType = "tool"
)

Defines values for EdgeType.

func (EdgeType) Valid

func (e EdgeType) Valid() bool

Valid indicates whether the value is a known member of the EdgeType enum.

type Expression

type Expression struct {
	DataType   DataType `json:"dataType"`
	Expression string   `json:"expression"`

	// References A list of referenced variable IDs used in the expression
	References []Reference `json:"references"`
}

Expression defines model for Expression.

type Function

type Function struct {
	DeclaredVariables []Variable   `json:"declaredVariables"`
	Edges             []Edge       `json:"edges"`
	FunctionInfo      FunctionInfo `json:"functionInfo"`
	Nodes             []Node       `json:"nodes"`

	// OutputAssignments Maps return variable uid to its Expression
	OutputAssignments map[string]Expression `json:"outputAssignments"`
}

Function defines model for Function.

type FunctionCallNode

type FunctionCallNode struct {
	Arguments struct {
		InputBindings  *map[string]Expression    `json:"inputBindings,omitempty"`
		OutputBindings *map[string]OutputBinding `json:"outputBindings,omitempty"`

		// ToolDescription Description exposed to the LLM when this function is wired as a tool. Ignored in exec mode.
		ToolDescription *string `json:"toolDescription,omitempty"`
	} `json:"arguments"`

	// FunctionId Id of the function this node calls. The signature is resolved from the workflow's functions table.
	FunctionId string               `json:"functionId"`
	Id         string               `json:"id"`
	Label      *string              `json:"label,omitempty"`
	Position   NodePosition         `json:"position"`
	Type       FunctionCallNodeType `json:"type"`
}

FunctionCallNode defines model for FunctionCallNode.

type FunctionCallNodeType

type FunctionCallNodeType string

FunctionCallNodeType defines model for FunctionCallNode.Type.

const (
	FunctionCallNodeTypeFunctionCall FunctionCallNodeType = "FunctionCall"
)

Defines values for FunctionCallNodeType.

func (FunctionCallNodeType) Valid

func (e FunctionCallNodeType) Valid() bool

Valid indicates whether the value is a known member of the FunctionCallNodeType enum.

type FunctionInfo

type FunctionInfo struct {
	Arguments []Variable `json:"arguments"`
	Id        string     `json:"id"`
	Name      string     `json:"name"`
	Returns   []Variable `json:"returns"`
	Version   int32      `json:"version"`
}

FunctionInfo defines model for FunctionInfo.

type GPIOINChannel

type GPIOINChannel struct {
	// Bias Pin bias configuration
	Bias GPIOINChannelBias `json:"bias"`

	// DebounceMs Debounce window in milliseconds
	DebounceMs int               `json:"debounceMs"`
	Id         string            `json:"id"`
	Label      string            `json:"label"`
	Type       GPIOINChannelType `json:"type"`
}

GPIOINChannel defines model for GPIOINChannel.

type GPIOINChannelBias

type GPIOINChannelBias string

GPIOINChannelBias Pin bias configuration

const (
	None     GPIOINChannelBias = "none"
	Pulldown GPIOINChannelBias = "pulldown"
	Pullup   GPIOINChannelBias = "pullup"
)

Defines values for GPIOINChannelBias.

func (GPIOINChannelBias) Valid

func (e GPIOINChannelBias) Valid() bool

Valid indicates whether the value is a known member of the GPIOINChannelBias enum.

type GPIOINChannelType

type GPIOINChannelType string

GPIOINChannelType defines model for GPIOINChannel.Type.

const (
	GPIOIN GPIOINChannelType = "GPIOIN"
)

Defines values for GPIOINChannelType.

func (GPIOINChannelType) Valid

func (e GPIOINChannelType) Valid() bool

Valid indicates whether the value is a known member of the GPIOINChannelType enum.

type GPIOOUTChannel

type GPIOOUTChannel struct {
	Id    string             `json:"id"`
	Label string             `json:"label"`
	Type  GPIOOUTChannelType `json:"type"`
}

GPIOOUTChannel defines model for GPIOOUTChannel.

type GPIOOUTChannelType

type GPIOOUTChannelType string

GPIOOUTChannelType defines model for GPIOOUTChannel.Type.

const (
	GPIOOUT GPIOOUTChannelType = "GPIOOUT"
)

Defines values for GPIOOUTChannelType.

func (GPIOOUTChannelType) Valid

func (e GPIOOUTChannelType) Valid() bool

Valid indicates whether the value is a known member of the GPIOOUTChannelType enum.

type IfNode

type IfNode struct {
	Arguments struct {
		Condition Expression `json:"condition"`
	} `json:"arguments"`
	Id       string       `json:"id"`
	Label    *string      `json:"label,omitempty"`
	Position NodePosition `json:"position"`
	Type     IfNodeType   `json:"type"`
}

IfNode defines model for IfNode.

type IfNodeType

type IfNodeType string

IfNodeType defines model for IfNode.Type.

const (
	If IfNodeType = "If"
)

Defines values for IfNodeType.

func (IfNodeType) Valid

func (e IfNodeType) Valid() bool

Valid indicates whether the value is a known member of the IfNodeType enum.

type LLMModel

type LLMModel struct {
	// Capabilities Capabilities this model supports (used to filter model pickers).
	Capabilities []ModelCapability `json:"capabilities"`

	// Id Stable identifier; this is the ModelID nodes reference.
	Id string `json:"id"`

	// Label Display name.
	Label string       `json:"label"`
	Type  LLMModelType `json:"type"`
}

LLMModel A custom or self-hosted language model that agent nodes can reference.

type LLMModelType

type LLMModelType string

LLMModelType defines model for LLMModel.Type.

const (
	LLMModelTypeLLMModel LLMModelType = "LLMModel"
)

Defines values for LLMModelType.

func (LLMModelType) Valid

func (e LLMModelType) Valid() bool

Valid indicates whether the value is a known member of the LLMModelType enum.

type MQTTChannel

type MQTTChannel struct {
	Id    string `json:"id"`
	Label string `json:"label"`

	// Topic Topic this channel publishes to / subscribes on. The engine wraps it with the bound broker's prefix at runtime.
	Topic string          `json:"topic"`
	Type  MQTTChannelType `json:"type"`
}

MQTTChannel defines model for MQTTChannel.

type MQTTChannelType

type MQTTChannelType string

MQTTChannelType defines model for MQTTChannel.Type.

const (
	MQTT MQTTChannelType = "MQTT"
)

Defines values for MQTTChannelType.

func (MQTTChannelType) Valid

func (e MQTTChannelType) Valid() bool

Valid indicates whether the value is a known member of the MQTTChannelType enum.

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

Memory defines model for Memory.

func (Memory) AsMemoryFile

func (t Memory) AsMemoryFile() (MemoryFile, error)

AsMemoryFile returns the union data inside the Memory as a MemoryFile

func (Memory) AsVectorDatabase

func (t Memory) AsVectorDatabase() (VectorDatabase, error)

AsVectorDatabase returns the union data inside the Memory as a VectorDatabase

func (Memory) Discriminator

func (t Memory) Discriminator() (string, error)

func (*Memory) FromMemoryFile

func (t *Memory) FromMemoryFile(v MemoryFile) error

FromMemoryFile overwrites any union data inside the Memory as the provided MemoryFile

func (*Memory) FromVectorDatabase

func (t *Memory) FromVectorDatabase(v VectorDatabase) error

FromVectorDatabase overwrites any union data inside the Memory as the provided VectorDatabase

func (Memory) MarshalJSON

func (t Memory) MarshalJSON() ([]byte, error)

func (*Memory) MergeMemoryFile

func (t *Memory) MergeMemoryFile(v MemoryFile) error

MergeMemoryFile performs a merge with any union data inside the Memory, using the provided MemoryFile

func (*Memory) MergeVectorDatabase

func (t *Memory) MergeVectorDatabase(v VectorDatabase) error

MergeVectorDatabase performs a merge with any union data inside the Memory, using the provided VectorDatabase

func (*Memory) UnmarshalJSON

func (t *Memory) UnmarshalJSON(b []byte) error

func (Memory) ValueByDiscriminator

func (t Memory) ValueByDiscriminator() (interface{}, error)

type MemoryFile

type MemoryFile struct {
	Content     string `json:"content"`
	Description string `json:"description"`

	// Id Stable identifier that survives renames; referenced from MemoryRef.
	Id string `json:"id"`

	// Label Display name. Unique per agent (LLM tool enums use it).
	Label string `json:"label"`

	// MaxSizeBytes Byte cap; null means unlimited.
	MaxSizeBytes *int           `json:"maxSizeBytes,omitempty"`
	Type         MemoryFileType `json:"type"`
}

MemoryFile One .md file that agent nodes can read and write to.

type MemoryFileType

type MemoryFileType string

MemoryFileType defines model for MemoryFile.Type.

const (
	MemoryFileTypeMemoryFile MemoryFileType = "MemoryFile"
)

Defines values for MemoryFileType.

func (MemoryFileType) Valid

func (e MemoryFileType) Valid() bool

Valid indicates whether the value is a known member of the MemoryFileType enum.

type MemoryRef

type MemoryRef struct {
	// Id id of the referenced MemoryFile.
	Id string `json:"id"`

	// Mode r = read-only; rw = read + write.
	Mode MemoryRefMode `json:"mode"`
}

MemoryRef Reference from an LLM agent node to a declared MemoryFile with an access mode.

type MemoryRefMode

type MemoryRefMode string

MemoryRefMode r = read-only; rw = read + write.

const (
	R  MemoryRefMode = "r"
	Rw MemoryRefMode = "rw"
)

Defines values for MemoryRefMode.

func (MemoryRefMode) Valid

func (e MemoryRefMode) Valid() bool

Valid indicates whether the value is a known member of the MemoryRefMode enum.

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model defines model for Model.

func (Model) AsLLMModel

func (t Model) AsLLMModel() (LLMModel, error)

AsLLMModel returns the union data inside the Model as a LLMModel

func (Model) Discriminator

func (t Model) Discriminator() (string, error)

func (*Model) FromLLMModel

func (t *Model) FromLLMModel(v LLMModel) error

FromLLMModel overwrites any union data inside the Model as the provided LLMModel

func (Model) MarshalJSON

func (t Model) MarshalJSON() ([]byte, error)

func (*Model) MergeLLMModel

func (t *Model) MergeLLMModel(v LLMModel) error

MergeLLMModel performs a merge with any union data inside the Model, using the provided LLMModel

func (*Model) UnmarshalJSON

func (t *Model) UnmarshalJSON(b []byte) error

func (Model) ValueByDiscriminator

func (t Model) ValueByDiscriminator() (interface{}, error)

type ModelCapability

type ModelCapability string

ModelCapability defines model for ModelCapability.

const (
	ModelCapabilityChat           ModelCapability = "chat"
	ModelCapabilityClassification ModelCapability = "classification"
	ModelCapabilityCode           ModelCapability = "code"
	ModelCapabilityEmbedding      ModelCapability = "embedding"
	ModelCapabilityFineTuning     ModelCapability = "fine_tuning"
	ModelCapabilityFunctionCall   ModelCapability = "function_call"
	ModelCapabilityReasoning      ModelCapability = "reasoning"
	ModelCapabilityVision         ModelCapability = "vision"
)

Defines values for ModelCapability.

func (ModelCapability) Valid

func (e ModelCapability) Valid() bool

Valid indicates whether the value is a known member of the ModelCapability enum.

type MqttPublishNode

type MqttPublishNode struct {
	Arguments struct {
		// ChannelReference Reference to an MQTT channel ID (the channel carries the topic; resolved to a broker at deploy time)
		ChannelReference *string  `json:"channelReference,omitempty"`
		DataType         DataType `json:"dataType"`

		// Qos MQTT Quality of Service level
		Qos MqttPublishNodeArgumentsQos `json:"qos"`

		// Retain Whether the broker should retain the message
		Retain bool       `json:"retain"`
		Value  Expression `json:"value"`
	} `json:"arguments"`
	Id       string              `json:"id"`
	Label    *string             `json:"label,omitempty"`
	Position NodePosition        `json:"position"`
	Type     MqttPublishNodeType `json:"type"`
}

MqttPublishNode defines model for MqttPublishNode.

type MqttPublishNodeArgumentsQos

type MqttPublishNodeArgumentsQos int

MqttPublishNodeArgumentsQos MQTT Quality of Service level

Defines values for MqttPublishNodeArgumentsQos.

func (MqttPublishNodeArgumentsQos) Valid

Valid indicates whether the value is a known member of the MqttPublishNodeArgumentsQos enum.

type MqttPublishNodeType

type MqttPublishNodeType string

MqttPublishNodeType defines model for MqttPublishNode.Type.

const (
	MqttPublish MqttPublishNodeType = "MqttPublish"
)

Defines values for MqttPublishNodeType.

func (MqttPublishNodeType) Valid

func (e MqttPublishNodeType) Valid() bool

Valid indicates whether the value is a known member of the MqttPublishNodeType enum.

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node defines model for Node.

func (Node) AsAgentNode

func (t Node) AsAgentNode() (AgentNode, error)

AsAgentNode returns the union data inside the Node as a AgentNode

func (Node) AsAlarmNode

func (t Node) AsAlarmNode() (AlarmNode, error)

AsAlarmNode returns the union data inside the Node as a AlarmNode

func (Node) AsDelayNode

func (t Node) AsDelayNode() (DelayNode, error)

AsDelayNode returns the union data inside the Node as a DelayNode

func (Node) AsFunctionCallNode

func (t Node) AsFunctionCallNode() (FunctionCallNode, error)

AsFunctionCallNode returns the union data inside the Node as a FunctionCallNode

func (Node) AsIfNode

func (t Node) AsIfNode() (IfNode, error)

AsIfNode returns the union data inside the Node as a IfNode

func (Node) AsMqttPublishNode

func (t Node) AsMqttPublishNode() (MqttPublishNode, error)

AsMqttPublishNode returns the union data inside the Node as a MqttPublishNode

func (Node) AsOnFunctionCallNode

func (t Node) AsOnFunctionCallNode() (OnFunctionCallNode, error)

AsOnFunctionCallNode returns the union data inside the Node as a OnFunctionCallNode

func (Node) AsOnMqttMessageNode

func (t Node) AsOnMqttMessageNode() (OnMqttMessageNode, error)

AsOnMqttMessageNode returns the union data inside the Node as a OnMqttMessageNode

func (Node) AsOnPinEdgeNode

func (t Node) AsOnPinEdgeNode() (OnPinEdgeNode, error)

AsOnPinEdgeNode returns the union data inside the Node as a OnPinEdgeNode

func (Node) AsOnSerialReceiveNode

func (t Node) AsOnSerialReceiveNode() (OnSerialReceiveNode, error)

AsOnSerialReceiveNode returns the union data inside the Node as a OnSerialReceiveNode

func (Node) AsOnStartupNode

func (t Node) AsOnStartupNode() (OnStartupNode, error)

AsOnStartupNode returns the union data inside the Node as a OnStartupNode

func (Node) AsOnThresholdNode

func (t Node) AsOnThresholdNode() (OnThresholdNode, error)

AsOnThresholdNode returns the union data inside the Node as a OnThresholdNode

func (Node) AsReadPinNode

func (t Node) AsReadPinNode() (ReadPinNode, error)

AsReadPinNode returns the union data inside the Node as a ReadPinNode

func (Node) AsRetrieverNode

func (t Node) AsRetrieverNode() (RetrieverNode, error)

AsRetrieverNode returns the union data inside the Node as a RetrieverNode

func (Node) AsSerialReadNode

func (t Node) AsSerialReadNode() (SerialReadNode, error)

AsSerialReadNode returns the union data inside the Node as a SerialReadNode

func (Node) AsSerialWriteNode

func (t Node) AsSerialWriteNode() (SerialWriteNode, error)

AsSerialWriteNode returns the union data inside the Node as a SerialWriteNode

func (Node) AsSetVariableNode

func (t Node) AsSetVariableNode() (SetVariableNode, error)

AsSetVariableNode returns the union data inside the Node as a SetVariableNode

func (Node) AsTickerNode

func (t Node) AsTickerNode() (TickerNode, error)

AsTickerNode returns the union data inside the Node as a TickerNode

func (Node) AsWebFetchNode

func (t Node) AsWebFetchNode() (WebFetchNode, error)

AsWebFetchNode returns the union data inside the Node as a WebFetchNode

func (Node) AsWebSearchToolNode

func (t Node) AsWebSearchToolNode() (WebSearchToolNode, error)

AsWebSearchToolNode returns the union data inside the Node as a WebSearchToolNode

func (Node) AsWritePinNode

func (t Node) AsWritePinNode() (WritePinNode, error)

AsWritePinNode returns the union data inside the Node as a WritePinNode

func (Node) Discriminator

func (t Node) Discriminator() (string, error)

func (*Node) FromAgentNode

func (t *Node) FromAgentNode(v AgentNode) error

FromAgentNode overwrites any union data inside the Node as the provided AgentNode

func (*Node) FromAlarmNode

func (t *Node) FromAlarmNode(v AlarmNode) error

FromAlarmNode overwrites any union data inside the Node as the provided AlarmNode

func (*Node) FromDelayNode

func (t *Node) FromDelayNode(v DelayNode) error

FromDelayNode overwrites any union data inside the Node as the provided DelayNode

func (*Node) FromFunctionCallNode

func (t *Node) FromFunctionCallNode(v FunctionCallNode) error

FromFunctionCallNode overwrites any union data inside the Node as the provided FunctionCallNode

func (*Node) FromIfNode

func (t *Node) FromIfNode(v IfNode) error

FromIfNode overwrites any union data inside the Node as the provided IfNode

func (*Node) FromMqttPublishNode

func (t *Node) FromMqttPublishNode(v MqttPublishNode) error

FromMqttPublishNode overwrites any union data inside the Node as the provided MqttPublishNode

func (*Node) FromOnFunctionCallNode

func (t *Node) FromOnFunctionCallNode(v OnFunctionCallNode) error

FromOnFunctionCallNode overwrites any union data inside the Node as the provided OnFunctionCallNode

func (*Node) FromOnMqttMessageNode

func (t *Node) FromOnMqttMessageNode(v OnMqttMessageNode) error

FromOnMqttMessageNode overwrites any union data inside the Node as the provided OnMqttMessageNode

func (*Node) FromOnPinEdgeNode

func (t *Node) FromOnPinEdgeNode(v OnPinEdgeNode) error

FromOnPinEdgeNode overwrites any union data inside the Node as the provided OnPinEdgeNode

func (*Node) FromOnSerialReceiveNode

func (t *Node) FromOnSerialReceiveNode(v OnSerialReceiveNode) error

FromOnSerialReceiveNode overwrites any union data inside the Node as the provided OnSerialReceiveNode

func (*Node) FromOnStartupNode

func (t *Node) FromOnStartupNode(v OnStartupNode) error

FromOnStartupNode overwrites any union data inside the Node as the provided OnStartupNode

func (*Node) FromOnThresholdNode

func (t *Node) FromOnThresholdNode(v OnThresholdNode) error

FromOnThresholdNode overwrites any union data inside the Node as the provided OnThresholdNode

func (*Node) FromReadPinNode

func (t *Node) FromReadPinNode(v ReadPinNode) error

FromReadPinNode overwrites any union data inside the Node as the provided ReadPinNode

func (*Node) FromRetrieverNode

func (t *Node) FromRetrieverNode(v RetrieverNode) error

FromRetrieverNode overwrites any union data inside the Node as the provided RetrieverNode

func (*Node) FromSerialReadNode

func (t *Node) FromSerialReadNode(v SerialReadNode) error

FromSerialReadNode overwrites any union data inside the Node as the provided SerialReadNode

func (*Node) FromSerialWriteNode

func (t *Node) FromSerialWriteNode(v SerialWriteNode) error

FromSerialWriteNode overwrites any union data inside the Node as the provided SerialWriteNode

func (*Node) FromSetVariableNode

func (t *Node) FromSetVariableNode(v SetVariableNode) error

FromSetVariableNode overwrites any union data inside the Node as the provided SetVariableNode

func (*Node) FromTickerNode

func (t *Node) FromTickerNode(v TickerNode) error

FromTickerNode overwrites any union data inside the Node as the provided TickerNode

func (*Node) FromWebFetchNode

func (t *Node) FromWebFetchNode(v WebFetchNode) error

FromWebFetchNode overwrites any union data inside the Node as the provided WebFetchNode

func (*Node) FromWebSearchToolNode

func (t *Node) FromWebSearchToolNode(v WebSearchToolNode) error

FromWebSearchToolNode overwrites any union data inside the Node as the provided WebSearchToolNode

func (*Node) FromWritePinNode

func (t *Node) FromWritePinNode(v WritePinNode) error

FromWritePinNode overwrites any union data inside the Node as the provided WritePinNode

func (Node) MarshalJSON

func (t Node) MarshalJSON() ([]byte, error)

func (*Node) MergeAgentNode

func (t *Node) MergeAgentNode(v AgentNode) error

MergeAgentNode performs a merge with any union data inside the Node, using the provided AgentNode

func (*Node) MergeAlarmNode

func (t *Node) MergeAlarmNode(v AlarmNode) error

MergeAlarmNode performs a merge with any union data inside the Node, using the provided AlarmNode

func (*Node) MergeDelayNode

func (t *Node) MergeDelayNode(v DelayNode) error

MergeDelayNode performs a merge with any union data inside the Node, using the provided DelayNode

func (*Node) MergeFunctionCallNode

func (t *Node) MergeFunctionCallNode(v FunctionCallNode) error

MergeFunctionCallNode performs a merge with any union data inside the Node, using the provided FunctionCallNode

func (*Node) MergeIfNode

func (t *Node) MergeIfNode(v IfNode) error

MergeIfNode performs a merge with any union data inside the Node, using the provided IfNode

func (*Node) MergeMqttPublishNode

func (t *Node) MergeMqttPublishNode(v MqttPublishNode) error

MergeMqttPublishNode performs a merge with any union data inside the Node, using the provided MqttPublishNode

func (*Node) MergeOnFunctionCallNode

func (t *Node) MergeOnFunctionCallNode(v OnFunctionCallNode) error

MergeOnFunctionCallNode performs a merge with any union data inside the Node, using the provided OnFunctionCallNode

func (*Node) MergeOnMqttMessageNode

func (t *Node) MergeOnMqttMessageNode(v OnMqttMessageNode) error

MergeOnMqttMessageNode performs a merge with any union data inside the Node, using the provided OnMqttMessageNode

func (*Node) MergeOnPinEdgeNode

func (t *Node) MergeOnPinEdgeNode(v OnPinEdgeNode) error

MergeOnPinEdgeNode performs a merge with any union data inside the Node, using the provided OnPinEdgeNode

func (*Node) MergeOnSerialReceiveNode

func (t *Node) MergeOnSerialReceiveNode(v OnSerialReceiveNode) error

MergeOnSerialReceiveNode performs a merge with any union data inside the Node, using the provided OnSerialReceiveNode

func (*Node) MergeOnStartupNode

func (t *Node) MergeOnStartupNode(v OnStartupNode) error

MergeOnStartupNode performs a merge with any union data inside the Node, using the provided OnStartupNode

func (*Node) MergeOnThresholdNode

func (t *Node) MergeOnThresholdNode(v OnThresholdNode) error

MergeOnThresholdNode performs a merge with any union data inside the Node, using the provided OnThresholdNode

func (*Node) MergeReadPinNode

func (t *Node) MergeReadPinNode(v ReadPinNode) error

MergeReadPinNode performs a merge with any union data inside the Node, using the provided ReadPinNode

func (*Node) MergeRetrieverNode

func (t *Node) MergeRetrieverNode(v RetrieverNode) error

MergeRetrieverNode performs a merge with any union data inside the Node, using the provided RetrieverNode

func (*Node) MergeSerialReadNode

func (t *Node) MergeSerialReadNode(v SerialReadNode) error

MergeSerialReadNode performs a merge with any union data inside the Node, using the provided SerialReadNode

func (*Node) MergeSerialWriteNode

func (t *Node) MergeSerialWriteNode(v SerialWriteNode) error

MergeSerialWriteNode performs a merge with any union data inside the Node, using the provided SerialWriteNode

func (*Node) MergeSetVariableNode

func (t *Node) MergeSetVariableNode(v SetVariableNode) error

MergeSetVariableNode performs a merge with any union data inside the Node, using the provided SetVariableNode

func (*Node) MergeTickerNode

func (t *Node) MergeTickerNode(v TickerNode) error

MergeTickerNode performs a merge with any union data inside the Node, using the provided TickerNode

func (*Node) MergeWebFetchNode

func (t *Node) MergeWebFetchNode(v WebFetchNode) error

MergeWebFetchNode performs a merge with any union data inside the Node, using the provided WebFetchNode

func (*Node) MergeWebSearchToolNode

func (t *Node) MergeWebSearchToolNode(v WebSearchToolNode) error

MergeWebSearchToolNode performs a merge with any union data inside the Node, using the provided WebSearchToolNode

func (*Node) MergeWritePinNode

func (t *Node) MergeWritePinNode(v WritePinNode) error

MergeWritePinNode performs a merge with any union data inside the Node, using the provided WritePinNode

func (*Node) UnmarshalJSON

func (t *Node) UnmarshalJSON(b []byte) error

func (Node) ValueByDiscriminator

func (t Node) ValueByDiscriminator() (interface{}, error)

type NodePosition

type NodePosition struct {
	X float32 `json:"x"`
	Y float32 `json:"y"`
}

NodePosition defines model for NodePosition.

type OnFunctionCallNode

type OnFunctionCallNode struct {
	Id       string                 `json:"id"`
	Label    *string                `json:"label,omitempty"`
	Position NodePosition           `json:"position"`
	Type     OnFunctionCallNodeType `json:"type"`
}

OnFunctionCallNode defines model for OnFunctionCallNode.

type OnFunctionCallNodeType

type OnFunctionCallNodeType string

OnFunctionCallNodeType defines model for OnFunctionCallNode.Type.

const (
	OnFunctionCall OnFunctionCallNodeType = "OnFunctionCall"
)

Defines values for OnFunctionCallNodeType.

func (OnFunctionCallNodeType) Valid

func (e OnFunctionCallNodeType) Valid() bool

Valid indicates whether the value is a known member of the OnFunctionCallNodeType enum.

type OnMqttMessageNode

type OnMqttMessageNode struct {
	Arguments struct {
		// ChannelReference Reference to an MQTT channel ID (the channel carries the topic filter; resolved to a broker at deploy time)
		ChannelReference *string       `json:"channelReference,omitempty"`
		DataType         DataType      `json:"dataType"`
		Output           OutputBinding `json:"output"`
	} `json:"arguments"`
	Id       string                `json:"id"`
	Label    *string               `json:"label,omitempty"`
	Position NodePosition          `json:"position"`
	Type     OnMqttMessageNodeType `json:"type"`
}

OnMqttMessageNode defines model for OnMqttMessageNode.

type OnMqttMessageNodeType

type OnMqttMessageNodeType string

OnMqttMessageNodeType defines model for OnMqttMessageNode.Type.

const (
	OnMqttMessage OnMqttMessageNodeType = "OnMqttMessage"
)

Defines values for OnMqttMessageNodeType.

func (OnMqttMessageNodeType) Valid

func (e OnMqttMessageNodeType) Valid() bool

Valid indicates whether the value is a known member of the OnMqttMessageNodeType enum.

type OnPinEdgeNode

type OnPinEdgeNode struct {
	Arguments struct {
		// Edge Edge transition that fires the trigger
		Edge OnPinEdgeNodeArgumentsEdge `json:"edge"`

		// PinReference IO variable ID of the digital pin to watch
		PinReference *string `json:"pinReference,omitempty"`
	} `json:"arguments"`
	Id       string            `json:"id"`
	Label    *string           `json:"label,omitempty"`
	Position NodePosition      `json:"position"`
	Type     OnPinEdgeNodeType `json:"type"`
}

OnPinEdgeNode defines model for OnPinEdgeNode.

type OnPinEdgeNodeArgumentsEdge

type OnPinEdgeNodeArgumentsEdge string

OnPinEdgeNodeArgumentsEdge Edge transition that fires the trigger

const (
	OnPinEdgeNodeArgumentsEdgeBoth    OnPinEdgeNodeArgumentsEdge = "both"
	OnPinEdgeNodeArgumentsEdgeFalling OnPinEdgeNodeArgumentsEdge = "falling"
	OnPinEdgeNodeArgumentsEdgeRising  OnPinEdgeNodeArgumentsEdge = "rising"
)

Defines values for OnPinEdgeNodeArgumentsEdge.

func (OnPinEdgeNodeArgumentsEdge) Valid

func (e OnPinEdgeNodeArgumentsEdge) Valid() bool

Valid indicates whether the value is a known member of the OnPinEdgeNodeArgumentsEdge enum.

type OnPinEdgeNodeType

type OnPinEdgeNodeType string

OnPinEdgeNodeType defines model for OnPinEdgeNode.Type.

const (
	OnPinEdge OnPinEdgeNodeType = "OnPinEdge"
)

Defines values for OnPinEdgeNodeType.

func (OnPinEdgeNodeType) Valid

func (e OnPinEdgeNodeType) Valid() bool

Valid indicates whether the value is a known member of the OnPinEdgeNodeType enum.

type OnSerialReceiveNode

type OnSerialReceiveNode struct {
	Arguments struct {
		Output OutputBinding `json:"output"`

		// PortReference Reference to an IO variable ID (the serial port to listen on)
		PortReference *string `json:"portReference,omitempty"`
	} `json:"arguments"`
	Id       string                  `json:"id"`
	Label    *string                 `json:"label,omitempty"`
	Position NodePosition            `json:"position"`
	Type     OnSerialReceiveNodeType `json:"type"`
}

OnSerialReceiveNode defines model for OnSerialReceiveNode.

type OnSerialReceiveNodeType

type OnSerialReceiveNodeType string

OnSerialReceiveNodeType defines model for OnSerialReceiveNode.Type.

const (
	OnSerialReceive OnSerialReceiveNodeType = "OnSerialReceive"
)

Defines values for OnSerialReceiveNodeType.

func (OnSerialReceiveNodeType) Valid

func (e OnSerialReceiveNodeType) Valid() bool

Valid indicates whether the value is a known member of the OnSerialReceiveNodeType enum.

type OnStartupNode

type OnStartupNode struct {
	Id       string            `json:"id"`
	Label    *string           `json:"label,omitempty"`
	Position NodePosition      `json:"position"`
	Type     OnStartupNodeType `json:"type"`
}

OnStartupNode defines model for OnStartupNode.

type OnStartupNodeType

type OnStartupNodeType string

OnStartupNodeType defines model for OnStartupNode.Type.

const (
	OnStartup OnStartupNodeType = "OnStartup"
)

Defines values for OnStartupNodeType.

func (OnStartupNodeType) Valid

func (e OnStartupNodeType) Valid() bool

Valid indicates whether the value is a known member of the OnStartupNodeType enum.

type OnThresholdNode

type OnThresholdNode struct {
	Arguments struct {
		// Deadband Hysteresis band width around threshold; 0 disables (default 0)
		Deadband *float32 `json:"deadband,omitempty"`

		// Direction Crossing direction to fire on (default both)
		Direction OnThresholdNodeArgumentsDirection `json:"direction"`
		Output    OutputBinding                     `json:"output"`

		// Threshold Value the variable crosses to fire the trigger
		Threshold *float32   `json:"threshold,omitempty"`
		Variable  *Reference `json:"variable,omitempty"`
	} `json:"arguments"`
	Id       string              `json:"id"`
	Label    *string             `json:"label,omitempty"`
	Position NodePosition        `json:"position"`
	Type     OnThresholdNodeType `json:"type"`
}

OnThresholdNode defines model for OnThresholdNode.

type OnThresholdNodeArgumentsDirection

type OnThresholdNodeArgumentsDirection string

OnThresholdNodeArgumentsDirection Crossing direction to fire on (default both)

const (
	OnThresholdNodeArgumentsDirectionBoth    OnThresholdNodeArgumentsDirection = "both"
	OnThresholdNodeArgumentsDirectionFalling OnThresholdNodeArgumentsDirection = "falling"
	OnThresholdNodeArgumentsDirectionRising  OnThresholdNodeArgumentsDirection = "rising"
)

Defines values for OnThresholdNodeArgumentsDirection.

func (OnThresholdNodeArgumentsDirection) Valid

Valid indicates whether the value is a known member of the OnThresholdNodeArgumentsDirection enum.

type OnThresholdNodeType

type OnThresholdNodeType string

OnThresholdNodeType defines model for OnThresholdNode.Type.

const (
	OnThreshold OnThresholdNodeType = "OnThreshold"
)

Defines values for OnThresholdNodeType.

func (OnThresholdNodeType) Valid

func (e OnThresholdNodeType) Valid() bool

Valid indicates whether the value is a known member of the OnThresholdNodeType enum.

type OutputBinding

type OutputBinding struct {
	// Active Discard the output if false; route it according to `mode` if true
	Active bool              `json:"active"`
	Mode   OutputBindingMode `json:"mode"`

	// Name Variable name (when mode=emit)
	Name   *string    `json:"name,omitempty"`
	Target *Reference `json:"target,omitempty"`
}

OutputBinding defines model for OutputBinding.

type OutputBindingMode

type OutputBindingMode string

OutputBindingMode defines model for OutputBinding.Mode.

const (
	OutputBindingModeAssign OutputBindingMode = "assign"
	OutputBindingModeEmit   OutputBindingMode = "emit"
)

Defines values for OutputBindingMode.

func (OutputBindingMode) Valid

func (e OutputBindingMode) Valid() bool

Valid indicates whether the value is a known member of the OutputBindingMode enum.

type OutputDeclaration

type OutputDeclaration struct {
	DataType DataType              `json:"dataType"`
	Mode     OutputDeclarationMode `json:"mode"`

	// Name JSON property name of the declared output
	Name   string     `json:"name"`
	Target *Reference `json:"target,omitempty"`

	// Uid New variable uid (when mode=emit)
	Uid *string `json:"uid,omitempty"`
}

OutputDeclaration defines model for OutputDeclaration.

type OutputDeclarationMode

type OutputDeclarationMode string

OutputDeclarationMode defines model for OutputDeclaration.Mode.

const (
	OutputDeclarationModeAssign OutputDeclarationMode = "assign"
	OutputDeclarationModeEmit   OutputDeclarationMode = "emit"
)

Defines values for OutputDeclarationMode.

func (OutputDeclarationMode) Valid

func (e OutputDeclarationMode) Valid() bool

Valid indicates whether the value is a known member of the OutputDeclarationMode enum.

type PWMChannel

type PWMChannel struct {
	// Frequency PWM frequency in Hz
	Frequency int            `json:"frequency"`
	Id        string         `json:"id"`
	Label     string         `json:"label"`
	Type      PWMChannelType `json:"type"`
}

PWMChannel defines model for PWMChannel.

type PWMChannelType

type PWMChannelType string

PWMChannelType defines model for PWMChannel.Type.

const (
	PWM PWMChannelType = "PWM"
)

Defines values for PWMChannelType.

func (PWMChannelType) Valid

func (e PWMChannelType) Valid() bool

Valid indicates whether the value is a known member of the PWMChannelType enum.

type ReadPinNode

type ReadPinNode struct {
	Arguments struct {
		Output OutputBinding `json:"output"`

		// PinReference Reference to an IO variable ID
		PinReference *string    `json:"pinReference,omitempty"`
		SignalType   SignalType `json:"signalType"`

		// ToolDescription Description exposed to the LLM when this node is wired as a tool. Ignored in exec mode.
		ToolDescription *string `json:"toolDescription,omitempty"`
	} `json:"arguments"`
	Id       string          `json:"id"`
	Label    *string         `json:"label,omitempty"`
	Position NodePosition    `json:"position"`
	Type     ReadPinNodeType `json:"type"`
}

ReadPinNode defines model for ReadPinNode.

type ReadPinNodeType

type ReadPinNodeType string

ReadPinNodeType defines model for ReadPinNode.Type.

const (
	ReadPin ReadPinNodeType = "ReadPin"
)

Defines values for ReadPinNodeType.

func (ReadPinNodeType) Valid

func (e ReadPinNodeType) Valid() bool

Valid indicates whether the value is a known member of the ReadPinNodeType enum.

type Reference

type Reference struct {
	SrcId string `json:"srcId"`
	VarId string `json:"varId"`
}

Reference defines model for Reference.

type RetrieverNode

type RetrieverNode struct {
	Arguments struct {
		// MemoryReference Reference to a declared VectorDatabase memory id
		MemoryReference *string       `json:"memoryReference,omitempty"`
		Output          OutputBinding `json:"output"`
		Query           Expression    `json:"query"`

		// ToolDescription Description exposed to the LLM when this node is wired as a tool. Ignored in exec mode.
		ToolDescription *string `json:"toolDescription,omitempty"`

		// TopK Number of results to return
		TopK *int `json:"topK,omitempty"`
	} `json:"arguments"`
	Id       string            `json:"id"`
	Label    *string           `json:"label,omitempty"`
	Position NodePosition      `json:"position"`
	Type     RetrieverNodeType `json:"type"`
}

RetrieverNode defines model for RetrieverNode.

type RetrieverNodeType

type RetrieverNodeType string

RetrieverNodeType defines model for RetrieverNode.Type.

const (
	Retriever RetrieverNodeType = "Retriever"
)

Defines values for RetrieverNodeType.

func (RetrieverNodeType) Valid

func (e RetrieverNodeType) Valid() bool

Valid indicates whether the value is a known member of the RetrieverNodeType enum.

type SerialReadNode

type SerialReadNode struct {
	Arguments struct {
		Output OutputBinding `json:"output"`

		// PortReference Reference to an UART ID (the serial port to read from)
		PortReference *string `json:"portReference,omitempty"`
		Prompt        *string `json:"prompt,omitempty"`
	} `json:"arguments"`
	Id       string             `json:"id"`
	Label    *string            `json:"label,omitempty"`
	Position NodePosition       `json:"position"`
	Type     SerialReadNodeType `json:"type"`
}

SerialReadNode defines model for SerialReadNode.

type SerialReadNodeType

type SerialReadNodeType string

SerialReadNodeType defines model for SerialReadNode.Type.

const (
	SerialRead SerialReadNodeType = "SerialRead"
)

Defines values for SerialReadNodeType.

func (SerialReadNodeType) Valid

func (e SerialReadNodeType) Valid() bool

Valid indicates whether the value is a known member of the SerialReadNodeType enum.

type SerialWriteNode

type SerialWriteNode struct {
	Arguments struct {
		// PortReference Reference to a UART channel ID (the serial port to write to)
		PortReference *string    `json:"portReference,omitempty"`
		Value         Expression `json:"value"`
	} `json:"arguments"`
	Id       string              `json:"id"`
	Label    *string             `json:"label,omitempty"`
	Position NodePosition        `json:"position"`
	Type     SerialWriteNodeType `json:"type"`
}

SerialWriteNode defines model for SerialWriteNode.

type SerialWriteNodeType

type SerialWriteNodeType string

SerialWriteNodeType defines model for SerialWriteNode.Type.

const (
	SerialWrite SerialWriteNodeType = "SerialWrite"
)

Defines values for SerialWriteNodeType.

func (SerialWriteNodeType) Valid

func (e SerialWriteNodeType) Valid() bool

Valid indicates whether the value is a known member of the SerialWriteNodeType enum.

type SetVariableNode

type SetVariableNode struct {
	Arguments struct {
		Value    Expression `json:"value"`
		Variable *Reference `json:"variable,omitempty"`
	} `json:"arguments"`
	Id       string              `json:"id"`
	Label    *string             `json:"label,omitempty"`
	Position NodePosition        `json:"position"`
	Type     SetVariableNodeType `json:"type"`
}

SetVariableNode defines model for SetVariableNode.

type SetVariableNodeType

type SetVariableNodeType string

SetVariableNodeType defines model for SetVariableNode.Type.

const (
	SetVariable SetVariableNodeType = "SetVariable"
)

Defines values for SetVariableNodeType.

func (SetVariableNodeType) Valid

func (e SetVariableNodeType) Valid() bool

Valid indicates whether the value is a known member of the SetVariableNodeType enum.

type SignalType

type SignalType string

SignalType defines model for SignalType.

const (
	Analog  SignalType = "analog"
	Digital SignalType = "digital"
)

Defines values for SignalType.

func (SignalType) Valid

func (e SignalType) Valid() bool

Valid indicates whether the value is a known member of the SignalType enum.

type TickerNode

type TickerNode struct {
	Arguments struct {
		// IntervalUnit Time unit for the interval
		IntervalUnit TickerNodeArgumentsIntervalUnit `json:"intervalUnit"`

		// IntervalValue How many units between ticks
		IntervalValue *int `json:"intervalValue,omitempty"`
	} `json:"arguments"`
	Id       string         `json:"id"`
	Label    *string        `json:"label,omitempty"`
	Position NodePosition   `json:"position"`
	Type     TickerNodeType `json:"type"`
}

TickerNode defines model for TickerNode.

type TickerNodeArgumentsIntervalUnit

type TickerNodeArgumentsIntervalUnit string

TickerNodeArgumentsIntervalUnit Time unit for the interval

const (
	Hours        TickerNodeArgumentsIntervalUnit = "hours"
	Milliseconds TickerNodeArgumentsIntervalUnit = "milliseconds"
	Minutes      TickerNodeArgumentsIntervalUnit = "minutes"
	Seconds      TickerNodeArgumentsIntervalUnit = "seconds"
)

Defines values for TickerNodeArgumentsIntervalUnit.

func (TickerNodeArgumentsIntervalUnit) Valid

Valid indicates whether the value is a known member of the TickerNodeArgumentsIntervalUnit enum.

type TickerNodeType

type TickerNodeType string

TickerNodeType defines model for TickerNode.Type.

const (
	Ticker TickerNodeType = "Ticker"
)

Defines values for TickerNodeType.

func (TickerNodeType) Valid

func (e TickerNodeType) Valid() bool

Valid indicates whether the value is a known member of the TickerNodeType enum.

type UARTChannel

type UARTChannel struct {
	Id    string          `json:"id"`
	Label string          `json:"label"`
	Type  UARTChannelType `json:"type"`
}

UARTChannel defines model for UARTChannel.

type UARTChannelType

type UARTChannelType string

UARTChannelType defines model for UARTChannel.Type.

const (
	UART UARTChannelType = "UART"
)

Defines values for UARTChannelType.

func (UARTChannelType) Valid

func (e UARTChannelType) Valid() bool

Valid indicates whether the value is a known member of the UARTChannelType enum.

type Variable

type Variable struct {
	DataType DataType `json:"dataType"`

	// InitialValue Initial value matching the dataType (number, boolean, or string). Only used by declared variables.
	InitialValue interface{} `json:"initialValue,omitempty"`
	Name         string      `json:"name"`

	// Uid Stable identifier that survives renames
	Uid string `json:"uid"`
}

Variable A named, typed variable with a stable uid that can be referenced throughout the workflow.

type VectorDatabase

type VectorDatabase struct {
	Description *string `json:"description,omitempty"`

	// Id Stable identifier; referenced from Retriever nodes.
	Id string `json:"id"`

	// Label Display name.
	Label string             `json:"label"`
	Type  VectorDatabaseType `json:"type"`
}

VectorDatabase A vector database for retrieval-augmented generation (RAG).

type VectorDatabaseType

type VectorDatabaseType string

VectorDatabaseType defines model for VectorDatabase.Type.

const (
	VectorDatabaseTypeVectorDatabase VectorDatabaseType = "VectorDatabase"
)

Defines values for VectorDatabaseType.

func (VectorDatabaseType) Valid

func (e VectorDatabaseType) Valid() bool

Valid indicates whether the value is a known member of the VectorDatabaseType enum.

type Vertex

type Vertex struct {
	NodeId string `json:"nodeId"`
	Port   string `json:"port"`
}

Vertex defines model for Vertex.

type WebFetchNode

type WebFetchNode struct {
	Arguments struct {
		// MaxChars Maximum characters of extracted text to return. Defaults to 50000 when omitted or non-positive.
		MaxChars *int          `json:"maxChars,omitempty"`
		Output   OutputBinding `json:"output"`
		Url      Expression    `json:"url"`
	} `json:"arguments"`
	Id       string           `json:"id"`
	Label    *string          `json:"label,omitempty"`
	Position NodePosition     `json:"position"`
	Type     WebFetchNodeType `json:"type"`
}

WebFetchNode defines model for WebFetchNode.

type WebFetchNodeType

type WebFetchNodeType string

WebFetchNodeType defines model for WebFetchNode.Type.

const (
	WebFetch WebFetchNodeType = "WebFetch"
)

Defines values for WebFetchNodeType.

func (WebFetchNodeType) Valid

func (e WebFetchNodeType) Valid() bool

Valid indicates whether the value is a known member of the WebFetchNodeType enum.

type WebSearchToolNode

type WebSearchToolNode struct {
	Arguments struct {
		// MaxResults Maximum number of search results to return per call. Defaults to 5 when omitted or non-positive. Capped at 20.
		MaxResults *int `json:"maxResults,omitempty"`
	} `json:"arguments"`
	Id       string                `json:"id"`
	Label    *string               `json:"label,omitempty"`
	Position NodePosition          `json:"position"`
	Type     WebSearchToolNodeType `json:"type"`
}

WebSearchToolNode defines model for WebSearchToolNode.

type WebSearchToolNodeType

type WebSearchToolNodeType string

WebSearchToolNodeType defines model for WebSearchToolNode.Type.

const (
	WebSearchTool WebSearchToolNodeType = "WebSearchTool"
)

Defines values for WebSearchToolNodeType.

func (WebSearchToolNodeType) Valid

func (e WebSearchToolNodeType) Valid() bool

Valid indicates whether the value is a known member of the WebSearchToolNodeType enum.

type Workflow

type Workflow struct {
	Channels          []Channel  `json:"channels"`
	DeclaredVariables []Variable `json:"declaredVariables"`
	Edges             []Edge     `json:"edges"`
	Functions         []Function `json:"functions"`
	Memory            []Memory   `json:"memory"`

	// Models Declared custom/self-hosted models; referenced from nodes by id. Static catalog models need no declaration.
	Models []Model `json:"models"`
	Nodes  []Node  `json:"nodes"`

	// SchemaVersion Monotonic version of the persisted workflow format, bumped when the serialized shape changes.
	SchemaVersion int32 `json:"schemaVersion"`
}

Workflow Workflow represents the deployment format of a project, passed to agents.

type WritePinNode

type WritePinNode struct {
	Arguments struct {
		// PinReference Reference to an IO variable ID
		PinReference *string    `json:"pinReference,omitempty"`
		SignalType   SignalType `json:"signalType"`
		Value        Expression `json:"value"`
	} `json:"arguments"`
	Id       string           `json:"id"`
	Label    *string          `json:"label,omitempty"`
	Position NodePosition     `json:"position"`
	Type     WritePinNodeType `json:"type"`
}

WritePinNode defines model for WritePinNode.

type WritePinNodeType

type WritePinNodeType string

WritePinNodeType defines model for WritePinNode.Type.

const (
	WritePin WritePinNodeType = "WritePin"
)

Defines values for WritePinNodeType.

func (WritePinNodeType) Valid

func (e WritePinNodeType) Valid() bool

Valid indicates whether the value is a known member of the WritePinNodeType enum.

Jump to

Keyboard shortcuts

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