#[non_exhaustive]pub struct DebugToolResult {
pub tool_use_id: Option<String>,
pub content: Value,
pub is_error: bool,
}Expand description
A tool result returned to the model after a tool call.
Carries the tool output (any JSON value: string, object, array) and an error flag if the tool failed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tool_use_id: Option<String>The tool_use_id this result answers, matching DebugToolCall::id.
content: ValueRaw content returned by the tool.
is_error: boolWhether the tool reported an error.
Trait Implementations§
Source§impl Clone for DebugToolResult
impl Clone for DebugToolResult
Source§fn clone(&self) -> DebugToolResult
fn clone(&self) -> DebugToolResult
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 DebugToolResult
impl Debug for DebugToolResult
Source§impl<'de> Deserialize<'de> for DebugToolResult
impl<'de> Deserialize<'de> for DebugToolResult
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 Display for DebugToolResult
impl Display for DebugToolResult
Auto Trait Implementations§
impl Freeze for DebugToolResult
impl RefUnwindSafe for DebugToolResult
impl Send for DebugToolResult
impl Sync for DebugToolResult
impl Unpin for DebugToolResult
impl UnsafeUnpin for DebugToolResult
impl UnwindSafe for DebugToolResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.