pub struct CreateAiSessionConfig {
pub llm_config: Option<LlmConfig>,
pub initial_messages: Option<Vec<Message>>,
}Expand description
Configuration for creating an AI session
Fields§
§llm_config: Option<LlmConfig>§initial_messages: Option<Vec<Message>>Implementations§
Source§impl CreateAiSessionConfig
impl CreateAiSessionConfig
Sourcepub fn with_llm_config(self, config: LlmConfig) -> Self
pub fn with_llm_config(self, config: LlmConfig) -> Self
Set LLM configuration
Sourcepub fn with_initial_messages(self, messages: Vec<Message>) -> Self
pub fn with_initial_messages(self, messages: Vec<Message>) -> Self
Set initial messages
Trait Implementations§
Source§impl Clone for CreateAiSessionConfig
impl Clone for CreateAiSessionConfig
Source§fn clone(&self) -> CreateAiSessionConfig
fn clone(&self) -> CreateAiSessionConfig
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 CreateAiSessionConfig
impl Debug for CreateAiSessionConfig
Auto Trait Implementations§
impl Freeze for CreateAiSessionConfig
impl RefUnwindSafe for CreateAiSessionConfig
impl Send for CreateAiSessionConfig
impl Sync for CreateAiSessionConfig
impl Unpin for CreateAiSessionConfig
impl UnsafeUnpin for CreateAiSessionConfig
impl UnwindSafe for CreateAiSessionConfig
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