Help us shape the future of Go! Take the 2026 Go Developer Survey

llm

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelFactory

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

ModelFactory creates LLM models based on configuration

func NewModelFactory

func NewModelFactory(ctx context.Context, cfg *config.Config) *ModelFactory

NewModelFactory creates a new model factory. The logger is retrieved from ctx using slogutil.LoggerFromContext.

func (*ModelFactory) Close

func (mf *ModelFactory) Close() error

Close cleans up resources (call when factory is no longer needed)

func (*ModelFactory) CreateModel

func (mf *ModelFactory) CreateModel(ctx context.Context) (model.LLM, error)

CreateModel creates an LLM model based on the configured provider

func (*ModelFactory) GetProviderInfo

func (mf *ModelFactory) GetProviderInfo() string

GetProviderInfo returns information about the current provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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