automation_enums

package
v0.0.0-...-1652925 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity uint
const (
	WebService Entity = iota + 1
	StaticSite
	PrivateService
	Environment
	Database
	Repository

	EntityMax //add others before EntityMax
)

func (Entity) IsBackendServiceType

func (e Entity) IsBackendServiceType() bool

func (Entity) IsDatabaseType

func (e Entity) IsDatabaseType() bool

func (Entity) IsServiceType

func (e Entity) IsServiceType() bool

func (Entity) String

func (e Entity) String() string

func (Entity) ToolTypes

func (e Entity) ToolTypes() []ToolType

ToolTypes function returns the tool types that an entity can use

type NodeType

type NodeType uint
const (
	CustomAgent NodeType = iota + 1
	SendEmailTool
	ChatTrigger
	GetCPUMemoryUsageTool
	GetApplicationLogsTool
	QueryCodeTool

	NodeTypeMax //always add new types before NodeTypeMax
)

func GetNodeTypeFromKey

func GetNodeTypeFromKey(key string) (NodeType, error)

func (NodeType) IsAgentType

func (n NodeType) IsAgentType() bool

func (NodeType) IsToolType

func (n NodeType) IsToolType() bool

func (NodeType) IsTriggerType

func (n NodeType) IsTriggerType() bool

func (NodeType) String

func (n NodeType) String() string

type ToolType

type ToolType uint

ToolType is the type of tool that can be run on an entity

const (
	GetCPUMemoryUsage ToolType = iota + 1
	SendEmail
	GetApplicationLogs
	QueryCode

	ToolTypeMax //always add new types before ToolTypeMax
)

func GetToolTypeFromNodeType

func GetToolTypeFromNodeType(nodeType NodeType) (ToolType, error)

func (ToolType) GetEntities

func (t ToolType) GetEntities() []Entity

GetEntities returns the entities that can run this tool type

func (ToolType) String

func (t ToolType) String() string

String returns the string representation of the tool type

type TriggerType

type TriggerType uint
const (
	Chat TriggerType = iota + 1

	MaxTriggerType //always add new types before MaxTriggerType
)

func GetTriggerTypeFromNodeType

func GetTriggerTypeFromNodeType(nodeType NodeType) (TriggerType, error)

func (TriggerType) String

func (t TriggerType) String() string

Jump to

Keyboard shortcuts

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