pub enum AgentToolSessionSnapshot {
Isolated,
Parent,
}Expand description
Controls which parent session data is copied into an agent-tool invocation.
Variants§
Isolated
Start each delegated invocation with empty history and state.
Parent
Copy the parent’s current conversation history and state into the isolated child session.
Trait Implementations§
Source§impl Clone for AgentToolSessionSnapshot
impl Clone for AgentToolSessionSnapshot
Source§fn clone(&self) -> AgentToolSessionSnapshot
fn clone(&self) -> AgentToolSessionSnapshot
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 moreimpl Copy for AgentToolSessionSnapshot
Source§impl Debug for AgentToolSessionSnapshot
impl Debug for AgentToolSessionSnapshot
Source§impl Default for AgentToolSessionSnapshot
impl Default for AgentToolSessionSnapshot
Source§fn default() -> AgentToolSessionSnapshot
fn default() -> AgentToolSessionSnapshot
Returns the “default value” for a type. Read more
impl Eq for AgentToolSessionSnapshot
Source§impl PartialEq for AgentToolSessionSnapshot
impl PartialEq for AgentToolSessionSnapshot
impl StructuralPartialEq for AgentToolSessionSnapshot
Auto Trait Implementations§
impl Freeze for AgentToolSessionSnapshot
impl RefUnwindSafe for AgentToolSessionSnapshot
impl Send for AgentToolSessionSnapshot
impl Sync for AgentToolSessionSnapshot
impl Unpin for AgentToolSessionSnapshot
impl UnsafeUnpin for AgentToolSessionSnapshot
impl UnwindSafe for AgentToolSessionSnapshot
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