agents

package
v0.1.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Type      AgentType `json:"type"`
	Name      string    `json:"name"`
	Command   string    `json:"command"`
	Available bool      `json:"available"`
	Version   string    `json:"version"`
}

Agent represents a coding agent with its metadata

type AgentExecutionRequest

type AgentExecutionRequest struct {
	Language       string                    `json:"language"`
	TargetDir      string                    `json:"target_dir"`
	Directory      string                    `json:"directory,omitempty"`
	DirectoryPlans []templates.DirectoryPlan `json:"directory_plans,omitempty"`
}

AgentExecutionRequest contains all parameters needed for agent execution

type AgentType

type AgentType string

AgentType represents different coding agent types

const (
	GeminiCLI   AgentType = "gemini"
	ClaudeCode  AgentType = "claude"
	OpenAICodex AgentType = "openai"
	GitHubCLI   AgentType = "github"
)

type Detector

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

Detector handles detection of available coding agents

func NewDetector

func NewDetector() (*Detector, error)

NewDetector creates a new agent detector

func (*Detector) DetectAvailableAgents

func (d *Detector) DetectAvailableAgents() []Agent

DetectAvailableAgents scans the system for available coding agents

func (*Detector) ExecuteWithAgent

func (d *Detector) ExecuteWithAgent(agentType AgentType, request AgentExecutionRequest) error

ExecuteWithAgent sends instructions to the specified agent

func (*Detector) GeneratePrompt

func (d *Detector) GeneratePrompt(request AgentExecutionRequest) (string, error)

GeneratePrompt creates a prompt using the template engine

Jump to

Keyboard shortcuts

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