sessionreuse

package
v0.10.257 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sessionreuse validates default and named LLM session reuse scope.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeModel

func NormalizeModel(model string) string

NormalizeModel returns the canonical stored model value.

func Validate

func Validate(scope Scope) error

Validate rejects incomplete scope tuples.

Types

type CheckResult

type CheckResult struct {
	Warning string
}

CheckResult describes compatible scope drift that callers may surface.

func Check

func Check(stored Scope, active Scope) (CheckResult, error)

Check compares stored and active scopes.

type Scope

type Scope struct {
	Name     string
	Profile  string
	Provider string
	Adapter  string
	Model    string
	Host     string
}

Scope is the compatibility tuple for one provider session.

func Normalize

func Normalize(scope Scope) Scope

Normalize returns scope with trimmed fields and normalized model.

Jump to

Keyboard shortcuts

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