pub struct CreateChatSessionRequest {
pub collections: Vec<CollectionConfig>,
pub llm_provider: String,
pub llm_model: Option<String>,
pub system_prompt: Option<String>,
pub bypass_ripple: Option<bool>,
pub parent_id: Option<String>,
pub branch_point_idx: Option<usize>,
pub max_context_messages: Option<usize>,
}Expand description
Request to create a new chat session
Fields§
§collections: Vec<CollectionConfig>§llm_provider: String§llm_model: Option<String>§system_prompt: Option<String>§bypass_ripple: Option<bool>§parent_id: Option<String>§branch_point_idx: Option<usize>§max_context_messages: Option<usize>Implementations§
Source§impl CreateChatSessionRequest
impl CreateChatSessionRequest
Sourcepub fn collection(self, collection: CollectionConfig) -> Self
pub fn collection(self, collection: CollectionConfig) -> Self
Add a collection to search
Sourcepub fn system_prompt(self, prompt: impl Into<String>) -> Self
pub fn system_prompt(self, prompt: impl Into<String>) -> Self
Set a custom system prompt
Sourcepub fn branch_from(
self,
parent_id: impl Into<String>,
branch_point_idx: usize,
) -> Self
pub fn branch_from( self, parent_id: impl Into<String>, branch_point_idx: usize, ) -> Self
Branch from an existing session at a specific message index
Sourcepub fn max_context_messages(self, max: usize) -> Self
pub fn max_context_messages(self, max: usize) -> Self
Set maximum context messages
Trait Implementations§
Source§impl Clone for CreateChatSessionRequest
impl Clone for CreateChatSessionRequest
Source§fn clone(&self) -> CreateChatSessionRequest
fn clone(&self) -> CreateChatSessionRequest
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 CreateChatSessionRequest
impl Debug for CreateChatSessionRequest
Source§impl<'de> Deserialize<'de> for CreateChatSessionRequest
impl<'de> Deserialize<'de> for CreateChatSessionRequest
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 CreateChatSessionRequest
impl RefUnwindSafe for CreateChatSessionRequest
impl Send for CreateChatSessionRequest
impl Sync for CreateChatSessionRequest
impl Unpin for CreateChatSessionRequest
impl UnwindSafe for CreateChatSessionRequest
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