#[non_exhaustive]pub enum ToolProgress {
Text {
text: String,
},
Partial {
delta: String,
total_bytes: u64,
truncated: bool,
gap: u64,
},
Custom {
subkind: String,
payload: Value,
},
}Expand description
Progress payload shapes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
Free-form text chunk.
Partial
Incremental partial output (W3.3).
Fields
Custom
Tool-defined progress.
Implementations§
Trait Implementations§
Source§impl Clone for ToolProgress
impl Clone for ToolProgress
Source§fn clone(&self) -> ToolProgress
fn clone(&self) -> ToolProgress
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 ToolProgress
impl Debug for ToolProgress
Source§impl<'de> Deserialize<'de> for ToolProgress
impl<'de> Deserialize<'de> for ToolProgress
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 PartialEq for ToolProgress
impl PartialEq for ToolProgress
Source§impl Serialize for ToolProgress
impl Serialize for ToolProgress
impl StructuralPartialEq for ToolProgress
Auto Trait Implementations§
impl Freeze for ToolProgress
impl RefUnwindSafe for ToolProgress
impl Send for ToolProgress
impl Sync for ToolProgress
impl Unpin for ToolProgress
impl UnsafeUnpin for ToolProgress
impl UnwindSafe for ToolProgress
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