pub struct HostCapabilities {
pub max_top_logprobs: usize,
}Expand description
What a host can and cannot do. cerno-core reads this to size its label alphabet.
Fields§
§max_top_logprobs: usizeHow many ranked tokens the host will report for one position.
Ollama and OpenAI cap this at 20. A label beyond that rank is invisible, which is exactly the bound that limits a Choice to 20 options.
Trait Implementations§
Source§impl Clone for HostCapabilities
impl Clone for HostCapabilities
Source§fn clone(&self) -> HostCapabilities
fn clone(&self) -> HostCapabilities
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 moreimpl Copy for HostCapabilities
Source§impl Debug for HostCapabilities
impl Debug for HostCapabilities
impl Eq for HostCapabilities
Source§impl PartialEq for HostCapabilities
impl PartialEq for HostCapabilities
Source§fn eq(&self, other: &HostCapabilities) -> bool
fn eq(&self, other: &HostCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostCapabilities
Auto Trait Implementations§
impl Freeze for HostCapabilities
impl RefUnwindSafe for HostCapabilities
impl Send for HostCapabilities
impl Sync for HostCapabilities
impl Unpin for HostCapabilities
impl UnsafeUnpin for HostCapabilities
impl UnwindSafe for HostCapabilities
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