Documentation ¶
Index ¶
- type Model
- func (m *Model) ID() (id string)
- func (m *Model) MetaInformation() (metaInformation *model.MetaInformation)
- func (m *Model) RepairCode(ctx model.Context) (assessment metrics.Assessments, err error)
- func (m *Model) SetQueryAttempts(queryAttempts uint)
- func (m *Model) Transpile(ctx model.Context) (assessment metrics.Assessments, err error)
- func (m *Model) WriteTests(ctx model.Context) (assessment metrics.Assessments, err error)
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
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) 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
RepairCode queries the model to repair a source code with compilation error.
func (*Model) SetQueryAttempts ¶ added in v0.5.0
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
Transpile queries the model to transpile source code to another language.
func (*Model) WriteTests ¶ added in v0.6.0
WriteTests generates test files for the given implementation file in a repository.