pub struct LlmProfile {
pub tokenizer: String,
pub prefer_explicit_keys: bool,
pub context_window: u32,
pub max_inline_nested: Option<u32>,
}Fields§
§tokenizer: StringTokenizer variant id (resolved against profiles.tokenizer.variants).
prefer_explicit_keys: boolWhether the encoder should keep explicit field names (shop: Acme\n)
instead of dropping them in compact forms — often pays off on
instruction-tuned models that ground answers in names.
context_window: u32Hard context-window limit; encoders should never produce more than this.
max_inline_nested: Option<u32>Maximum size (chars) of an inline-nested JSON cell before falling back
to a recursive section. None = unlimited.
Trait Implementations§
Source§impl Clone for LlmProfile
impl Clone for LlmProfile
Source§fn clone(&self) -> LlmProfile
fn clone(&self) -> LlmProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LlmProfile
impl Debug for LlmProfile
Source§impl Default for LlmProfile
impl Default for LlmProfile
Source§impl<'de> Deserialize<'de> for LlmProfile
impl<'de> Deserialize<'de> for LlmProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LlmProfile
impl RefUnwindSafe for LlmProfile
impl Send for LlmProfile
impl Sync for LlmProfile
impl Unpin for LlmProfile
impl UnsafeUnpin for LlmProfile
impl UnwindSafe for LlmProfile
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