pub enum SpawnContext {
InheritUpTo(usize),
Fresh,
}Expand description
How much of the parent’s conversation history a newly spawned child thread inherits.
Variants§
InheritUpTo(usize)
Inherit the parent’s history up to the given message order (exclusive). Callers pass the safe spawn point — the cutoff right before the spawn tool call itself and any trailing unanswered tool calls — and seed the child’s own store with whatever the child needs past the cutoff (e.g. a copy of the spawn call).
Fresh
Start with an empty history: the child sees none of the parent’s (or any ancestor’s) messages. Instructions sent to the child must be fully self-contained.
Trait Implementations§
Source§impl Clone for SpawnContext
impl Clone for SpawnContext
impl Copy for SpawnContext
Source§impl Debug for SpawnContext
impl Debug for SpawnContext
impl Eq for SpawnContext
Source§impl PartialEq for SpawnContext
impl PartialEq for SpawnContext
impl StructuralPartialEq for SpawnContext
Auto Trait Implementations§
impl Freeze for SpawnContext
impl RefUnwindSafe for SpawnContext
impl Send for SpawnContext
impl Sync for SpawnContext
impl Unpin for SpawnContext
impl UnsafeUnpin for SpawnContext
impl UnwindSafe for SpawnContext
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