logic

package
v1.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateNode

type AggregateNode struct{}

func (*AggregateNode) Execute

func (e *AggregateNode) Execute(ctx context.Context, config json.RawMessage, _ map[string]any) (*node.NodeResult, error)

func (*AggregateNode) Validate

func (e *AggregateNode) Validate(config json.RawMessage) error

type ConditionNode

type ConditionNode struct{}

func (*ConditionNode) Execute

func (e *ConditionNode) Execute(ctx context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*ConditionNode) Validate

func (e *ConditionNode) Validate(config json.RawMessage) error

type LLMAgentNode

type LLMAgentNode struct {
	Providers LLMProviderStore
	Skills    skills.Reader
}

func (*LLMAgentNode) Execute

func (e *LLMAgentNode) Execute(ctx context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*LLMAgentNode) Validate

func (e *LLMAgentNode) Validate(config json.RawMessage) error

type LLMPromptNode

type LLMPromptNode struct {
	Providers LLMProviderStore
}

func (*LLMPromptNode) Execute

func (e *LLMPromptNode) Execute(ctx context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*LLMPromptNode) Validate

func (e *LLMPromptNode) Validate(config json.RawMessage) error

type LLMProviderStore

type LLMProviderStore interface {
	GetByID(ctx context.Context, id string) (*models.LLMProvider, error)
	GetDefault(ctx context.Context) (*models.LLMProvider, error)
}

type LimitNode

type LimitNode struct{}

func (*LimitNode) Execute

func (e *LimitNode) Execute(_ context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*LimitNode) Validate

func (e *LimitNode) Validate(config json.RawMessage) error

type MergeNode

type MergeNode struct{}

func (*MergeNode) Execute

func (e *MergeNode) Execute(ctx context.Context, config json.RawMessage, _ map[string]any) (*node.NodeResult, error)

func (*MergeNode) Validate

func (e *MergeNode) Validate(config json.RawMessage) error

type RemoveDuplicatesNode

type RemoveDuplicatesNode struct{}

func (*RemoveDuplicatesNode) Execute

func (e *RemoveDuplicatesNode) Execute(_ context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*RemoveDuplicatesNode) Validate

func (e *RemoveDuplicatesNode) Validate(config json.RawMessage) error

type ReturnNode

type ReturnNode struct{}

func (*ReturnNode) Execute

func (e *ReturnNode) Execute(ctx context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*ReturnNode) Validate

func (e *ReturnNode) Validate(config json.RawMessage) error

type SortNode

type SortNode struct{}

func (*SortNode) Execute

func (e *SortNode) Execute(_ context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*SortNode) Validate

func (e *SortNode) Validate(config json.RawMessage) error

type SummarizeNode

type SummarizeNode struct{}

func (*SummarizeNode) Execute

func (e *SummarizeNode) Execute(_ context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*SummarizeNode) Validate

func (e *SummarizeNode) Validate(config json.RawMessage) error

type SwitchNode

type SwitchNode struct{}

func (*SwitchNode) Execute

func (e *SwitchNode) Execute(ctx context.Context, config json.RawMessage, input map[string]any) (*node.NodeResult, error)

func (*SwitchNode) Validate

func (e *SwitchNode) Validate(config json.RawMessage) error

Jump to

Keyboard shortcuts

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