pub struct RunShellArgs {
pub command: String,
pub cwd: Option<String>,
pub timeout_seconds: Option<u64>,
pub max_output_bytes: Option<u64>,
pub bg: bool,
}Fields§
§command: StringShell command line to run (executed via bash -lc), supports pipes/redirection.
cwd: Option<String>Optional working directory (relative to project root).
timeout_seconds: Option<u64>Optional timeout in seconds for foreground execution.
Omit to use the default 30 second timeout.
Must be omitted when bg=true.
For longer-running work like model training, set a larger value up front on the safe side to avoid retries.
max_output_bytes: Option<u64>Optional maximum captured bytes per stream (stdout/stderr) for foreground execution.
Must be omitted when bg=true.
Truncated output keeps roughly the first 30% and last 70%, so very large values are usually unnecessary; prefer a few KB or low tens of KB and only increase if needed.
bg: boolWhen true, spawn the shell in the background and return immediately with a shell id.
Trait Implementations§
Source§impl Clone for RunShellArgs
impl Clone for RunShellArgs
Source§fn clone(&self) -> RunShellArgs
fn clone(&self) -> RunShellArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunShellArgs
impl Debug for RunShellArgs
Source§impl<'de> Deserialize<'de> for RunShellArgs
impl<'de> Deserialize<'de> for RunShellArgs
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
Source§impl JsonSchema for RunShellArgs
impl JsonSchema for RunShellArgs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RunShellArgs
impl RefUnwindSafe for RunShellArgs
impl Send for RunShellArgs
impl Sync for RunShellArgs
impl Unpin for RunShellArgs
impl UnsafeUnpin for RunShellArgs
impl UnwindSafe for RunShellArgs
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