agent

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWindows

func IsWindows() bool
func SupportsSymlinks() bool

func SymlinkOrCopy

func SymlinkOrCopy(src, dst string) error

Types

type Agent

type Agent struct {
	Name           string
	Command        string
	ConfigDir      string
	InstallCommand string

	// Env var mappings for config resolution
	APIKeyEnvVar  string // e.g., "ANTHROPIC_API_KEY" for Claude
	BaseURLEnvVar string // e.g., "ANTHROPIC_BASE_URL" for Claude
	ModelEnvVar   string // e.g., "ANTHROPIC_MODEL" for Claude
}

func All

func All() []Agent

func Lookup

func Lookup(name string) (Agent, bool)

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) All

func (r *Registry) All() []Agent

func (*Registry) Lookup

func (r *Registry) Lookup(name string) (Agent, bool)

Jump to

Keyboard shortcuts

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