pub struct HarnessModelOption {
pub cost: ModelCost,
pub context_window: Option<u64>,
pub loaded_context_window: Option<u64>,
pub model: AgentModel,
pub provider: String,
pub status: HarnessModelStatus,
pub trains_on_prompts: bool,
}Expand description
One harness model a user can choose, with its cost, readiness, and context window.
Fields§
§cost: ModelCostWho pays for the model’s tokens, and how much.
context_window: Option<u64>Context window in tokens the model supports, when the server reports it.
loaded_context_window: Option<u64>Context window in tokens the server currently runs the model with,
when it reports one. It can be smaller than
Self::context_window, such as Ollama’s 4,096-token default.
model: AgentModelModel sessions run.
provider: StringProvider or server display name, such as Ollama or Kimi.
status: HarnessModelStatusWhether the model can run a turn now.
trains_on_prompts: boolWhether the provider may train its models on the prompts and completions, which its discounted contributor tier requires.
Implementations§
Trait Implementations§
Source§impl Clone for HarnessModelOption
impl Clone for HarnessModelOption
Source§impl Debug for HarnessModelOption
impl Debug for HarnessModelOption
impl Eq for HarnessModelOption
Source§impl PartialEq for HarnessModelOption
impl PartialEq for HarnessModelOption
impl StructuralPartialEq for HarnessModelOption
Auto Trait Implementations§
impl Forget for HarnessModelOption
impl Freeze for HarnessModelOption
impl RefUnwindSafe for HarnessModelOption
impl Send for HarnessModelOption
impl Sync for HarnessModelOption
impl Unpin for HarnessModelOption
impl UnsafeUnpin for HarnessModelOption
impl UnwindSafe for HarnessModelOption
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.