pub struct ServerMessageKnowledgeBaseRequest {
pub phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>,
pub type: Type,
pub messages: Option<Vec<ArtifactMessagesInner>>,
pub messages_open_ai_formatted: Vec<OpenAiMessage>,
pub timestamp: Option<String>,
pub artifact: Option<Box<Artifact>>,
pub assistant: Option<Box<CreateAssistantDto>>,
pub customer: Option<Box<CreateCustomerDto>>,
pub call: Option<Box<Call>>,
}Fields§
§phone_number: Option<Box<ServerMessageAssistantRequestPhoneNumber>>§type: TypeThis is the type of the message. "knowledge-base-request" is sent to request knowledge base documents. To enable, use assistant.knowledgeBase.provider=custom-knowledge-base.
messages: Option<Vec<ArtifactMessagesInner>>These are the messages that are going to be sent to the model right after the knowledge-base-request webhook completes.
messages_open_ai_formatted: Vec<OpenAiMessage>This is just messages formatted for OpenAI.
timestamp: Option<String>This is the ISO-8601 formatted timestamp of when the message was sent.
artifact: Option<Box<Artifact>>This is a live version of the call.artifact. This matches what is stored on call.artifact after the call.
assistant: Option<Box<CreateAssistantDto>>This is the assistant that is currently active. This is provided for convenience. This matches one of the following: - call.assistant, - call.assistantId, - call.squad[n].assistant, - call.squad[n].assistantId, - call.squadId->[n].assistant, - call.squadId->[n].assistantId.
customer: Option<Box<CreateCustomerDto>>This is the customer associated with the call. This matches one of the following: - call.customer, - call.customerId.
call: Option<Box<Call>>This is the call object. This matches what was returned in POST /call. Note: This might get stale during the call. To get the latest call object, especially after the call is ended, use GET /call/:id.
Implementations§
Source§impl ServerMessageKnowledgeBaseRequest
impl ServerMessageKnowledgeBaseRequest
pub fn new( type: Type, messages_open_ai_formatted: Vec<OpenAiMessage>, ) -> ServerMessageKnowledgeBaseRequest
Trait Implementations§
Source§impl Clone for ServerMessageKnowledgeBaseRequest
impl Clone for ServerMessageKnowledgeBaseRequest
Source§fn clone(&self) -> ServerMessageKnowledgeBaseRequest
fn clone(&self) -> ServerMessageKnowledgeBaseRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ServerMessageKnowledgeBaseRequest
impl Default for ServerMessageKnowledgeBaseRequest
Source§fn default() -> ServerMessageKnowledgeBaseRequest
fn default() -> ServerMessageKnowledgeBaseRequest
Source§impl<'de> Deserialize<'de> for ServerMessageKnowledgeBaseRequest
impl<'de> Deserialize<'de> for ServerMessageKnowledgeBaseRequest
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>,
Source§impl PartialEq for ServerMessageKnowledgeBaseRequest
impl PartialEq for ServerMessageKnowledgeBaseRequest
Source§fn eq(&self, other: &ServerMessageKnowledgeBaseRequest) -> bool
fn eq(&self, other: &ServerMessageKnowledgeBaseRequest) -> bool
self and other values to be equal, and is used by ==.