pub struct AgentMemoryCustomizer { /* private fields */ }Expand description
Build-time memory assembly (§9.1). Thin caller into the
RecallCoordinator, kept wire-stable; the coordinator owns budgets,
index composition, the envelope nonce, and ledger writes.
Implementations§
Source§impl AgentMemoryCustomizer
impl AgentMemoryCustomizer
pub fn new( provider: Arc<dyn AgentMemoryProvider>, config: AgentMemoryConfig, ) -> Self
pub fn wrap( inner: Option<Arc<dyn AgentCustomizer>>, provider: Arc<dyn AgentMemoryProvider>, config: AgentMemoryConfig, ) -> Self
Sourcepub fn with_operator_resolver(
self,
resolver: Option<Arc<dyn OperatorResolver>>,
) -> Self
pub fn with_operator_resolver( self, resolver: Option<Arc<dyn OperatorResolver>>, ) -> Self
Install the §7.2 provisional operator resolver on the build-time coordinator (the composed index and build bodies see the operator scope through the same seam as the turn path).
Sourcepub fn with_mob_resolver(
self,
resolver: Option<Arc<dyn MobScopeResolver>>,
) -> Self
pub fn with_mob_resolver( self, resolver: Option<Arc<dyn MobScopeResolver>>, ) -> Self
Install the §7.2 mob-scope resolver on the build-time coordinator so materialization composes the member’s bound mob scopes into the index.
Trait Implementations§
Source§impl AgentCustomizer for AgentMemoryCustomizer
impl AgentCustomizer for AgentMemoryCustomizer
Source§fn customize_build<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 AgentBuildContext,
spec: &'life2 DurableAgentSpec,
draft: &'life3 mut AgentBuildDraft,
) -> Pin<Box<dyn Future<Output = Result<(), CustomizerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn customize_build<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 AgentBuildContext,
spec: &'life2 DurableAgentSpec,
draft: &'life3 mut AgentBuildDraft,
) -> Pin<Box<dyn Future<Output = Result<(), CustomizerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Customize the build draft for the given identity.
Source§fn after_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
identity: &'life1 AgentIdentity,
session_id: &'life2 SessionId,
context: &'life3 SessionCreatedContext,
) -> Pin<Box<dyn Future<Output = Result<(), CustomizerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn after_create<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
identity: &'life1 AgentIdentity,
session_id: &'life2 SessionId,
context: &'life3 SessionCreatedContext,
) -> Pin<Box<dyn Future<Output = Result<(), CustomizerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Called after a session is successfully created. Best-effort.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentMemoryCustomizer
impl !UnwindSafe for AgentMemoryCustomizer
impl Freeze for AgentMemoryCustomizer
impl Send for AgentMemoryCustomizer
impl Sync for AgentMemoryCustomizer
impl Unpin for AgentMemoryCustomizer
impl UnsafeUnpin for AgentMemoryCustomizer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more