modeldmanagement

package
v1.0.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 8 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

Overview

Package modeldmanagement owns installation and status inspection of the local inference worker.

Index

Constants

This section is empty.

Variables

View Source
var Contract = servicecontract.Contract{
	ID: "modeld-management", Summary: "Install or inspect the local inference worker.",
	Description: "The same managed worker installation is used by automatic IDE setup and direct runtime clients.",
	Operations: []servicecontract.Operation{
		{ID: string(ActionDescribe), Summary: "Describe local worker management."},
		{ID: string(ActionInstall), Summary: "Install a compatible verified worker.", Inputs: []servicecontract.Input{{ID: "backend", Summary: "Required inference backend.", Type: "string", Required: true}}},
		{ID: string(ActionStatus), Summary: "Probe the worker lease and inference endpoint."},
	},
}

Contract describes modeld management for every product surface.

Functions

This section is empty.

Types

type Action

type Action string

Action selects a modeld management operation.

const (
	// ActionDescribe returns the transport-neutral contract.
	ActionDescribe Action = "describe"
	// ActionInstall installs a compatible local worker.
	ActionInstall Action = "install"
	// ActionStatus probes the installed local worker.
	ActionStatus Action = "status"
)

type Request

type Request struct {
	Action   Action
	Backend  string
	Progress io.Writer
}

Request selects one modeld management operation.

type Result

type Result struct {
	Contract *servicecontract.Contract `json:"contract,omitempty"`
	Install  *modeldinstall.Result     `json:"install,omitempty"`
	Status   *modeldprobe.Status       `json:"status,omitempty"`
}

Result carries a modeld management result.

func Execute

func Execute(ctx context.Context, service Service, request Request) (*Result, error)

Execute validates and invokes one modeld management operation.

type Service

type Service interface {
	Install(context.Context, string, io.Writer) (modeldinstall.Result, error)
	Status(context.Context) modeldprobe.Status
}

Service manages the local inference worker.

func New

func New(dataRoot, baseURL, clientVersion string) (Service, error)

New constructs modeld management for one installation.

Jump to

Keyboard shortcuts

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