agents

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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 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) Name

func (d *DeveloperAgent) Name() string

Name returns the agent name

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

Jump to

Keyboard shortcuts

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