pub struct ExecutionResult {
pub step_id: String,
pub parts: Vec<Part>,
pub status: ExecutionStatus,
pub reason: Option<String>,
pub timestamp: i64,
}Expand description
Execution result with detailed information
Fields§
§step_id: String§parts: Vec<Part>§status: ExecutionStatus§reason: Option<String>§timestamp: i64Implementations§
Source§impl ExecutionResult
impl ExecutionResult
pub fn is_success(&self) -> bool
pub fn is_failed(&self) -> bool
pub fn is_rejected(&self) -> bool
pub fn is_input_required(&self) -> bool
pub fn as_observation(&self) -> String
Sourcepub fn compact_for_history(&self) -> Self
pub fn compact_for_history(&self) -> Self
Compact execution results before storing in scratchpad/history used for prompt construction.
This keeps high-signal fields (tool ids/status/artifact refs) while stripping or truncating large payloads that would otherwise bloat subsequent model calls.
Trait Implementations§
Source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
Source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ExecutionResult
impl Debug for ExecutionResult
Source§impl<'de> Deserialize<'de> for ExecutionResult
impl<'de> Deserialize<'de> for ExecutionResult
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 JsonSchema for ExecutionResult
impl JsonSchema for ExecutionResult
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 ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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