pub struct ToolResultTerminalCompleteContent {
pub resource: Option<Uri>,
pub exit_code: Option<i64>,
pub cwd: Option<Uri>,
pub preview: Option<String>,
pub truncated: Option<bool>,
}Expand description
Record of a command executed by a terminal-style tool (e.g. a shell tool), appended to the tool result when the command exits.
This records the command’s exit, not the terminal’s — the terminal may keep running afterwards.
When live output was exposed through a terminal channel (a {@link ToolResultTerminalContent} block in the same tool result), {@link resource} identifies that channel; otherwise this block stands alone as the retained command result.
Fields§
§resource: Option<Uri>URI of the ahp-terminal: channel that carried live output for this
command, if one was exposed.
exit_code: Option<i64>Exit code from the completed command, if reported by the runtime
cwd: Option<Uri>Working directory where the command was executed
preview: Option<String>Preview of the command’s output, if available
truncated: Option<bool>Whether preview is known to be incomplete or truncated
Trait Implementations§
Source§impl Clone for ToolResultTerminalCompleteContent
impl Clone for ToolResultTerminalCompleteContent
Source§fn clone(&self) -> ToolResultTerminalCompleteContent
fn clone(&self) -> ToolResultTerminalCompleteContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ToolResultTerminalCompleteContent
impl Default for ToolResultTerminalCompleteContent
Source§fn default() -> ToolResultTerminalCompleteContent
fn default() -> ToolResultTerminalCompleteContent
Source§impl<'de> Deserialize<'de> for ToolResultTerminalCompleteContent
impl<'de> Deserialize<'de> for ToolResultTerminalCompleteContent
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>,
Source§impl PartialEq for ToolResultTerminalCompleteContent
impl PartialEq for ToolResultTerminalCompleteContent
Source§fn eq(&self, other: &ToolResultTerminalCompleteContent) -> bool
fn eq(&self, other: &ToolResultTerminalCompleteContent) -> bool
self and other values to be equal, and is used by ==.