pub enum ResultType {
Value(String),
Agent(Agent),
ContextVariables(ContextVariables),
Termination(TerminationReason),
}Expand description
The result of an agent function execution.
Variants§
Implementations§
Source§impl ResultType
impl ResultType
pub fn into_value(self) -> Option<String>
pub fn into_agent(self) -> Option<Agent>
pub fn into_context_variables(self) -> Option<ContextVariables>
pub fn into_termination_reason(self) -> Option<TerminationReason>
Trait Implementations§
Source§impl Clone for ResultType
impl Clone for ResultType
Source§fn clone(&self) -> ResultType
fn clone(&self) -> ResultType
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 ResultType
impl !RefUnwindSafe for ResultType
impl Send for ResultType
impl Sync for ResultType
impl Unpin for ResultType
impl UnsafeUnpin for ResultType
impl !UnwindSafe for ResultType
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