pub enum SessionCmd {
PushMessages {
msgs: Vec<FuneraMessage>,
},
FetchContext {
respond: Sender<Vec<Value>>,
},
GetMessages {
respond: Sender<Vec<FuneraMessage>>,
},
Clear,
}Variants§
PushMessages
向 session 末尾追加一批消息
Fields
§
msgs: Vec<FuneraMessage>FetchContext
获取当前上下文(JSON 格式,用于构建 LLM 请求)
GetMessages
获取当前消息列表(核心版本,用于检查/显示)
Fields
§
respond: Sender<Vec<FuneraMessage>>Clear
清空 session
Auto Trait Implementations§
impl !RefUnwindSafe for SessionCmd
impl !UnwindSafe for SessionCmd
impl Freeze for SessionCmd
impl Send for SessionCmd
impl Sync for SessionCmd
impl Unpin for SessionCmd
impl UnsafeUnpin for SessionCmd
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