pub struct ToolResultTerminalContent {
pub resource: Uri,
pub title: String,
pub is_pty: Option<bool>,
pub result: Option<TerminalCommandResult>,
}Expand description
A reference to a terminal whose output is relevant to this tool result.
Clients can subscribe to the terminal’s URI to stream its output in real time, providing live feedback while a tool is executing.
When the command exits, {@link result} is filled in on the completed result, retaining the outcome for clients that did not subscribe. This records the command’s exit, not the terminal’s — the terminal may keep running afterwards.
Fields§
§resource: UriTerminal URI (subscribable for full terminal state)
title: StringDisplay title for the terminal content
is_pty: Option<bool>Whether this terminal-style resource is backed by a pseudoterminal.
When false, output is plain text and clients do not need to parse
VT sequences.
result: Option<TerminalCommandResult>Outcome of the command, present once it has exited.
Trait Implementations§
Source§impl Clone for ToolResultTerminalContent
impl Clone for ToolResultTerminalContent
Source§fn clone(&self) -> ToolResultTerminalContent
fn clone(&self) -> ToolResultTerminalContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolResultTerminalContent
impl Debug for ToolResultTerminalContent
Source§impl<'de> Deserialize<'de> for ToolResultTerminalContent
impl<'de> Deserialize<'de> for ToolResultTerminalContent
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
impl StructuralPartialEq for ToolResultTerminalContent
Auto Trait Implementations§
impl Freeze for ToolResultTerminalContent
impl RefUnwindSafe for ToolResultTerminalContent
impl Send for ToolResultTerminalContent
impl Sync for ToolResultTerminalContent
impl Unpin for ToolResultTerminalContent
impl UnsafeUnpin for ToolResultTerminalContent
impl UnwindSafe for ToolResultTerminalContent
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