pub struct CreateChatDto {
pub assistant_id: Option<String>,
pub assistant: Option<CreateAssistantDto>,
pub name: Option<String>,
pub session_id: Option<String>,
pub input: CreateChatDtoInput,
pub stream: Option<bool>,
pub previous_chat_id: Option<String>,
}
Fields§
§assistant_id: Option<String>
This is the assistant that will be used for the chat. To use an existing assistant, use assistantId
instead.
assistant: Option<CreateAssistantDto>
This is the assistant that will be used for the chat. To use an existing assistant, use assistantId
instead.
name: Option<String>
This is the name of the chat. This is just for your own reference.
session_id: Option<String>
This is the ID of the session that will be used for the chat. Mutually exclusive with previousChatId.
input: CreateChatDtoInput
§stream: Option<bool>
This is a flag that determines whether the response should be streamed. When true, the response will be sent as chunks of text.
previous_chat_id: Option<String>
This is the ID of the chat that will be used as context for the new chat. The messages from the previous chat will be used as context. Mutually exclusive with sessionId.
Implementations§
Source§impl CreateChatDto
impl CreateChatDto
pub fn new(input: CreateChatDtoInput) -> CreateChatDto
Trait Implementations§
Source§impl Clone for CreateChatDto
impl Clone for CreateChatDto
Source§fn clone(&self) -> CreateChatDto
fn clone(&self) -> CreateChatDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateChatDto
impl Debug for CreateChatDto
Source§impl Default for CreateChatDto
impl Default for CreateChatDto
Source§fn default() -> CreateChatDto
fn default() -> CreateChatDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateChatDto
impl<'de> Deserialize<'de> for CreateChatDto
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 CreateChatDto
impl PartialEq for CreateChatDto
Source§impl Serialize for CreateChatDto
impl Serialize for CreateChatDto
impl StructuralPartialEq for CreateChatDto
Auto Trait Implementations§
impl Freeze for CreateChatDto
impl RefUnwindSafe for CreateChatDto
impl Send for CreateChatDto
impl Sync for CreateChatDto
impl Unpin for CreateChatDto
impl UnwindSafe for CreateChatDto
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