pub struct ClientInboundMessageAddMessage {
pub type: TypeTrue,
pub message: OpenAiMessage,
pub trigger_response_enabled: Option<bool>,
}
Fields§
§type: TypeTrue
This is the type of the message. Send "add-message" message to add a message to the conversation history.
message: OpenAiMessage
This is the message to add to the conversation.
trigger_response_enabled: Option<bool>
This is the flag to trigger a response, or to insert the message into the conversation history silently. Defaults to true
. Usage: - Use true
to trigger a response. - Use false
to insert the message into the conversation history silently. @default true
Implementations§
Source§impl ClientInboundMessageAddMessage
impl ClientInboundMessageAddMessage
pub fn new( type: TypeTrue, message: OpenAiMessage, ) -> ClientInboundMessageAddMessage
Trait Implementations§
Source§impl Clone for ClientInboundMessageAddMessage
impl Clone for ClientInboundMessageAddMessage
Source§fn clone(&self) -> ClientInboundMessageAddMessage
fn clone(&self) -> ClientInboundMessageAddMessage
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 Default for ClientInboundMessageAddMessage
impl Default for ClientInboundMessageAddMessage
Source§fn default() -> ClientInboundMessageAddMessage
fn default() -> ClientInboundMessageAddMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientInboundMessageAddMessage
impl<'de> Deserialize<'de> for ClientInboundMessageAddMessage
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 ClientInboundMessageAddMessage
impl PartialEq for ClientInboundMessageAddMessage
Source§fn eq(&self, other: &ClientInboundMessageAddMessage) -> bool
fn eq(&self, other: &ClientInboundMessageAddMessage) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ClientInboundMessageAddMessage
Auto Trait Implementations§
impl Freeze for ClientInboundMessageAddMessage
impl RefUnwindSafe for ClientInboundMessageAddMessage
impl Send for ClientInboundMessageAddMessage
impl Sync for ClientInboundMessageAddMessage
impl Unpin for ClientInboundMessageAddMessage
impl UnwindSafe for ClientInboundMessageAddMessage
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