#[non_exhaustive]pub enum AgentOutputContent {
Text(String),
Structured(Value),
Error(String),
}Expand description
The content type of an agent output.
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(String)
The agent returned a text response.
Structured(Value)
The agent returned a structured JSON response.
Error(String)
The agent encountered an error.
Trait Implementations§
Source§impl Clone for AgentOutputContent
impl Clone for AgentOutputContent
Source§fn clone(&self) -> AgentOutputContent
fn clone(&self) -> AgentOutputContent
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 moreAuto Trait Implementations§
impl Freeze for AgentOutputContent
impl RefUnwindSafe for AgentOutputContent
impl Send for AgentOutputContent
impl Sync for AgentOutputContent
impl Unpin for AgentOutputContent
impl UnsafeUnpin for AgentOutputContent
impl UnwindSafe for AgentOutputContent
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