pub struct SttpDocumentMetadata {Show 18 fields
pub session_id: String,
pub timestamp: DateTime<Utc>,
pub tier: String,
pub trigger: String,
pub response_format: String,
pub compression_depth: i32,
pub parent_node: Option<String>,
pub context_summary: String,
pub retrieval_budget: i32,
pub attractor_config: AvecState,
pub user_avec: AvecState,
pub model_avec: AvecState,
pub semantic_tags: Option<Vec<String>>,
pub semantic_links: Option<Vec<SemanticLink>>,
pub schema_version: Option<String>,
pub rho: Option<f32>,
pub kappa: Option<f32>,
pub compression_avec: Option<AvecState>,
}Expand description
Seed data for provenance + envelope layers.
Fields§
§session_id: String§timestamp: DateTime<Utc>§tier: String§trigger: String§response_format: String§compression_depth: i32§parent_node: Option<String>§context_summary: String§retrieval_budget: i32§attractor_config: AvecState§user_avec: AvecState§model_avec: AvecState§semantic_links: Option<Vec<SemanticLink>>§schema_version: Option<String>§rho: Option<f32>Optional metrics overrides; unset fields are derived at build time.
kappa: Option<f32>§compression_avec: Option<AvecState>Implementations§
Source§impl SttpDocumentMetadata
impl SttpDocumentMetadata
pub fn new(session_id: impl Into<String>) -> Self
pub fn with_timestamp(self, timestamp: DateTime<Utc>) -> Self
pub fn with_tier(self, tier: impl Into<String>) -> Self
pub fn with_context_summary(self, summary: impl Into<String>) -> Self
pub fn with_avec(self, user: AvecState, model: AvecState) -> Self
pub fn with_semantic_links(self, links: Vec<SemanticLink>) -> Self
Trait Implementations§
Source§impl Clone for SttpDocumentMetadata
impl Clone for SttpDocumentMetadata
Source§fn clone(&self) -> SttpDocumentMetadata
fn clone(&self) -> SttpDocumentMetadata
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 moreAuto Trait Implementations§
impl Freeze for SttpDocumentMetadata
impl RefUnwindSafe for SttpDocumentMetadata
impl Send for SttpDocumentMetadata
impl Sync for SttpDocumentMetadata
impl Unpin for SttpDocumentMetadata
impl UnsafeUnpin for SttpDocumentMetadata
impl UnwindSafe for SttpDocumentMetadata
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