pub struct ContextHandoffHandle { /* private fields */ }Expand description
Capability-specific mutable handle for context handoff state.
Implementations§
Source§impl ContextHandoffHandle
impl ContextHandoffHandle
Sourcepub fn from_context(context: &AgentContext) -> Self
pub fn from_context(context: &AgentContext) -> Self
Create a narrow handoff handle from current context values.
Sourcepub fn set_handoff(&self, rendered: String, auto_load_files: &[String])
pub fn set_handoff(&self, rendered: String, auto_load_files: &[String])
Set the rendered handoff and merge auto-load file paths.
Sourcepub fn apply_to(&self, context: &mut AgentContext)
pub fn apply_to(&self, context: &mut AgentContext)
Apply the isolated handoff state to a context.
Trait Implementations§
Source§impl Clone for ContextHandoffHandle
impl Clone for ContextHandoffHandle
Source§fn clone(&self) -> ContextHandoffHandle
fn clone(&self) -> ContextHandoffHandle
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 ContextHandoffHandle
impl RefUnwindSafe for ContextHandoffHandle
impl Send for ContextHandoffHandle
impl Sync for ContextHandoffHandle
impl Unpin for ContextHandoffHandle
impl UnsafeUnpin for ContextHandoffHandle
impl UnwindSafe for ContextHandoffHandle
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