pub struct SessionState {
pub entries: Vec<SessionEntry>,
pub leaf_id: String,
pub name: String,
}Expand description
In-memory session state managed by the core.
Fields§
§entries: Vec<SessionEntry>§leaf_id: String§name: StringImplementations§
Source§impl SessionState
impl SessionState
Sourcepub fn get_branch(&self) -> Vec<&SessionEntry>
pub fn get_branch(&self) -> Vec<&SessionEntry>
Get the full branch from root to leaf.
Sourcepub fn build_context(&self) -> Vec<AgentMessage>
pub fn build_context(&self) -> Vec<AgentMessage>
Build the LLM-visible context from the current branch.
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§impl Debug for SessionState
impl Debug for SessionState
Source§impl<'de> Deserialize<'de> for SessionState
impl<'de> Deserialize<'de> for SessionState
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 SessionState
impl PartialEq for SessionState
Source§impl Serialize for SessionState
impl Serialize for SessionState
impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl Forget for SessionState
impl Freeze for SessionState
impl Move for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SessionEntry>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for SessionState
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