pub struct Turn<'a> {
pub number: usize,
pub model: &'a str,
pub deadline: Instant,
pub cancellation: &'a CancellationToken,
pub max_tokens: Option<u64>,
pub tokens_used: &'a mut u64,
}Fields§
§number: usize§model: &'a strThe model the request asked for; a response from another model fails its attempt.
deadline: Instant§cancellation: &'a CancellationToken§max_tokens: Option<u64>The review’s maxTokens, if any.
tokens_used: &'a mut u64The tokens the review has spent; every attempt of the turn adds its own.
Auto Trait Implementations§
impl<'a> !UnwindSafe for Turn<'a>
impl<'a> Freeze for Turn<'a>
impl<'a> RefUnwindSafe for Turn<'a>
impl<'a> Send for Turn<'a>
impl<'a> Sync for Turn<'a>
impl<'a> Unpin for Turn<'a>
impl<'a> UnsafeUnpin for Turn<'a>
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