pub struct CallOptions {
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub stop_sequences: Option<Vec<String>>,
pub top_p: Option<f32>,
pub model_override: Option<String>,
pub tool_choice: Option<ToolChoice>,
pub response_format: Option<ResponseFormat>,
pub tags: Vec<String>,
}Expand description
Options for LLM invocations
These options override default settings on the ChatModel instance
for a single invocation.
Fields§
§temperature: Option<f32>Sampling temperature (0.0 to 1.0)
max_tokens: Option<u32>Maximum tokens to generate
stop_sequences: Option<Vec<String>>Sequences that will stop generation
top_p: Option<f32>Nucleus sampling threshold (0.0 to 1.0)
model_override: Option<String>Override the model name for this call
tool_choice: Option<ToolChoice>Tool selection strategy
response_format: Option<ResponseFormat>Response format for structured output
Tags for streaming metadata and filtering.
Tags are propagated into stream events as [MessageStreamMetadata::tags].
The "nostream" tag causes [EventEmitter::should_emit] to suppress
streaming events for this call.
Trait Implementations§
Source§impl Clone for CallOptions
impl Clone for CallOptions
Source§fn clone(&self) -> CallOptions
fn clone(&self) -> CallOptions
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 CallOptions
impl Debug for CallOptions
Source§impl Default for CallOptions
impl Default for CallOptions
Source§fn default() -> CallOptions
fn default() -> CallOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CallOptions
impl RefUnwindSafe for CallOptions
impl Send for CallOptions
impl Sync for CallOptions
impl Unpin for CallOptions
impl UnsafeUnpin for CallOptions
impl UnwindSafe for CallOptions
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