pub struct ShellArgs {
pub command: Vec<String>,
pub timeout_ms: Option<u64>,
pub workdir: Option<String>,
}Expand description
Codex shell tool arguments
Codex uses array command format instead of string format.
§Format
{
"command": ["bash", "-lc", "ls"],
"timeout_ms": 10000,
"workdir": "/path/to/dir"
}Fields§
§command: Vec<String>Command as array of strings (e.g., [“bash”, “-lc”, “ls”])
timeout_ms: Option<u64>Timeout in milliseconds
workdir: Option<String>Working directory
Implementations§
Source§impl ShellArgs
impl ShellArgs
Sourcepub fn to_execute_args(&self) -> ExecuteArgs
pub fn to_execute_args(&self) -> ExecuteArgs
Convert Codex shell args to standard ExecuteArgs
- Joins command array into a single string
- Converts timeout_ms to timeout
- Preserves workdir in extra field
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShellArgs
impl<'de> Deserialize<'de> for ShellArgs
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 ShellArgs
impl RefUnwindSafe for ShellArgs
impl Send for ShellArgs
impl Sync for ShellArgs
impl Unpin for ShellArgs
impl UnwindSafe for ShellArgs
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