#[non_exhaustive]pub struct RoundInfo<'a> {
pub invocation_id: &'a InvocationId,
pub model: &'a ModelRef,
pub tool_surface: &'a ToolSurface,
pub generation: &'a GenerationOptions,
}Expand description
Configuration visible while preparing this invocation’s material.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.invocation_id: &'a InvocationIdThe actual logical model invocation being prepared.
model: &'a ModelRefThe actual model selected by the caller.
tool_surface: &'a ToolSurfaceThe bound tools offered for this invocation.
generation: &'a GenerationOptionsThe generation settings selected by the caller.
Implementations§
Source§impl<'a> RoundInfo<'a>
impl<'a> RoundInfo<'a>
Sourcepub fn new(
invocation_id: &'a InvocationId,
model: &'a ModelRef,
tool_surface: &'a ToolSurface,
generation: &'a GenerationOptions,
) -> Self
pub fn new( invocation_id: &'a InvocationId, model: &'a ModelRef, tool_surface: &'a ToolSurface, generation: &'a GenerationOptions, ) -> Self
The facts of the round about to be invoked.
Auto Trait Implementations§
impl<'a> Freeze for RoundInfo<'a>
impl<'a> RefUnwindSafe for RoundInfo<'a>
impl<'a> Send for RoundInfo<'a>
impl<'a> Sync for RoundInfo<'a>
impl<'a> Unpin for RoundInfo<'a>
impl<'a> UnsafeUnpin for RoundInfo<'a>
impl<'a> UnwindSafe for RoundInfo<'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