pub enum ErasedToolStatus {
Progress {
stage: String,
message: String,
data: Option<Value>,
},
Completed(ToolResult),
Failed(ToolResult),
}Expand description
Type-erased status for the agent loop.
Variants§
Progress
Operation is making progress
Completed(ToolResult)
Operation completed successfully
Failed(ToolResult)
Operation failed
Trait Implementations§
Source§impl Clone for ErasedToolStatus
impl Clone for ErasedToolStatus
Source§fn clone(&self) -> ErasedToolStatus
fn clone(&self) -> ErasedToolStatus
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 ErasedToolStatus
impl Debug for ErasedToolStatus
Source§impl<'de> Deserialize<'de> for ErasedToolStatus
impl<'de> Deserialize<'de> for ErasedToolStatus
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<S: ProgressStage> From<ToolStatus<S>> for ErasedToolStatus
impl<S: ProgressStage> From<ToolStatus<S>> for ErasedToolStatus
Source§fn from(status: ToolStatus<S>) -> Self
fn from(status: ToolStatus<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErasedToolStatus
impl RefUnwindSafe for ErasedToolStatus
impl Send for ErasedToolStatus
impl Sync for ErasedToolStatus
impl Unpin for ErasedToolStatus
impl UnwindSafe for ErasedToolStatus
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