pub struct StructuredContext {
pub window_id: String,
pub window_start_ms: i64,
pub window_end_ms: i64,
pub duration_secs: u32,
pub events: Vec<SanitizedEvent>,
pub summary: ContextSummary,
}Expand description
时间窗口内的脱敏上下文
这是 aios-agent 发送给 Cloud LLM 的唯一数据格式。
Fields§
§window_id: String窗口唯一 ID
window_start_ms: i64窗口起始时间 (epoch ms)
window_end_ms: i64窗口结束时间 (epoch ms)
duration_secs: u32窗口持续的秒数
events: Vec<SanitizedEvent>窗口内的事件序列 (按时间排序, 已脱敏)
summary: ContextSummary窗口聚合摘要 (帮助 LLM 快速理解)
Trait Implementations§
Source§impl Clone for StructuredContext
impl Clone for StructuredContext
Source§fn clone(&self) -> StructuredContext
fn clone(&self) -> StructuredContext
Returns a duplicate of the value. Read more
1.0.0 · 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 StructuredContext
impl Debug for StructuredContext
Source§impl<'de> Deserialize<'de> for StructuredContext
impl<'de> Deserialize<'de> for StructuredContext
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
Auto Trait Implementations§
impl Freeze for StructuredContext
impl RefUnwindSafe for StructuredContext
impl Send for StructuredContext
impl Sync for StructuredContext
impl Unpin for StructuredContext
impl UnsafeUnpin for StructuredContext
impl UnwindSafe for StructuredContext
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