pub struct ReflectOpts {
pub timeout_ms: u64,
pub max_tokens: u32,
pub temperature: f32,
}Expand description
Construction options.
Fields§
§timeout_ms: u64Per-call timeout. 500 ms accommodates 4B-on-CPU; lower for GPU (~150 ms is reasonable).
max_tokens: u32Max output tokens. Reflect output is short — ulid lists + optional query — 384 covers ~20 ulids comfortably.
temperature: f32Sampling temperature. 0.2 = mostly-greedy with a small bit of variety so identical turns don’t always pre-warm the same query (the calibration loop benefits slightly from diversity).
Trait Implementations§
Source§impl Clone for ReflectOpts
impl Clone for ReflectOpts
Source§fn clone(&self) -> ReflectOpts
fn clone(&self) -> ReflectOpts
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 ReflectOpts
impl Debug for ReflectOpts
Source§impl Default for ReflectOpts
impl Default for ReflectOpts
Source§fn default() -> ReflectOpts
fn default() -> ReflectOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReflectOpts
impl RefUnwindSafe for ReflectOpts
impl Send for ReflectOpts
impl Sync for ReflectOpts
impl Unpin for ReflectOpts
impl UnsafeUnpin for ReflectOpts
impl UnwindSafe for ReflectOpts
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