pub struct ConversationSettings {Show 13 fields
pub model_name: Option<String>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub top_k: Option<i32>,
pub max_tokens: Option<u32>,
pub repeat_penalty: Option<f32>,
pub ctx_size: Option<String>,
pub mlock: Option<bool>,
pub tools: Vec<String>,
pub tool_timeout_ms: Option<u64>,
pub max_parallel: Option<usize>,
pub max_iterations: Option<usize>,
pub no_tools: Option<bool>,
}Expand description
Session parameters captured at conversation creation for resume.
Stores sampling, context, and tool configuration so a CLI or GUI session can be faithfully restored. Serialized as a JSON column in the database.
Fields§
§model_name: Option<String>Model name or identifier used for this session.
temperature: Option<f32>Sampling temperature (0.0–2.0).
top_p: Option<f32>Nucleus sampling threshold (0.0–1.0).
top_k: Option<i32>Top-K sampling limit.
max_tokens: Option<u32>Maximum tokens per response.
repeat_penalty: Option<f32>Repetition penalty.
ctx_size: Option<String>Context window size (numeric or “max”).
mlock: Option<bool>Whether memory locking was enabled.
tools: Vec<String>Tool allowlist (empty = all tools).
tool_timeout_ms: Option<u64>Per-tool timeout in milliseconds.
max_parallel: Option<usize>Maximum parallel tool calls.
max_iterations: Option<usize>Maximum agent loop iterations.
no_tools: Option<bool>Whether tools were disabled entirely.
Trait Implementations§
Source§impl Clone for ConversationSettings
impl Clone for ConversationSettings
Source§fn clone(&self) -> ConversationSettings
fn clone(&self) -> ConversationSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 ConversationSettings
impl Debug for ConversationSettings
Source§impl Default for ConversationSettings
impl Default for ConversationSettings
Source§fn default() -> ConversationSettings
fn default() -> ConversationSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversationSettings
impl<'de> Deserialize<'de> for ConversationSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConversationSettings
impl PartialEq for ConversationSettings
Source§impl Serialize for ConversationSettings
impl Serialize for ConversationSettings
impl StructuralPartialEq for ConversationSettings
Auto Trait Implementations§
impl Freeze for ConversationSettings
impl RefUnwindSafe for ConversationSettings
impl Send for ConversationSettings
impl Sync for ConversationSettings
impl Unpin for ConversationSettings
impl UnwindSafe for ConversationSettings
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