Skip to main content

Module memory

Module memory 

Source
Expand description

Context / memory providers.

Rust equivalent of agent_framework._memory. A ContextProvider injects extra instructions, messages, and tools into an agent invocation without persisting them to the conversation history.

Upstream renamed ContextProvider.invoking/invoked to before_run/ after_run and removed the thread_created hook entirely; before_run mutates a SessionContext in place instead of returning a value. There is no aggregate wrapper any more — consumers hold a Vec<Arc<dyn ContextProvider>> and iterate it directly.

Structs§

SessionContext
Per-invocation context a provider contributes to a run. Providers mutate this in place in before_run. Rust equivalent of upstream SessionContext.

Traits§

ContextProvider
A source of per-invocation context (memory, RAG, etc.). Upstream renamed invoking/invoked -> before_run/after_run and REMOVED thread_created. before_run mutates the SessionContext in place instead of returning a Context.