pub struct ToolAnswer {
pub result: ToolResult,
pub context: ToolContext,
}Expand description
A tool result and what the tool published into its context.
Fields§
§result: ToolResultThe result.
context: ToolContextThe context after the tool ran: the inbound values it ran with and the result metadata it published.
Trait Implementations§
Source§impl Clone for ToolAnswer
impl Clone for ToolAnswer
Auto Trait Implementations§
impl !RefUnwindSafe for ToolAnswer
impl !UnwindSafe for ToolAnswer
impl Forget for ToolAnswer
impl Freeze for ToolAnswer
impl Move for ToolAnswer
impl Send for ToolAnswer
impl Sync for ToolAnswer
impl Unpin for ToolAnswer
impl UnsafeUnpin for ToolAnswer
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