pub struct AssistantMessageRequest {
pub content: String,
pub name: Option<String>,
pub prefix: bool,
pub reasoning_content: Option<String>,
}Expand description
Represents an assistant message request.
Fields§
§content: String§name: Option<String>§prefix: bool§reasoning_content: Option<String>Implementations§
Source§impl AssistantMessageRequest
impl AssistantMessageRequest
Sourcepub fn new(msg: &str) -> Self
pub fn new(msg: &str) -> Self
Creates a new AssistantMessageRequest instance.
§Arguments
msg- A string slice representing the message content.
Sourcepub fn new_with_name(name: &str, msg: &str) -> Self
pub fn new_with_name(name: &str, msg: &str) -> Self
Creates a new AssistantMessageRequest instance with a name.
§Arguments
name- A string slice representing the name.msg- A string slice representing the message content.
Sourcepub fn set_reasoning_content(self, content: &str) -> Self
pub fn set_reasoning_content(self, content: &str) -> Self
pub fn set_prefix(self, content: &str) -> Self
Trait Implementations§
Source§impl Clone for AssistantMessageRequest
impl Clone for AssistantMessageRequest
Source§fn clone(&self) -> AssistantMessageRequest
fn clone(&self) -> AssistantMessageRequest
Returns a copy 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 AssistantMessageRequest
impl Debug for AssistantMessageRequest
Source§impl<'de> Deserialize<'de> for AssistantMessageRequest
impl<'de> Deserialize<'de> for AssistantMessageRequest
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 AssistantMessageRequest
impl PartialEq for AssistantMessageRequest
Source§impl Serialize for AssistantMessageRequest
impl Serialize for AssistantMessageRequest
impl StructuralPartialEq for AssistantMessageRequest
Auto Trait Implementations§
impl Freeze for AssistantMessageRequest
impl RefUnwindSafe for AssistantMessageRequest
impl Send for AssistantMessageRequest
impl Sync for AssistantMessageRequest
impl Unpin for AssistantMessageRequest
impl UnwindSafe for AssistantMessageRequest
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