pub struct StepConfig {
pub step_prefix: Option<String>,
pub stop_word_done: String,
pub stop_word_no_result: Option<String>,
pub use_counter: bool,
pub cache_prompt: bool,
pub grammar: Grammar,
pub logit_bias: LogitBias,
}Fields§
§step_prefix: Option<String>§stop_word_done: String§stop_word_no_result: Option<String>§use_counter: bool§cache_prompt: bool§grammar: Grammar§logit_bias: LogitBiasImplementations§
Source§impl StepConfig
impl StepConfig
pub fn step_prefix<T: Into<String>>(&mut self, step_prefix: T) -> &mut Self
pub fn stop_word_done<T: Into<String>>( &mut self, stop_word_done: T, ) -> &mut Self
pub fn stop_word_no_result<T: Into<String>>( &mut self, stop_word_no_result: T, ) -> &mut Self
pub fn use_counter(&mut self, use_counter: bool) -> &mut Self
pub fn cache_prompt(&mut self, cache_prompt: bool) -> &mut Self
pub fn grammar(&mut self, grammar: Grammar) -> &mut Self
Trait Implementations§
Source§impl Clone for StepConfig
impl Clone for StepConfig
Source§fn clone(&self) -> StepConfig
fn clone(&self) -> StepConfig
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 StepConfig
impl !RefUnwindSafe for StepConfig
impl Send for StepConfig
impl !Sync for StepConfig
impl Unpin for StepConfig
impl UnwindSafe for StepConfig
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 more