pub struct KnowledgeCreateBody {
pub embedding_id: EmbeddingId,
pub name: String,
pub description: Option<String>,
pub background: Option<BackgroundColor>,
pub icon: Option<KnowledgeIcon>,
pub embedding_model: Option<String>,
pub contextual: Option<u8>,
}Expand description
Request body for creating a knowledge base
Fields§
§embedding_id: EmbeddingIdEmbedding model ID (3, 11, or 12).
name: StringKnowledge base name
description: Option<String>Knowledge base description (optional)
background: Option<BackgroundColor>Background color (optional; default blue on server)
icon: Option<KnowledgeIcon>Icon name (optional; default question on server)
embedding_model: Option<String>Embedding model name (optional). When given alongside embedding_id,
the service requires the two to be consistent.
contextual: Option<u8>Contextual retrieval flag (0 or 1).
Trait Implementations§
Source§impl Clone for KnowledgeCreateBody
impl Clone for KnowledgeCreateBody
Source§fn clone(&self) -> KnowledgeCreateBody
fn clone(&self) -> KnowledgeCreateBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KnowledgeCreateBody
impl Debug for KnowledgeCreateBody
Source§impl<'de> Deserialize<'de> for KnowledgeCreateBody
impl<'de> Deserialize<'de> for KnowledgeCreateBody
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 Serialize for KnowledgeCreateBody
impl Serialize for KnowledgeCreateBody
Source§impl Validate for KnowledgeCreateBody
impl Validate for KnowledgeCreateBody
Source§impl<'v_a> ValidateArgs<'v_a> for KnowledgeCreateBody
impl<'v_a> ValidateArgs<'v_a> for KnowledgeCreateBody
Auto Trait Implementations§
impl Freeze for KnowledgeCreateBody
impl RefUnwindSafe for KnowledgeCreateBody
impl Send for KnowledgeCreateBody
impl Sync for KnowledgeCreateBody
impl Unpin for KnowledgeCreateBody
impl UnsafeUnpin for KnowledgeCreateBody
impl UnwindSafe for KnowledgeCreateBody
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