pub struct KnowledgeUpdateRequest { /* private fields */ }Expand description
Implementations§
Source§impl KnowledgeUpdateRequest
impl KnowledgeUpdateRequest
Sourcepub fn new(id: impl Into<String>) -> Self
pub fn new(id: impl Into<String>) -> Self
Build update request targeting a specific id with empty body.
Sourcepub fn with_embedding_id(self, id: EmbeddingId) -> Self
pub fn with_embedding_id(self, id: EmbeddingId) -> Self
Set the embedding model id.
Sourcepub fn with_embedding_model(self, model: impl Into<String>) -> Self
pub fn with_embedding_model(self, model: impl Into<String>) -> Self
Set the embedding model name.
Sourcepub fn with_contextual(self, contextual: u8) -> Self
pub fn with_contextual(self, contextual: u8) -> Self
Enable (1) or disable (0) contextual retrieval.
Sourcepub fn with_description(self, desc: impl Into<String>) -> Self
pub fn with_description(self, desc: impl Into<String>) -> Self
Set the description.
Sourcepub fn with_background(self, bg: BackgroundColor) -> Self
pub fn with_background(self, bg: BackgroundColor) -> Self
Set the background color.
Sourcepub fn with_icon(self, icon: KnowledgeIcon) -> Self
pub fn with_icon(self, icon: KnowledgeIcon) -> Self
Set the icon.
Sourcepub fn with_callback_url(self, url: impl Into<String>) -> Self
pub fn with_callback_url(self, url: impl Into<String>) -> Self
Set the callback URL (notified when rebuilding completes).
Sourcepub fn with_callback_header(self, headers: BTreeMap<String, String>) -> Self
pub fn with_callback_header(self, headers: BTreeMap<String, String>) -> Self
Set the callback headers.
Auto Trait Implementations§
impl Freeze for KnowledgeUpdateRequest
impl RefUnwindSafe for KnowledgeUpdateRequest
impl Send for KnowledgeUpdateRequest
impl Sync for KnowledgeUpdateRequest
impl Unpin for KnowledgeUpdateRequest
impl UnsafeUnpin for KnowledgeUpdateRequest
impl UnwindSafe for KnowledgeUpdateRequest
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