Documentation
¶
Index ¶
- type CodeReviewAgent
- type DeveloperAgent
- func (d *DeveloperAgent) Chat(ctx context.Context, messages []ai.Message) (*ai.AgentResponse, error)
- func (d *DeveloperAgent) Description() string
- func (d *DeveloperAgent) Execute(ctx context.Context, task string) (*ai.AgentResponse, error)
- func (d *DeveloperAgent) Name() string
- func (d *DeveloperAgent) SetContext(key string, value interface{})
- func (d *DeveloperAgent) SetTools(tools []ai.Tool)
- type RepositoryAssistant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeReviewAgent ¶
type CodeReviewAgent struct {
*DeveloperAgent
}
CodeReviewAgent is specialized for code review tasks
func NewCodeReviewAgent ¶
func NewCodeReviewAgent(llm ai.LLMProvider) *CodeReviewAgent
NewCodeReviewAgent creates a new code review agent
func (*CodeReviewAgent) ReviewPullRequest ¶
func (c *CodeReviewAgent) ReviewPullRequest(ctx context.Context, prDiff string) (*ai.AgentResponse, error)
ReviewPullRequest reviews a pull request
type DeveloperAgent ¶
type DeveloperAgent struct {
// contains filtered or unexported fields
}
DeveloperAgent is an AI agent specialized for software development tasks
func NewDeveloperAgent ¶
func NewDeveloperAgent(llm ai.LLMProvider) *DeveloperAgent
NewDeveloperAgent creates a new developer agent
func (*DeveloperAgent) Chat ¶
func (d *DeveloperAgent) Chat(ctx context.Context, messages []ai.Message) (*ai.AgentResponse, error)
Chat handles a conversational interaction
func (*DeveloperAgent) Description ¶
func (d *DeveloperAgent) Description() string
Description returns the agent's capabilities
func (*DeveloperAgent) Execute ¶
func (d *DeveloperAgent) Execute(ctx context.Context, task string) (*ai.AgentResponse, error)
Execute runs the agent with the given task
func (*DeveloperAgent) SetContext ¶
func (d *DeveloperAgent) SetContext(key string, value interface{})
SetContext sets the agent's working context
func (*DeveloperAgent) SetTools ¶
func (d *DeveloperAgent) SetTools(tools []ai.Tool)
SetTools configures the tools available to the agent
type RepositoryAssistant ¶
type RepositoryAssistant struct {
*DeveloperAgent
}
RepositoryAssistant helps with repository management
func NewRepositoryAssistant ¶
func NewRepositoryAssistant(llm ai.LLMProvider) *RepositoryAssistant
NewRepositoryAssistant creates a new repository assistant
func (*RepositoryAssistant) AnalyzeRepository ¶
func (r *RepositoryAssistant) AnalyzeRepository(ctx context.Context, repoID string) (*ai.AgentResponse, error)
AnalyzeRepository provides a comprehensive repository analysis