pub struct ServerMessageResponseKnowledgeBaseRequest {
pub documents: Option<Vec<KnowledgeBaseResponseDocument>>,
pub message: Option<CustomMessage>,
}
Fields§
§documents: Option<Vec<KnowledgeBaseResponseDocument>>
This is the list of documents that will be sent to the model alongside the messages
to generate a response.
message: Option<CustomMessage>
This can be used to skip the model output generation and speak a custom message.
Implementations§
Trait Implementations§
Source§impl Clone for ServerMessageResponseKnowledgeBaseRequest
impl Clone for ServerMessageResponseKnowledgeBaseRequest
Source§fn clone(&self) -> ServerMessageResponseKnowledgeBaseRequest
fn clone(&self) -> ServerMessageResponseKnowledgeBaseRequest
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 ServerMessageResponseKnowledgeBaseRequest
impl Default for ServerMessageResponseKnowledgeBaseRequest
Source§fn default() -> ServerMessageResponseKnowledgeBaseRequest
fn default() -> ServerMessageResponseKnowledgeBaseRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerMessageResponseKnowledgeBaseRequest
impl<'de> Deserialize<'de> for ServerMessageResponseKnowledgeBaseRequest
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 ServerMessageResponseKnowledgeBaseRequest
impl PartialEq for ServerMessageResponseKnowledgeBaseRequest
Source§fn eq(&self, other: &ServerMessageResponseKnowledgeBaseRequest) -> bool
fn eq(&self, other: &ServerMessageResponseKnowledgeBaseRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ServerMessageResponseKnowledgeBaseRequest
Auto Trait Implementations§
impl Freeze for ServerMessageResponseKnowledgeBaseRequest
impl RefUnwindSafe for ServerMessageResponseKnowledgeBaseRequest
impl Send for ServerMessageResponseKnowledgeBaseRequest
impl Sync for ServerMessageResponseKnowledgeBaseRequest
impl Unpin for ServerMessageResponseKnowledgeBaseRequest
impl UnwindSafe for ServerMessageResponseKnowledgeBaseRequest
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