templates

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	Name     string
	Template string
	Runtime  string
	Model    string
}

AgentConfig represents the configuration for generating an agent

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles template operations

func New

func New() *Manager

New creates a new template manager

func NewWithDir

func NewWithDir(dir string) *Manager

NewWithDir creates a new template manager with custom templates directory

func (*Manager) Generate

func (m *Manager) Generate(projectDir string, config *AgentConfig) error

Generate generates a new agent project from a template

func (*Manager) GetTemplateInfo

func (m *Manager) GetTemplateInfo(templateName string) (*TemplateInfo, error)

GetTemplateInfo returns information about a template

func (*Manager) ListTemplates

func (m *Manager) ListTemplates() ([]string, error)

ListTemplates returns available templates

type TemplateInfo

type TemplateInfo struct {
	Name        string   `yaml:"name"`
	Description string   `yaml:"description"`
	Author      string   `yaml:"author,omitempty"`
	Version     string   `yaml:"version,omitempty"`
	Runtimes    []string `yaml:"runtimes"`
	Tags        []string `yaml:"tags,omitempty"`
}

TemplateInfo represents template information

Jump to

Keyboard shortcuts

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