pub struct CommandResult {
pub source: String,
pub event_ref: CommandEventReference,
pub tool_call_id: Option<String>,
pub tool_name: Option<String>,
pub command: Option<String>,
pub command_truncated: bool,
pub status: String,
pub exit_code: Option<i32>,
}Expand description
Historical command observation, never a semantic assertion of task correctness. Output streams and private reasoning are intentionally excluded.
Fields§
§source: StringCanonical source: tool_output or command_execution.
event_ref: CommandEventReferenceReference to the canonical result item for local diagnostics.
tool_call_id: Option<String>Native tool-call identity, when available; not used to guess correlations.
tool_name: Option<String>Command tool name, when supplied by a matching invocation.
command: Option<String>Recorded command text; null when a preceding invocation cannot be matched.
command_truncated: boolWhether command text was shortened, sanitized, or separately appended argv was omitted.
status: StringCanonical status: completed, failed, or in_progress.
A completed tool call can yield a running command with a null exit code.
exit_code: Option<i32>Observed command exit code. Null never implies zero or terminal success.
Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Source§impl Debug for CommandResult
impl Debug for CommandResult
Source§impl JsonSchema for CommandResult
impl JsonSchema for CommandResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto 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