pub struct InjectedStore { /* private fields */ }Expand description
Marker: this tool parameter receives the long-term memory store.
The LLM never sees this parameter — it’s injected by the runtime.
The value is an Arc<dyn Store> from the pe-memory crate.
§Future usage (with #[tool] macro, Plan 010)
ⓘ
#[tool]
async fn memory_search(
query: String,
store: InjectedStore,
) -> Result<Value, PeError> {
let results = store.get().search(&query).await?;
// ...
}Note: The Store trait is defined in pe-memory. We store Arc<dyn Any>
here to avoid a circular dependency. The runtime layer casts it back.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InjectedStore
impl !UnwindSafe for InjectedStore
impl Freeze for InjectedStore
impl Send for InjectedStore
impl Sync for InjectedStore
impl Unpin for InjectedStore
impl UnsafeUnpin for InjectedStore
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