pub struct ToolExecutionResultV1 {
pub schema: String,
pub identity: ToolInvocationIdentityV1,
pub prepared_digest: String,
pub outcome: ToolExecutionOutcome,
pub exit_code: Option<i32>,
pub output: Value,
pub effects: ToolEffectObservationV1,
}Fields§
§schema: String§identity: ToolInvocationIdentityV1§prepared_digest: String§outcome: ToolExecutionOutcome§exit_code: Option<i32>§output: Value§effects: ToolEffectObservationV1Implementations§
Source§impl ToolExecutionResultV1
impl ToolExecutionResultV1
pub fn validate(&self) -> Result<(), ActorError>
pub fn ensure_prepared( &self, prepared: &ToolPreparedV1, ) -> Result<(), ActorError>
pub fn unknown( prepared: &ToolPreparedV1, reason: impl Into<String>, ) -> Result<Self, ActorError>
Trait Implementations§
Source§impl Clone for ToolExecutionResultV1
impl Clone for ToolExecutionResultV1
Source§impl Debug for ToolExecutionResultV1
impl Debug for ToolExecutionResultV1
Source§impl<'de> Deserialize<'de> for ToolExecutionResultV1
impl<'de> Deserialize<'de> for ToolExecutionResultV1
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 ToolExecutionResultV1
impl PartialEq for ToolExecutionResultV1
Source§impl Serialize for ToolExecutionResultV1
impl Serialize for ToolExecutionResultV1
impl StructuralPartialEq for ToolExecutionResultV1
Auto Trait Implementations§
impl Freeze for ToolExecutionResultV1
impl RefUnwindSafe for ToolExecutionResultV1
impl Send for ToolExecutionResultV1
impl Sync for ToolExecutionResultV1
impl Unpin for ToolExecutionResultV1
impl UnsafeUnpin for ToolExecutionResultV1
impl UnwindSafe for ToolExecutionResultV1
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