pub struct Completed {
pub response: ChatResponse,
pub termination_reason: TerminationReason,
pub iterations: u32,
pub total_usage: Usage,
}Expand description
Terminal: the loop completed successfully.
Fields§
§response: ChatResponseThe final LLM response. Use .text() to get the response text.
termination_reason: TerminationReasonWhy the loop terminated.
iterations: u32Total iterations performed.
total_usage: UsageAccumulated usage.
Auto Trait Implementations§
impl Freeze for Completed
impl RefUnwindSafe for Completed
impl Send for Completed
impl Sync for Completed
impl Unpin for Completed
impl UnwindSafe for Completed
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