pub struct AssistantMessage {
pub text_content: String,
pub metadata: Option<HashMap<String, String>>,
pub message_type: MessageType,
}Fields§
§text_content: String§metadata: Option<HashMap<String, String>>§message_type: MessageTypeTrait Implementations§
Source§impl Clone for AssistantMessage
impl Clone for AssistantMessage
Source§fn clone(&self) -> AssistantMessage
fn clone(&self) -> AssistantMessage
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 ModelResponse<Generation, AssistantMessage> for ChatResponse
impl ModelResponse<Generation, AssistantMessage> for ChatResponse
fn result(&self) -> Option<Generation>
fn results(&self) -> impl IntoIterator<Item = Generation>
fn resp_meta_data(&self) -> impl ResponseMetadata
Source§impl ModelResult<AssistantMessage> for Generation
impl ModelResult<AssistantMessage> for Generation
fn output(&self) -> &AssistantMessage
fn meta_data(&self) -> Box<dyn ResultMetadata>
Auto Trait Implementations§
impl Freeze for AssistantMessage
impl RefUnwindSafe for AssistantMessage
impl Send for AssistantMessage
impl Sync for AssistantMessage
impl Unpin for AssistantMessage
impl UnwindSafe for AssistantMessage
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