pub struct CommandResult {
pub chunk_id: String,
pub command: String,
pub description: String,
pub exit_code: i32,
pub terminal_status: String,
pub output: String,
pub original_output_bytes: u64,
pub original_output_tokens: u64,
pub truncated: bool,
pub extra: Map<String, Value>,
}Expand description
Structured result packed into ToolResult::text for the bash/command
tool. Real capture from #294:
{
"chunk_id": "exec-12-1",
"command": "curl -s https://example.com | jq .",
"description": "Test muse registration",
"exit_code": 0,
"terminal_status": "completed",
"output": "{\\n \"ok\": true\\n}",
"original_output_bytes": 394,
"original_output_tokens": 99,
"truncated": false
}Field notes: command/description are the shell line and Muse’s
one-line rationale; output is combined stdout/stderr already truncated
to budget; original_output_* are pre-truncation sizes; truncated
signals truncation. Extra fields survive in extra.
Fields§
§chunk_id: String§command: String§description: String§exit_code: i32§terminal_status: String§output: String§original_output_bytes: u64§original_output_tokens: u64§truncated: bool§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Source§fn clone(&self) -> CommandResult
fn clone(&self) -> CommandResult
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 CommandResult
impl Debug for CommandResult
Source§impl<'de> Deserialize<'de> for CommandResult
impl<'de> Deserialize<'de> for CommandResult
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 PartialEq for CommandResult
impl PartialEq for CommandResult
Source§impl Serialize for CommandResult
impl Serialize for CommandResult
impl StructuralPartialEq for CommandResult
Auto Trait Implementations§
impl Freeze for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnsafeUnpin for CommandResult
impl UnwindSafe for CommandResult
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