pub struct ContextTransform {
pub from_blueprint: String,
pub to_blueprint: String,
pub mappings: Vec<RegionMapping>,
}Expand description
Context transform for converting between agent types.
When spawning a sub-agent with a different blueprint, transforms define how to map regions from the parent agent’s context to the child agent’s context. This enables smooth handoffs between agents with different memory structures.
Fields§
§from_blueprint: StringSource blueprint name
to_blueprint: StringTarget blueprint name
mappings: Vec<RegionMapping>Region mapping rules
Trait Implementations§
Source§impl Clone for ContextTransform
impl Clone for ContextTransform
Source§fn clone(&self) -> ContextTransform
fn clone(&self) -> ContextTransform
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 moreSource§impl Debug for ContextTransform
impl Debug for ContextTransform
Source§impl<'de> Deserialize<'de> for ContextTransform
impl<'de> Deserialize<'de> for ContextTransform
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContextTransform
impl RefUnwindSafe for ContextTransform
impl Send for ContextTransform
impl Sync for ContextTransform
impl Unpin for ContextTransform
impl UnsafeUnpin for ContextTransform
impl UnwindSafe for ContextTransform
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