pub enum SomaAction {
Show 18 variants
Greet {
name: Option<String>,
},
Echo {
message: String,
},
Status,
PythonEnvironmentStatus,
PythonEnvironmentPrunePlan {
stale_before_unix_seconds: u64,
max_entries: usize,
},
PythonEnvironmentPrune {
stale_before_unix_seconds: u64,
max_entries: usize,
},
PythonEnvironmentRepair {
provider_path: String,
},
PythonEnvironmentUpdate {
provider_path: String,
},
PythonWorkerStatus,
PythonWorkerCancel {
provider: String,
},
PythonWorkerReset {
provider: String,
},
PythonGenerationStatus,
PythonGenerationRollback {
generation_id: u64,
},
PythonGraduationStatus {
workspace: String,
},
PythonGraduationApply {
operation: String,
workspace: String,
source: Option<String>,
component: Option<String>,
fixtures: Option<String>,
wheelhouse: Option<String>,
},
Help,
ElicitName,
ScaffoldIntent,
}Expand description
A parsed, validated action request ready for dispatch.
Variants§
Greet
Return a greeting, optionally addressed to name.
Echo
Echo message back unchanged.
Status
Return server status and configuration info.
PythonEnvironmentStatus
Inspect immutable Python environment cache state.
PythonEnvironmentPrunePlan
Plan a bounded prune of stale non-ready Python environment entries.
Fields
PythonEnvironmentPrune
Apply a bounded prune of stale non-ready Python environment entries.
Fields
PythonEnvironmentRepair
Repair one managed Python provider environment.
Fields
PythonEnvironmentUpdate
Prepare and atomically activate one managed Python provider update.
Fields
PythonWorkerStatus
Inspect persistent Python worker state and bounded redacted logs.
PythonWorkerCancel
Cancel one active persistent Python invocation.
PythonWorkerReset
Clear one persistent Python worker crash-loop quarantine.
PythonGenerationStatus
Inspect active and retained Python provider generations.
PythonGenerationRollback
Atomically reactivate one retained generation.
PythonGraduationStatus
Inspect one Python graduation workspace.
PythonGraduationApply
Run one confirmed Python graduation mutation.
Fields
Help
Show the action reference.
ElicitName
Ask the MCP client to collect a name, then greet it (MCP-only).
ScaffoldIntent
Collect scaffold setup intent via MCP elicitation (MCP-only).
Implementations§
Source§impl SomaAction
impl SomaAction
Sourcepub fn from_mcp_args(args: &Value) -> Result<Self>
pub fn from_mcp_args(args: &Value) -> Result<Self>
Parses an action from an MCP tool-call argument object.
Trait Implementations§
Source§impl Clone for SomaAction
impl Clone for SomaAction
Source§fn clone(&self) -> SomaAction
fn clone(&self) -> SomaAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SomaAction
impl Debug for SomaAction
Source§impl PartialEq for SomaAction
impl PartialEq for SomaAction
Source§fn eq(&self, other: &SomaAction) -> bool
fn eq(&self, other: &SomaAction) -> bool
self and other values to be equal, and is used by ==.impl Eq for SomaAction
impl StructuralPartialEq for SomaAction
Auto Trait Implementations§
impl Freeze for SomaAction
impl RefUnwindSafe for SomaAction
impl Send for SomaAction
impl Sync for SomaAction
impl Unpin for SomaAction
impl UnsafeUnpin for SomaAction
impl UnwindSafe for SomaAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.