pub struct ToolResultExpanded {
pub text_result_for_llm: String,
pub result_type: String,
pub session_log: Option<String>,
pub error: Option<String>,
}Expand description
Expanded tool result with metadata for the LLM and session log.
Fields§
§text_result_for_llm: StringResult text sent back to the LLM.
result_type: String"success" or "failure".
session_log: Option<String>Optional log message for the session timeline.
error: Option<String>Error message, if the tool failed.
Trait Implementations§
Source§impl Clone for ToolResultExpanded
impl Clone for ToolResultExpanded
Source§fn clone(&self) -> ToolResultExpanded
fn clone(&self) -> ToolResultExpanded
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 ToolResultExpanded
impl Debug for ToolResultExpanded
Source§impl<'de> Deserialize<'de> for ToolResultExpanded
impl<'de> Deserialize<'de> for ToolResultExpanded
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
Auto Trait Implementations§
impl Freeze for ToolResultExpanded
impl RefUnwindSafe for ToolResultExpanded
impl Send for ToolResultExpanded
impl Sync for ToolResultExpanded
impl Unpin for ToolResultExpanded
impl UnsafeUnpin for ToolResultExpanded
impl UnwindSafe for ToolResultExpanded
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