pub struct ToolExecutionEffect {
pub result: ToolResult,
/* private fields */
}Expand description
Structured tool effect used by the action/reducer pipeline.
Tools return a ToolResult plus typed AfterToolExecuteActions applied
during AfterToolExecute before plugin hooks run. State actions are
extracted for execution-patch reduction (parallel conflict detection).
Fields§
§result: ToolResultImplementations§
Source§impl ToolExecutionEffect
impl ToolExecutionEffect
pub fn new(result: ToolResult) -> Self
Sourcepub fn with_action(self, action: impl Into<AfterToolExecuteAction>) -> Self
pub fn with_action(self, action: impl Into<AfterToolExecuteAction>) -> Self
Add a typed action applied during AfterToolExecute before plugin hooks.
pub fn into_parts(self) -> (ToolResult, Vec<AfterToolExecuteAction>)
Trait Implementations§
Source§impl From<ToolResult> for ToolExecutionEffect
impl From<ToolResult> for ToolExecutionEffect
Source§fn from(result: ToolResult) -> Self
fn from(result: ToolResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ToolExecutionEffect
impl !RefUnwindSafe for ToolExecutionEffect
impl Send for ToolExecutionEffect
impl !Sync for ToolExecutionEffect
impl Unpin for ToolExecutionEffect
impl !UnwindSafe for ToolExecutionEffect
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