Versions in this module Expand all Collapse all v0 v0.209.1 Nov 8, 2026 v0.209.0 Nov 8, 2026 v0.207.0 Oct 30, 2026 v0.206.0 Oct 29, 2026 Changes in this version + const BandNormal + const BandSheddable + const BandUrgent + const ChatBodyCap + const ChatLanePath + const ChatProxyTimeout + const ComposeProjectPath + const ComposeProjectTask + const ComposeTask + const DefaultPollLease + const ErrInterrupted + const ErrNeverStarted + const ErrReaped + const ErrWithdrawn + const FleetBusyLeaseSecDefault + const ForecastBodyCap + const ForecastTask + const HostPeakPercentile + const KVSlotRestorePath + const KVSlotSavePath + const MaxJobWaitSec + const MediaJobPath + const MediaJobTask + const MeminfoSource + const PairRelayTask + const PowerProfileOK + const PowerProfileSkipped + const PowerProfileUnknown + const RefusalNotCapable + const STTUploadPath + const STTUploadTask + const TenantHeader + const TextBodyCap + const TextTask + const VisionTask + const WithdrawnState + func AdapterUsageGiB() (dedicatedGiB, sharedGiB float64, err error) — windows/amd64 + func AgentLaneAdmissible(cfg config.Config, loopbackListener bool) bool + func AgentLaneSafelyReachable(cfg config.Config, loopbackListener bool) bool + func ChatLaneAdmissible(cfg config.Config, loopbackListener bool) bool + func ClampBand(b int) int + func ComposeProjectBodyCap(cfg config.Config) int64 + func ConfigLoopbackListen(cfg config.Config) bool + func DedicatedVramTotalGiB() (float64, error) + func FetchRefs(ctx context.Context, refs map[string]string, destDir string, ...) (paths map[string]string, cleanup func(), err error) + func ForecastLaneAdmissible(cfg config.Config, loopbackListener bool) bool + func InstalledJSONPath() string + func MediaJobBodyCap(cfg config.Config) int64 + func PairRelayAdmissible(cfg config.Config, loopbackListener, localIdentity bool) bool + func ProcessNames() (map[int]string, error) + func ResetMediaRoutesCache() + func STTUploadAdmissible(cfg config.Config, loopbackListener bool) bool + func STTUploadBodyCap(cfg config.Config) int64 + func SetMediaRoutesSourceForTest(fn func(config.Config) []mediacap.Route) (restore func()) + func SupportedTasksFor(cfg config.Config, loopbackListener bool) []string + func SweepKVSlotDir(dir string, capBytes int64, keep string) error + func SweepOrphanedInputDirs(cfg config.Config, now time.Time) (swept int, err error) + func SweepOrphanedPipelineJobs(cfg config.Config) (swept, kept int, err error) + func SweepOrphanedProjectDirs(cfg config.Config, now time.Time) (swept int, err error) + func SweepOrphanedSTTUploads(cfg config.Config, now time.Time) (swept int, err error) + func SweepSTTTranscripts(cfg config.Config, now time.Time) (swept int, err error) + func SystemRAMGiB() (float64, error) — windows/amd64 + func Terminal(s JobState) bool + func TextLaneAdmissible(cfg config.Config, loopbackListener bool) bool + func TreeDedicatedPlusSharedGiB(rootPid int) (float64, error) + func UMAFromProfile(profile string) (uma, ok bool) + func VendorArchFromProfile(profile string) (vendor, arch string) + func VisionBodyCap(cfg config.Config) int64 + func VisionLaneAdmissible(cfg config.Config, loopbackListener bool) bool + type AccelPayload struct + Accelerator string + Args map[string]any + ImageB64 string + ImageName string + Tool string + type AcceptSpec struct + Agent bool + Band int + Gated bool + Model string + OnDropped func() + OnEvict func() + PollLeased bool + Task string + Tenant string + Uncapped bool + type Artifact struct + Bytes int64 + Name string + SHA256 string + type BaselineTracker struct + func (b *BaselineTracker) Baseline() (gib float64, at time.Time, ok bool) + func (b *BaselineTracker) Observe(usedGiB float64, oursLoaded bool, now time.Time) + func (b *BaselineTracker) Verdict(usedGiB float64, oursLoaded bool) ReclaimVerdict + type ComposeProjectPayload struct + Bundle string + BundleSHA256 string + Composition string + FPS float64 + Format string + JobID string + Quality string + Resolution string + Snapshots []float64 + Strict *bool + Workers float64 + type DeviceProbe func() ([]GPUDevice, error) + func AmdgpuSysfsDeviceProbe(drmRoot string, uma bool) DeviceProbe + func SmiDeviceProbe(run func() (string, error)) DeviceProbe type FootprintEntry + HostPeakGiB float64 + HostResidentPeakGiB float64 type Footprints + func (f *Footprints) HostPeak(family, quant, task string) (HostPeaks, bool) + func (f *Footprints) RecordHost(family, quant, task string, privateGiB, residentGiB float64) + type ForecastPayload struct + JobID string + Request json.RawMessage + type GPUDevice = gpuprobe.Device + func HeadlineDevice(devices []GPUDevice) GPUDevice + func ParseSmiMemoryDevices(out string) ([]GPUDevice, error) + func SelectHeadlineDevice(devices []GPUDevice, primaryUUID string) (head GPUDevice, warning string) + type GenericProvider struct + Probe MemProbe + Source string + type HostPeaks struct + MaxPrivateGiB float64 + MaxResidentGiB float64 + PrivateGiB float64 + ResidentGiB float64 + Runs int + Window int + type ImageFamily struct + CommercialUse *bool + Default bool + Engine string + Family string + License *string + Name string + func ImageFamilies(cfg config.Config) []ImageFamily + type ImageRecipeHealth struct + Default bool + Digest string + Name string + func ImageRecipes(cfg config.Config) []ImageRecipeHealth + type InstalledInfo struct + Accelerators []string + AltBackends []string + Backend string + Profile string + func ReadInstalledInfo(path string) (InstalledInfo, error) + func (i InstalledInfo) Backends() []string type JobView + AcceptedAt time.Time + Agent bool + ErrClass string + FinishedAt time.Time + Gated bool + Model string + Progress *core.LiveProgress + StartedAt time.Time + Task string + WallSec int type Jobs + func (j *Jobs) AcceptAgent(id string, run func(context.Context) (json.RawMessage, error)) (created bool) + func (j *Jobs) Admit(id string, spec AcceptSpec, run func(context.Context) (json.RawMessage, error)) (created bool) + func (j *Jobs) Counts() (queued, running int) + func (j *Jobs) CountsCapped() (queued, running int) + func (j *Jobs) FinishedAgentWalls(n int) []time.Duration + func (j *Jobs) IdleSlot() bool + func (j *Jobs) MaxConcurrent() int + func (j *Jobs) OnFinish(fn func()) + func (j *Jobs) OnSweep(fn func()) + func (j *Jobs) PollLease() time.Duration + func (j *Jobs) Recent(n int) []JobView + func (j *Jobs) RunningCapped() int + func (j *Jobs) SetPollLease(d time.Duration) + func (j *Jobs) SetProgress(id string, p core.LiveProgress) + func (j *Jobs) SetWall(id string, sec int) + func (j *Jobs) TakenBack() (withdrawn, reaped int) + func (j *Jobs) Touch(id string) + func (j *Jobs) WaitTerminal(ctx context.Context, id string, d time.Duration) (*JobView, bool) + func (j *Jobs) Withdraw(id string) WithdrawResult + type KVSlotRequest struct + Key string + Seat string + SeatPinSHA256 string + type KVSlotResponse struct + Action string + Bytes int64 + Key string + Ms int64 + Note string + Seat string + Status string + Tokens int + Upstream string + type LeaseEntry struct + Busy bool + Class string + Devices []string + Draining bool + Epoch uint64 + Exclusive bool + Overdue bool + RemainingSec int + Scope string + Until string + Verdict string + type LeaseHealth struct + Busy bool + Class string + Expired bool + Held bool + Overdue bool + PID int + Reason string + RemainingSec int + Until string + type LeaseStanding struct + Orphaned bool + Stalled bool + TreeOrphan bool + type MediaJobPayload struct + Bundle string + BundleSHA256 string + Inputs map[string]string + JobID string + Payload json.RawMessage + TaskType string + type MediaRecipeHealth = mediacap.LaneRow + func MediaRecipes(cfg config.Config) []MediaRecipeHealth + type MediaRouteHealth struct + Engine string + Route string + State string + func MediaRoutesHealth(cfg config.Config) []MediaRouteHealth + type MemProbe func() (totalGiB, usedGiB float64, err error) + func AmdgpuSysfsProbe(drmRoot string, uma bool) MemProbe + func GenericWindowsProbe(uma bool) MemProbe + func MeminfoUMAProbe(root string, reserveGiB float64) MemProbe + func SmiProbe(run func() (string, error)) MemProbe type Options + Accelerators []string + Backends []string + GpuFaults func() *gpuactivity.FaultSummary + Host func() (hostsample.Sample, bool) + KVSlotCapGiB int + KVSlotDir string + Lease func() gpulease.Info + LeaseStanding func(gpulease.Info) gpulease.Standing + LoopbackListener bool + Pair *pairworkloads.Emitter + PowerProfile func() *PowerProfileHealth + Reclaim func(freeGiB, totalGiB float64) ReclaimVerdict + ServingConfig func() (specSHA256, state string) + Store func() storesteward.Status + Version string + type PowerProfileHealth struct + AppliedAt string + ClockLock bool + LimitW []int + Reason string + State string + type ProcessDedicated struct + MiB int + PID int + func AllProcessDedicatedMiB() ([]ProcessDedicated, error) + type ReclaimInputs struct + BaselineGiB float64 + HaveBaseline bool + OursLoaded bool + UsedGiB float64 + type ReclaimVerdict struct + Known bool + ReclaimableGiB float64 + Source string + func Reclaimable(in ReclaimInputs) ReclaimVerdict + type ResolvedProvider struct + Arch string + Probe MemProbe + Source string + TotalGiB float64 + UsedGiB float64 + Vendor string + func ResolveProvider(smi MemProbe, generic MemProbe, smiIdentity func() (vendor, arch string), ...) (ResolvedProvider, error) + func ResolveProviderNamed(smi MemProbe, generic GenericProvider, ...) (ResolvedProvider, error) + type STTUploadPayload struct + AudioB64 sttB64 + AudioExt string + HQ bool + JobID string + Language string type Sampler + func StartDeviceProbeSampler(ctx context.Context, interval time.Duration, probe DeviceProbe, ...) *Sampler + func StartProbeSampler(ctx context.Context, interval time.Duration, probe MemProbe) *Sampler + type SaturationHealth struct + High bool + IdleSlot bool + Score float64 + type SeatBudgetHealth struct + FinalTokens int + StepTokens int + Thinking string + type SeatRateHealth struct + ColdLoadSec float64 + MinTurnSec int + PrefillSlowTokS float64 + PrefillTokS float64 + Samples int + TokS float64 type Server + func (s *Server) EnableQueueHost(dbPath string) (*fleetqueue.Queue, error) + func (s *Server) RefreshAgentResidency() + func (s *Server) StartClaimLoop(ctx context.Context, cfg config.Config) type Snapshot + Devices []GPUDevice + DisplayUUIDs map[string]bool + type TextPayload struct + Input string + JobID string + Params map[string]any + Task string + type VisionPayload struct + Brief string + Image string + JobID string + Question string + Task string + type WithdrawResult struct + Found bool + State JobState + Withdrawn bool v0.22.0 Jul 18, 2026 Changes in this version + func BuildRequest(cfg config.Config, taskType string, payload json.RawMessage) (core.Request, func(), error) + func Families(cfg config.Config) []string + func ParseSmiMemory(out string) (totalGiB, usedGiB float64, err error) + func SupportedTasks(cfg config.Config) []string + func TreeDedicatedGiB(rootPid int) (float64, error) + type FootprintEntry struct + ModelFamily string + Quant string + TaskType string + VramPeakGiB float64 + type Footprints struct + func OpenFootprints(path string) *Footprints + func (f *Footprints) Entries() []FootprintEntry + func (f *Footprints) Path() string + func (f *Footprints) Record(family, quant, task string, observedGiB float64) + func (f *Footprints) ReloadIfChanged() + type JobState string + const JobAccepted + const JobDone + const JobError + const JobRunning + type JobView struct + Data json.RawMessage + Error string + ID string + State JobState + type Jobs struct + func NewJobs(ttl time.Duration) *Jobs + func (j *Jobs) Accept(id string, run func(context.Context) (json.RawMessage, error)) (created bool) + func (j *Jobs) DrainAndStop(timeout time.Duration) + func (j *Jobs) Draining() bool + func (j *Jobs) Get(id string) (*JobView, bool) + func (j *Jobs) QueueDepth() int + type Options struct + Cfg config.Config + Footprints func() []FootprintEntry + GpuArch string + GpuVendor string + NodeID string + Snapshot func() (Snapshot, bool) + type Runner interface + Run func(ctx context.Context, req core.Request) core.Result + type Sampler struct + func StartGlobalSampler(ctx context.Context, interval time.Duration, run func() (string, error)) *Sampler + func (s *Sampler) Load() (Snapshot, bool) + type Server struct + func New(runner Runner, jobs *Jobs, opts Options) *Server + func (s *Server) Handler() http.Handler + func (s *Server) Serve(l net.Listener) error + type Snapshot struct + At time.Time + FreeGiB float64 + TotalGiB float64