pub struct OllamaRequestOptions {
pub model: String,
pub stream: bool,
pub tools: bool,
}Expand description
Options controlling how a chat model-request transcript is projected into an Ollama JSON request body.
Fields§
§model: StringThe Ollama model name to send in the request.
stream: boolWhether to request a streamed response.
tools: boolWhether to include a (currently empty) tools array in the request.
Implementations§
Trait Implementations§
Source§impl Clone for OllamaRequestOptions
impl Clone for OllamaRequestOptions
Source§fn clone(&self) -> OllamaRequestOptions
fn clone(&self) -> OllamaRequestOptions
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 OllamaRequestOptions
impl Debug for OllamaRequestOptions
impl Eq for OllamaRequestOptions
Source§impl PartialEq for OllamaRequestOptions
impl PartialEq for OllamaRequestOptions
Source§fn eq(&self, other: &OllamaRequestOptions) -> bool
fn eq(&self, other: &OllamaRequestOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OllamaRequestOptions
Auto Trait Implementations§
impl Freeze for OllamaRequestOptions
impl RefUnwindSafe for OllamaRequestOptions
impl Send for OllamaRequestOptions
impl Sync for OllamaRequestOptions
impl Unpin for OllamaRequestOptions
impl UnsafeUnpin for OllamaRequestOptions
impl UnwindSafe for OllamaRequestOptions
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