pub struct AfterSessionEnter {
pub cwd: String,
pub source: SessionSource,
pub additional_context: Vec<ContentBlock>,
}Expand description
after session enter: the session scope has been entered. Allows injecting a system
suffix or rejecting with Break.
Fields§
§cwd: String§source: SessionSource§additional_context: Vec<ContentBlock>Suffix appended to the system prompt (apply_verdict fills this from
additional_context).
Trait Implementations§
Source§impl Clone for AfterSessionEnter
impl Clone for AfterSessionEnter
Source§fn clone(&self) -> AfterSessionEnter
fn clone(&self) -> AfterSessionEnter
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 moreSource§impl Debug for AfterSessionEnter
impl Debug for AfterSessionEnter
Source§impl HookStep for AfterSessionEnter
impl HookStep for AfterSessionEnter
Source§fn event_name(&self) -> &'static str
fn event_name(&self) -> &'static str
Event name (snake_case). Used in envelope headers and matchers.
Source§fn to_envelope(&self) -> Value
fn to_envelope(&self) -> Value
Projects the step into an input envelope — fed to command stdin / prompt
templates. Contains a common header plus step-specific fields.
Source§fn apply_verdict(
&mut self,
verdict: &Value,
) -> Result<HookControl, VerdictError>
fn apply_verdict( &mut self, verdict: &Value, ) -> Result<HookControl, VerdictError>
Apply the handler’s output verdict (JSON) back to this step: parse the common
control / additional_context fields, then handle the step-specific “fill
output” fields. Returns a control directive. Read moreAuto Trait Implementations§
impl Freeze for AfterSessionEnter
impl RefUnwindSafe for AfterSessionEnter
impl Send for AfterSessionEnter
impl Sync for AfterSessionEnter
impl Unpin for AfterSessionEnter
impl UnsafeUnpin for AfterSessionEnter
impl UnwindSafe for AfterSessionEnter
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