Load memory content before agent execution (synchronous).
Loads memory from all configured sources and stores in state. Only loads if not already present in state.
before_agent(
self,
state: MemoryState,
runtime: Runtime,
config: RunnableConfig
) -> MemoryStateUpdate | None| Name | Type | Description |
|---|---|---|
state* | MemoryState | Current agent state. |
runtime* | Runtime | Runtime context. |
config* | RunnableConfig | Runnable config. |