Struct SopStepReassembly
pub struct SopStepReassembly<'a> {
pub config: &'a Config,
}Expand description
Config handle the live SOP driver needs to re-assemble a nested step’s agent when the step delegates to a different agent than the one running the turn.
The live nested-step driver otherwise reuses the parent turn’s assembled
execution context; when a step names a different agent it must run AS that
agent — with that agent’s own gated tools, policy, and MCP scope — not the
parent’s. This carries the one handle needed to rebuild that context in
flight; the runtime adapter is created from config.runtime so the nested
context is assembled the way a fresh agent turn would be. Copy so the
handle survives being re-read on every drained action and forwarded into
each nested turn.
This handle is either Some on every frame of a recursion tree or None on
every frame: it is introduced only at the top entry points and forwarded
unchanged into each nested step. Because a re-assembled sub-loop runs with
the step agent as its own agent_alias (the effective identity, which
attribution follows), the loop’s agent_alias IS the re-assembly baseline
at every depth — no separate baseline field is needed: a depth >= 2 step
naming the outer agent compares against the re-assembled child’s alias and
re-assembles correctly instead of inheriting the child’s scope.
Fields§
§config: &'a ConfigTrait Implementations§
Source§impl<'a> Clone for SopStepReassembly<'a>
impl<'a> Clone for SopStepReassembly<'a>
Source§fn clone(&self) -> SopStepReassembly<'a>
fn clone(&self) -> SopStepReassembly<'a>
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for SopStepReassembly<'a>
Auto Trait Implementations§
impl<'a> Freeze for SopStepReassembly<'a>
impl<'a> RefUnwindSafe for SopStepReassembly<'a>
impl<'a> Send for SopStepReassembly<'a>
impl<'a> Sync for SopStepReassembly<'a>
impl<'a> Unpin for SopStepReassembly<'a>
impl<'a> UnsafeUnpin for SopStepReassembly<'a>
impl<'a> UnwindSafe for SopStepReassembly<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more