agent

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepoAnalyzer

func NewRepoAnalyzer(ctx context.Context, opts RepoAnnalyzerOptions) *llm.ReactAgent

Types

type Agent

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

func NewAgent

func NewAgent(opts AgentOptions) *Agent

run agent as a repl cmd server

func (*Agent) Generate

func (a *Agent) Generate(ctx context.Context, msgs []*schema.Message) (*schema.Message, error)

func (*Agent) Run

func (a *Agent) Run(ctx context.Context)

type AgentOptions

type AgentOptions struct {
	ASTsDir      string
	MaxHistories int
	MaxSteps     int
	Model        llm.ModelConfig
}

type Histories

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

func NewHistories

func NewHistories(max int) *Histories

func (*Histories) Add

func (h *Histories) Add(msg *schema.Message)

func (*Histories) Get

func (h *Histories) Get() []*schema.Message

type RepoAnnalyzerOptions

type RepoAnnalyzerOptions struct {
	llm.ModelConfig
	MaxSteps int    `json:"max_steps"`
	ASTsDir  string `json:"asts_dir"`
}

Jump to

Keyboard shortcuts

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