pub struct ForkSnapshot { /* private fields */ }Expand description
The parent agent’s request, as a fork subagent starts from it.
Everything a request is made of is kept as the parent assembled it: the window (system blocks, handoff, conversation and live tail, thinking blocks included), the tool definitions, the request parameters and the prompt-cache identity.
Implementations§
Source§impl ForkSnapshot
impl ForkSnapshot
Sourcepub fn definitions(&self) -> &[ToolDefinition]
pub fn definitions(&self) -> &[ToolDefinition]
The tool definitions the parent’s request carried. The fork’s own tools must present exactly these, or its first request diverges from the parent’s cached prefix at the tool definitions.
Sourcepub fn compaction_usage(&self) -> f32
pub fn compaction_usage(&self) -> f32
The fraction of the context window the parent pauses at.
Sourcepub fn allows_fork(&self) -> bool
pub fn allows_fork(&self) -> bool
Whether a fork may start from the request the parent sent: it is refused within a tenth of the parent’s pause point.
Sourcepub const fn policy(&self) -> &ContextPolicy
pub const fn policy(&self) -> &ContextPolicy
The parent’s context policy.
Trait Implementations§
Source§impl Clone for ForkSnapshot
impl Clone for ForkSnapshot
Auto Trait Implementations§
impl Forget for ForkSnapshot
impl Freeze for ForkSnapshot
impl Move for ForkSnapshot
impl RefUnwindSafe for ForkSnapshot
impl Send for ForkSnapshot
impl Sync for ForkSnapshot
impl Unpin for ForkSnapshot
impl UnsafeUnpin for ForkSnapshot
impl UnwindSafe for ForkSnapshot
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