processor

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentIdentityYamlRepresentation

type AgentIdentityYamlRepresentation struct {
	Name        string `yaml:"name"`
	ID          string `yaml:"id"`
	Version     string `yaml:"version"`
	Description string `yaml:"description"`
	Role        string `yaml:"role"`
	Goal        string `yaml:"goal"`
	Icon        string `yaml:"icon"`
}

AgentIdentityYamlRepresentation represents the identity section of an agent YAML.

type AgentYamlRepresentation

type AgentYamlRepresentation struct {
	Agent struct {
		Identity AgentIdentityYamlRepresentation `yaml:"identity"`
		Tasks    []string                        `yaml:"tasks"`
	} `yaml:"agent"`
}

AgentYamlRepresentation represents the structure of an agent YAML file.

func UnmarshalAgentFile

func UnmarshalAgentFile(filePath string) (*AgentYamlRepresentation, error)

func UnmarshalAgentFileFromFS

func UnmarshalAgentFileFromFS(fs FileReader, filePath string) (*AgentYamlRepresentation, error)

UnmarshalAgentFileFromFS unmarshals an agent file using a FileReader interface

type FileReader

type FileReader interface {
	ReadFile(name string) ([]byte, error)
}

FileReader interface for abstracting file reading operations

type TaskDependenciesYamlRepresentation

type TaskDependenciesYamlRepresentation struct {
	Dependencies struct {
		Templates  []string `yaml:"templates"`
		DataFiles  []string `yaml:"data"`
		McpServers []string `yaml:"mcp_servers"`
	} `yaml:"dependencies"`
}

func UnmarshalTaskDependenciesFile

func UnmarshalTaskDependenciesFile(filePath string) (*TaskDependenciesYamlRepresentation, error)

func UnmarshalTaskDependenciesFileFromFS

func UnmarshalTaskDependenciesFileFromFS(fs FileReader, filePath string) (*TaskDependenciesYamlRepresentation, error)

UnmarshalTaskDependenciesFileFromFS unmarshals task dependencies from a file using a FileReader interface

Jump to

Keyboard shortcuts

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