pub struct AiConfig {
pub model: String,
pub temperature: f32,
pub max_tokens: u32,
pub stop_sequences: Vec<String>,
pub system_prompt: String,
pub user_prompt_template: String,
}Fields§
§model: StringThe AI model to use
temperature: f32Temperature for model output (0.0 to 1.0)
max_tokens: u32Maximum tokens in the response
stop_sequences: Vec<String>Stop sequences for the model
system_prompt: StringSystem prompt for the AI
user_prompt_template: StringUser prompt template
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AiConfig
impl<'de> Deserialize<'de> for AiConfig
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 AiConfig
impl RefUnwindSafe for AiConfig
impl Send for AiConfig
impl Sync for AiConfig
impl Unpin for AiConfig
impl UnwindSafe for AiConfig
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