pub struct ToolRunResult {
pub output: Value,
pub prompt_text: String,
}Expand description
The two faces of a successful tool call, produced by erasure.
Mirrors Grok Build’s ToolRunResult: output is the structured value for the
report; prompt_text is the text the model reads back in history (ADR-0003).
Fields§
§output: ValueThe structured output value (into the report’s tool_calls[]).
prompt_text: StringThe model-facing rendering (into the transcript).
Trait Implementations§
Source§impl Clone for ToolRunResult
impl Clone for ToolRunResult
Source§fn clone(&self) -> ToolRunResult
fn clone(&self) -> ToolRunResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolRunResult
impl Debug for ToolRunResult
impl Eq for ToolRunResult
Source§impl PartialEq for ToolRunResult
impl PartialEq for ToolRunResult
impl StructuralPartialEq for ToolRunResult
Auto Trait Implementations§
impl Freeze for ToolRunResult
impl RefUnwindSafe for ToolRunResult
impl Send for ToolRunResult
impl Sync for ToolRunResult
impl Unpin for ToolRunResult
impl UnsafeUnpin for ToolRunResult
impl UnwindSafe for ToolRunResult
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