sessionllm

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 10 Imported by: 0 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

View Source
var (
	ErrNoActiveProvider      = errors.New("no active provider configured; open setup providers to configure one")
	ErrProviderNotConfigured = errors.New("provider is not configured")
)

Functions

This section is empty.

Types

type ProviderSpec

type ProviderSpec struct {
	ID              string
	Name            string
	Type            string
	APIKey          string
	BaseURL         string
	Model           string
	ContextWindow   int
	MaxOutputTokens int64
	ReasoningEffort string
	ToolUseMode     providers.ToolUseMode
}

type Registry

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

func New

func New(activeProviderID string, providerSpecs []ProviderSpec) *Registry

func (*Registry) ActiveSelection

func (r *Registry) ActiveSelection() (string, string)

func (*Registry) ContextWindow added in v0.2.1

func (r *Registry) ContextWindow(providerID string, modelID string) int

ContextWindow is the window of a provider's model: the manual setting when the model is the one the provider is configured with, else the catalog.

func (*Registry) Models

func (r *Registry) Models(ctx context.Context, providerID string) ([]string, error)

func (*Registry) Normalize

func (r *Registry) Normalize(providerID string, modelID string) (core.SessionProviderOption, string, error)

func (*Registry) Providers

func (r *Registry) Providers() []core.SessionProviderOption

func (*Registry) Resolve

func (r *Registry) Resolve(ctx context.Context, providerID string, modelID string) (providers.Runtime, core.SessionProviderOption, string, error)

Jump to

Keyboard shortcuts

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