llm

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModel added in v0.5.0

func NewModel(provider provider.Query, modelIdentifier string) model.Model

NewModel returns an LLM model corresponding to the given identifier which is queried via the given provider.

Types

type Model added in v0.5.0

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

Model represents a LLM model accessed via a provider.

func (*Model) GenerateTestsForFile added in v0.5.0

func (m *Model) GenerateTestsForFile(logger *log.Logger, language language.Language, repositoryPath string, filePath string) (assessment metrics.Assessments, err error)

GenerateTestsForFile generates test files for the given implementation file in a repository.

func (*Model) ID added in v0.5.0

func (m *Model) ID() (id string)

ID returns the unique ID of this model.

func (*Model) SetQueryAttempts added in v0.5.0

func (m *Model) SetQueryAttempts(queryAttempts uint)

SetQueryAttempts sets the number of query attempts to perform when a model request errors in the process of solving a task.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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