pub struct GenericRunnerRequest<MsgCt, Tmpl> {
pub messages: Vec<(MessageRole, MsgCt)>,
pub sampling: SimpleSamplingParams,
pub llguidance: Option<LlguidanceSamplingParams>,
pub max_seq: usize,
pub prefill: Option<String>,
pub tmpl: Tmpl,
}Fields§
§messages: Vec<(MessageRole, MsgCt)>§sampling: SimpleSamplingParams§llguidance: Option<LlguidanceSamplingParams>§max_seq: usize§prefill: Option<String>§tmpl: TmplTrait Implementations§
Source§impl<MsgCt: Clone, Tmpl: Clone> Clone for GenericRunnerRequest<MsgCt, Tmpl>
impl<MsgCt: Clone, Tmpl: Clone> Clone for GenericRunnerRequest<MsgCt, Tmpl>
Source§fn clone(&self) -> GenericRunnerRequest<MsgCt, Tmpl>
fn clone(&self) -> GenericRunnerRequest<MsgCt, Tmpl>
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 moreSource§impl<M, T> Default for GenericRunnerRequest<M, T>where
T: Default,
impl<M, T> Default for GenericRunnerRequest<M, T>where
T: Default,
Source§impl<'a, Tmpl> From<GenericRunnerRequest<&'a str, Tmpl>> for GenericVisionLmRequest<'a, Tmpl>
impl<'a, Tmpl> From<GenericRunnerRequest<&'a str, Tmpl>> for GenericVisionLmRequest<'a, Tmpl>
Source§fn from(value: GenericTextLmRequest<'a, Tmpl>) -> Self
fn from(value: GenericTextLmRequest<'a, Tmpl>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<MsgCt, Tmpl> Freeze for GenericRunnerRequest<MsgCt, Tmpl>where
Tmpl: Freeze,
impl<MsgCt, Tmpl> RefUnwindSafe for GenericRunnerRequest<MsgCt, Tmpl>where
Tmpl: RefUnwindSafe,
MsgCt: RefUnwindSafe,
impl<MsgCt, Tmpl> Send for GenericRunnerRequest<MsgCt, Tmpl>
impl<MsgCt, Tmpl> Sync for GenericRunnerRequest<MsgCt, Tmpl>
impl<MsgCt, Tmpl> Unpin for GenericRunnerRequest<MsgCt, Tmpl>
impl<MsgCt, Tmpl> UnsafeUnpin for GenericRunnerRequest<MsgCt, Tmpl>where
Tmpl: UnsafeUnpin,
impl<MsgCt, Tmpl> UnwindSafe for GenericRunnerRequest<MsgCt, Tmpl>where
Tmpl: UnwindSafe,
MsgCt: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().