Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoaderTransition ¶
type LoaderTransition struct {
From string `json:"from" mapstructure:"from"`
FromFull string `json:"from_node_id" mapstructure:"from_node_id"`
To string `json:"to" mapstructure:"to"`
ToFull string `json:"to_node_id" mapstructure:"to_node_id"`
JumpTo string `json:"jump_to" mapstructure:"jump_to"`
Condition string `json:"condition" mapstructure:"condition"`
Text string `json:"text" mapstructure:"text"`
}
type NodeMetadata ¶
type NodeMetadata struct {
ID string `json:"id" mapstructure:"id"`
Type string `json:"type" mapstructure:"type"`
Transitions []LoaderTransition `json:"transitions" mapstructure:"transitions"`
Options []LoaderTransition `json:"options" mapstructure:"options"`
Wait bool `json:"wait" mapstructure:"wait"`
// SaveTo captures the input into a variable in the context
SaveTo string `json:"save_to" mapstructure:"save_to"`
// Interactive Input Config
InputType string `json:"input_type" mapstructure:"input_type"`
InputOptions []string `json:"input_options" mapstructure:"input_options"`
InputDefault string `json:"input_default" mapstructure:"input_default"`
// Tool Config
ToolCall *domain.ToolCall `json:"tool_call" mapstructure:"tool_call"`
Tools []any `json:"tools" mapstructure:"tools"`
// General Metadata
Metadata map[string]string `json:"metadata" mapstructure:"metadata"`
}
NodeMetadata represents the header/metadata of a Trellis Node. It uses "mapstructure" tags to match standard Frontmatter/YAML keys (to, from).
Click to show internal directories.
Click to hide internal directories.