pub enum Request {
Show 18 variants
Ping,
GetSecret {
provider: String,
},
HasSecret {
provider: String,
},
ListProviders,
RefreshSecret {
provider: String,
},
ModelList,
ModelPull {
name: String,
},
ModelLoad {
name: String,
config: Option<LoadConfig>,
},
ModelUnload {
name: String,
},
ModelStatus,
ModelDelete {
name: String,
},
ModelRun {
model: String,
prompt: String,
system: Option<String>,
temperature: Option<f32>,
stream: bool,
},
JobSubmit {
workflow: String,
args: Vec<String>,
name: Option<String>,
priority: i32,
},
JobStatus {
job_id: String,
},
JobList {
state: Option<String>,
},
JobCancel {
job_id: String,
},
JobStats,
WatcherStatus,
}Expand description
Request sent to the daemon.
Variants§
Ping
Ping the daemon to check it’s alive.
GetSecret
Get a secret for a provider.
HasSecret
Check if a secret exists.
ListProviders
List all available providers.
RefreshSecret
Refresh/reload a secret from keychain into daemon cache.
Used after spn provider set to invalidate stale cached values.
ModelList
List all installed models.
ModelPull
Pull/download a model.
ModelLoad
Load a model into memory.
ModelUnload
Unload a model from memory.
ModelStatus
Get status of running models.
ModelDelete
Delete a model.
ModelRun
Run inference on a model.
Fields
JobSubmit
Submit a workflow job for background execution.
Fields
JobStatus
Get status of a specific job.
JobList
List all jobs (optionally filtered by state).
JobCancel
Cancel a running or pending job.
JobStats
Get scheduler statistics.
WatcherStatus
Get watcher status (watched paths, foreign MCPs, recent projects).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more