pub struct ContextWindowItem {
pub id: String,
pub ordinal: u32,
pub kind: ContextWindowItemKind,
pub role: Option<String>,
pub content: Value,
pub source_record_id: Option<String>,
pub knowledge_evidence: Option<KnowledgeEvidence>,
pub metadata: Value,
}Expand description
One ordered item that was actually visible to the model.
Fields§
§id: String§ordinal: u32§kind: ContextWindowItemKind§role: Option<String>§content: Value§source_record_id: Option<String>§knowledge_evidence: Option<KnowledgeEvidence>§metadata: ValueTrait Implementations§
Source§impl Clone for ContextWindowItem
impl Clone for ContextWindowItem
Source§fn clone(&self) -> ContextWindowItem
fn clone(&self) -> ContextWindowItem
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 ContextWindowItem
impl Debug for ContextWindowItem
Source§impl<'de> Deserialize<'de> for ContextWindowItem
impl<'de> Deserialize<'de> for ContextWindowItem
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 ContextWindowItem
impl PartialEq for ContextWindowItem
Source§impl Serialize for ContextWindowItem
impl Serialize for ContextWindowItem
impl StructuralPartialEq for ContextWindowItem
Auto Trait Implementations§
impl Freeze for ContextWindowItem
impl RefUnwindSafe for ContextWindowItem
impl Send for ContextWindowItem
impl Sync for ContextWindowItem
impl Unpin for ContextWindowItem
impl UnsafeUnpin for ContextWindowItem
impl UnwindSafe for ContextWindowItem
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