modelruntime

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultModel         string
	DefaultProvider      string
	DefaultAudioModel    string
	DefaultAudioProvider string
	ContextLength        int
	NoDeleteModels       bool
	SkipBackendCycle     bool
	Tracing              bool
	TenantID             string
	Bus                  libbus.Messenger
	KVStore              libkvstore.KVManager
	State                *runtimestate.State
	Tracker              libtracker.ActivityTracker
}

Config configures model discovery, routing and their backing resources.

type Runtime

type Runtime struct {
	Models     llmrepo.ModelRepo
	AudioModel llmrepo.ModelConfig
	State      *runtimestate.State
	Bus        libbus.Messenger
	KVStore    libkvstore.KVManager
	Tracker    libtracker.ActivityTracker
	Stop       func()
}

Runtime owns model-serving resources without constructing an agent or tools. Stop releases only resources created by Build, not injected resources.

func Build

func Build(ctx context.Context, db libdbexec.DBManager, cfg Config) (*Runtime, error)

Build initializes the model runtime shared by the harness and HTTP gateway.

Jump to

Keyboard shortcuts

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