Fix agent memory (#5607)

This commit is contained in:
Aqr-K
2026-03-23 04:30:46 +08:00
committed by GitHub
parent 4873ffda84
commit 41f53d39a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ from langchain_core.messages import (
) )
from langgraph.checkpoint.memory import InMemorySaver from langgraph.checkpoint.memory import InMemorySaver
from app.agent.callback import StreamingHandler, StreamingHandler from app.agent.callback import StreamingHandler
from app.agent.memory import memory_manager from app.agent.memory import memory_manager
from app.agent.middleware.memory import MemoryMiddleware from app.agent.middleware.memory import MemoryMiddleware
from app.agent.middleware.patch_tool_calls import PatchToolCallsMiddleware from app.agent.middleware.patch_tool_calls import PatchToolCallsMiddleware
+1 -1
View File
@@ -1,7 +1,7 @@
from collections.abc import Awaitable, Callable from collections.abc import Awaitable, Callable
from typing import Annotated, NotRequired, TypedDict, Dict from typing import Annotated, NotRequired, TypedDict, Dict
from aiopath import AsyncPath from aiopathlib import AsyncPath
from langchain.agents.middleware.types import ( from langchain.agents.middleware.types import (
AgentMiddleware, AgentMiddleware,
AgentState, AgentState,