catalog

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "agentflow.dev/v1"
	KindTool   = "Tool"
	KindSkill  = "Skill"
)

Variables

This section is empty.

Functions

func LoadSkillManifest added in v0.1.8

func LoadSkillManifest(data []byte) (core.Skill, error)

func LoadSkillManifestFile added in v0.1.8

func LoadSkillManifestFile(path string) (core.Skill, error)

func LoadToolManifest added in v0.1.8

func LoadToolManifest(data []byte) (core.Tool, error)

func LoadToolManifestFile added in v0.1.8

func LoadToolManifestFile(path string) (core.Tool, error)

func ValidateSkillManifest added in v0.1.8

func ValidateSkillManifest(skill core.Skill) error

ValidateSkillManifest checks a standalone skill manifest for catalog registration.

func ValidateToolManifest added in v0.1.8

func ValidateToolManifest(tool core.Tool) error

ValidateToolManifest checks a standalone tool manifest for catalog registration.

Types

type AgentEntry

type AgentEntry struct {
	Name   string   `json:"name"`
	LLM    string   `json:"llm,omitempty"`
	Tools  []string `json:"tools,omitempty"`
	Skills []string `json:"skills,omitempty"`
}

type Catalog

type Catalog struct {
	Tools  []ToolEntry  `json:"tools"`
	Skills []SkillEntry `json:"skills"`
	Agents []AgentEntry `json:"agents"`
}

func FromScenario

func FromScenario(scenario core.Scenario) Catalog

type Metadata added in v0.1.8

type Metadata struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version,omitempty"`
}

type SkillDocument added in v0.1.8

type SkillDocument struct {
	APIVersion string     `yaml:"apiVersion"`
	Kind       string     `yaml:"kind"`
	Metadata   Metadata   `yaml:"metadata"`
	Spec       core.Skill `yaml:"spec"`
}

type SkillEntry

type SkillEntry struct {
	Name             string   `json:"name"`
	CompatibleAgents []string `json:"compatible_agents,omitempty"`
	HasWorkflow      bool     `json:"has_workflow"`
}

type ToolDocument added in v0.1.8

type ToolDocument struct {
	APIVersion string    `yaml:"apiVersion"`
	Kind       string    `yaml:"kind"`
	Metadata   Metadata  `yaml:"metadata"`
	Spec       core.Tool `yaml:"spec"`
}

type ToolEntry

type ToolEntry struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	Approval   string `json:"approval,omitempty"`
	SideEffect string `json:"side_effect,omitempty"`
}

Jump to

Keyboard shortcuts

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