llm

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 NewModel added in v0.5.0

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

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

func NewModelWithMetaInformation added in v0.6.1

func NewModelWithMetaInformation(provider provider.Query, modelIdentifier string, metaInformation *model.MetaInformation) *Model

NewModelWithMetaInformation returns a LLM model with meta information corresponding to the given identifier which is queried via the given provider.

func (*Model) ID added in v0.5.0

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

ID returns the unique ID of this model.

func (*Model) MetaInformation added in v0.6.1

func (m *Model) MetaInformation() (metaInformation *model.MetaInformation)

MetaInformation returns the meta information of a model.

func (*Model) RepairCode added in v0.6.0

func (m *Model) RepairCode(ctx model.Context) (assessment metrics.Assessments, err error)

RepairCode queries the model to repair a source code with compilation error.

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.

func (*Model) Transpile added in v0.6.0

func (m *Model) Transpile(ctx model.Context) (assessment metrics.Assessments, err error)

Transpile queries the model to transpile source code to another language.

func (*Model) WriteTests added in v0.6.0

func (m *Model) WriteTests(ctx model.Context) (assessment metrics.Assessments, err error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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