pub struct PluginSessionContext {
pub session_id: String,
pub tool_access: SessionToolAccess,
pub subagent: Option<SubagentSessionContext>,
pub lashlang_abilities: LashlangAbilities,
pub lashlang_language_features: LashlangLanguageFeatures,
pub parent_session_id: Option<String>,
}Fields§
§session_id: String§tool_access: SessionToolAccess§subagent: Option<SubagentSessionContext>§lashlang_abilities: LashlangAbilities§lashlang_language_features: LashlangLanguageFeatures§parent_session_id: Option<String>Session id of the caller that created this one. None identifies
a root session; any subagent / compaction / forked-child session
carries the parent here so plugin factories can gate themselves
on root-only behavior (e.g. update_plan’s sticky plan dock).
Implementations§
Source§impl PluginSessionContext
impl PluginSessionContext
Sourcepub fn is_root_session(&self) -> bool
pub fn is_root_session(&self) -> bool
Returns true when this context represents a root session, not a
subagent or internal child. Plugins that should only surface in
user-facing top-level turns check this in their build.
Trait Implementations§
Source§impl Clone for PluginSessionContext
impl Clone for PluginSessionContext
Source§fn clone(&self) -> PluginSessionContext
fn clone(&self) -> PluginSessionContext
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 PluginSessionContext
impl RefUnwindSafe for PluginSessionContext
impl Send for PluginSessionContext
impl Sync for PluginSessionContext
impl Unpin for PluginSessionContext
impl UnsafeUnpin for PluginSessionContext
impl UnwindSafe for PluginSessionContext
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