package llama import "time" type Status string const ( StatusStopped Status = "stopped" StatusLoading Status = "loading" StatusReady Status = "ready" StatusSwapping Status = "swapping" StatusFailed Status = "failed" ) type State struct { CurrentModel string `json:"current_model"` TargetModel string `json:"target_model,omitempty"` Status Status `json:"status"` PID int `json:"pid,omitempty"` LoadedAt *time.Time `json:"loaded_at,omitempty"` LastError string `json:"last_error,omitempty"` SwapStartedAt *time.Time `json:"swap_started_at,omitempty"` SwapInProgress bool `json:"swap_in_progress"` } type ModelInfo struct { Name string ModelPath string Alias string CtxSize int NGPULayers int ExtraArgs map[string]interface{} IsDefault bool }