pub struct ContextLayerGenerator { /* private fields */ }Implementations§
Source§impl ContextLayerGenerator
impl ContextLayerGenerator
pub fn new(providers: Arc<ProviderRegistry>) -> Self
pub async fn generate_l0(&self, content: &str) -> MemoryResult<String>
pub async fn generate_l1(&self, content: &str) -> MemoryResult<String>
pub async fn generate_layers( &self, l2_content: &str, ) -> MemoryResult<(String, String)>
Auto Trait Implementations§
impl Freeze for ContextLayerGenerator
impl !RefUnwindSafe for ContextLayerGenerator
impl Send for ContextLayerGenerator
impl Sync for ContextLayerGenerator
impl Unpin for ContextLayerGenerator
impl UnsafeUnpin for ContextLayerGenerator
impl !UnwindSafe for ContextLayerGenerator
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