Struct sapiens::SapiensConfig
source · pub struct SapiensConfig {
pub model: ModelRef,
pub max_steps: usize,
pub chain_type: ChainType,
pub min_tokens_for_completion: usize,
pub max_tokens: Option<usize>,
}
Expand description
Configuration for the bot
Fields§
§model: ModelRef
The model to use
max_steps: usize
The maximum number of steps
chain_type: ChainType
The type of chain to use
min_tokens_for_completion: usize
The minimum number of tokens that need to be available for completion
max_tokens: Option<usize>
Maximum number of tokens for the model to generate
Trait Implementations§
source§impl Clone for SapiensConfig
impl Clone for SapiensConfig
source§fn clone(&self) -> SapiensConfig
fn clone(&self) -> SapiensConfig
Returns a copy 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 Debug for SapiensConfig
impl Debug for SapiensConfig
Auto Trait Implementations§
impl !RefUnwindSafe for SapiensConfig
impl Send for SapiensConfig
impl Sync for SapiensConfig
impl Unpin for SapiensConfig
impl !UnwindSafe for SapiensConfig
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request