#[non_exhaustive]pub enum AgentProgress {
TextDelta(String),
Text(String),
ToolUse(String),
}Expand description
Progress while an agent works.
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.
TextDelta(String)
A piece of the answer.
Text(String)
A whole message (backends that do not stream pieces).
ToolUse(String)
The agent started using a tool.
Trait Implementations§
Source§impl Clone for AgentProgress
impl Clone for AgentProgress
Source§impl Debug for AgentProgress
impl Debug for AgentProgress
impl Eq for AgentProgress
Source§impl PartialEq for AgentProgress
impl PartialEq for AgentProgress
impl StructuralPartialEq for AgentProgress
Auto Trait Implementations§
impl Freeze for AgentProgress
impl RefUnwindSafe for AgentProgress
impl Send for AgentProgress
impl Sync for AgentProgress
impl Unpin for AgentProgress
impl UnsafeUnpin for AgentProgress
impl UnwindSafe for AgentProgress
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