llm

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package llm provides LLM model creation and management.

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(cfg *config.Config) *ModelFactory

NewModelFactory creates a new model factory.

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
Package adapters provides LLM adapters for different providers.
Package adapters provides LLM adapters for different providers.

Jump to

Keyboard shortcuts

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