pub struct ExternalToolTextResultForLlmContentTerminal {
pub cwd: Option<String>,
pub exit_code: Option<i64>,
pub text: String,
pub type: ExternalToolTextResultForLlmContentTerminalType,
}Expand description
Terminal/shell output content block with optional exit code and working directory
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§cwd: Option<String>Working directory where the command was executed
exit_code: Option<i64>Process exit code, if the command has completed
text: StringTerminal/shell output text
type: ExternalToolTextResultForLlmContentTerminalTypeContent block type discriminator
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExternalToolTextResultForLlmContentTerminal
impl<'de> Deserialize<'de> for ExternalToolTextResultForLlmContentTerminal
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 ExternalToolTextResultForLlmContentTerminal
impl RefUnwindSafe for ExternalToolTextResultForLlmContentTerminal
impl Send for ExternalToolTextResultForLlmContentTerminal
impl Sync for ExternalToolTextResultForLlmContentTerminal
impl Unpin for ExternalToolTextResultForLlmContentTerminal
impl UnsafeUnpin for ExternalToolTextResultForLlmContentTerminal
impl UnwindSafe for ExternalToolTextResultForLlmContentTerminal
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