pub struct OpenAiResponsesRequest {
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>
Whether to stream the response or not.
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 OpenAiResponsesRequest
impl OpenAiResponsesRequest
pub fn new(input: CreateChatDtoInput) -> OpenAiResponsesRequest
Trait Implementations§
Source§impl Clone for OpenAiResponsesRequest
impl Clone for OpenAiResponsesRequest
Source§fn clone(&self) -> OpenAiResponsesRequest
fn clone(&self) -> OpenAiResponsesRequest
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 OpenAiResponsesRequest
impl Debug for OpenAiResponsesRequest
Source§impl Default for OpenAiResponsesRequest
impl Default for OpenAiResponsesRequest
Source§fn default() -> OpenAiResponsesRequest
fn default() -> OpenAiResponsesRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenAiResponsesRequest
impl<'de> Deserialize<'de> for OpenAiResponsesRequest
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 OpenAiResponsesRequest
impl PartialEq for OpenAiResponsesRequest
Source§impl Serialize for OpenAiResponsesRequest
impl Serialize for OpenAiResponsesRequest
impl StructuralPartialEq for OpenAiResponsesRequest
Auto Trait Implementations§
impl Freeze for OpenAiResponsesRequest
impl RefUnwindSafe for OpenAiResponsesRequest
impl Send for OpenAiResponsesRequest
impl Sync for OpenAiResponsesRequest
impl Unpin for OpenAiResponsesRequest
impl UnwindSafe for OpenAiResponsesRequest
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