pub struct ChatResponse { /* private fields */ }Implementations§
Source§impl ChatResponse
impl ChatResponse
pub fn new( chat_response_meta_data: ChatResponseMetadata, generations: Vec<Generation>, ) -> Self
Trait Implementations§
Source§impl Clone for ChatResponse
impl Clone for ChatResponse
Source§fn clone(&self) -> ChatResponse
fn clone(&self) -> ChatResponse
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 Model<Prompt, ChatResponse> for DeepSeekChatModel
impl Model<Prompt, ChatResponse> for DeepSeekChatModel
Source§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 StreamingModel<Prompt, ChatResponse> for DeepSeekChatModel
impl StreamingModel<Prompt, ChatResponse> for DeepSeekChatModel
Auto Trait Implementations§
impl Freeze for ChatResponse
impl !RefUnwindSafe for ChatResponse
impl Send for ChatResponse
impl Sync for ChatResponse
impl Unpin for ChatResponse
impl !UnwindSafe for ChatResponse
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