llm

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, modelIDWithAttributes string) (llmModel *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) Attributes added in v1.0.2

func (m *Model) Attributes() (attributes map[string]string)

Attributes returns query attributes.

func (*Model) ID added in v0.5.0

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

ID returns full identifier, including the provider and attributes.

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) Migrate added in v1.0.0

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

Migrate queries the model to migrate source code.

func (*Model) ModelID added in v1.0.2

func (m *Model) ModelID() (modelID string)

ModelID returns the unique identifier of this model with its provider.

func (*Model) ModelIDWithoutProvider added in v1.0.2

func (m *Model) ModelIDWithoutProvider() (modelID string)

ModelIDWithoutProvider returns the unique identifier of this model without its provider.

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