pub struct AgentResult { /* private fields */ }Expand description
Result of an agent query with detailed information.
Implementations§
Source§impl AgentResult
impl AgentResult
Sourcepub fn status(&self) -> AgentResultStatus
pub fn status(&self) -> AgentResultStatus
Get the result status.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Get the error message (if any).
Sourcepub fn iteration_count(&self) -> usize
pub fn iteration_count(&self) -> usize
Get the iteration count.
Sourcepub fn tokens_used(&self) -> u64
pub fn tokens_used(&self) -> u64
Get the number of tokens used.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the result was successful.
Trait Implementations§
Source§impl Clone for AgentResult
impl Clone for AgentResult
Source§fn clone(&self) -> AgentResult
fn clone(&self) -> AgentResult
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 AgentResult
impl RefUnwindSafe for AgentResult
impl Send for AgentResult
impl Sync for AgentResult
impl Unpin for AgentResult
impl UnsafeUnpin for AgentResult
impl UnwindSafe for AgentResult
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