pub struct AssistantConfig {
pub model_id: String,
pub system_prompt: Option<String>,
pub max_tokens: u32,
pub temperature: f32,
pub top_p: f32,
pub enable_streaming: bool,
pub custom_params: HashMap<String, Value>,
}Expand description
Assistant configuration
Fields§
§model_id: StringModel ID to use
system_prompt: Option<String>System prompt
max_tokens: u32Maximum tokens
temperature: f32Temperature setting
top_p: f32Top-p setting
enable_streaming: boolWhether to enable streaming
custom_params: HashMap<String, Value>Custom parameters
Trait Implementations§
Source§impl Clone for AssistantConfig
impl Clone for AssistantConfig
Source§fn clone(&self) -> AssistantConfig
fn clone(&self) -> AssistantConfig
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 AssistantConfig
impl Debug for AssistantConfig
Source§impl Default for AssistantConfig
impl Default for AssistantConfig
Source§impl<'de> Deserialize<'de> for AssistantConfig
impl<'de> Deserialize<'de> for AssistantConfig
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
Auto Trait Implementations§
impl Freeze for AssistantConfig
impl RefUnwindSafe for AssistantConfig
impl Send for AssistantConfig
impl Sync for AssistantConfig
impl Unpin for AssistantConfig
impl UnwindSafe for AssistantConfig
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