Skip to content

Commit 41f53d3

Browse files
authored
Fix agent memory (#5607)
1 parent 4873ffd commit 41f53d3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/agent/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
)
1414
from langgraph.checkpoint.memory import InMemorySaver
1515

16-
from app.agent.callback import StreamingHandler, StreamingHandler
16+
from app.agent.callback import StreamingHandler
1717
from app.agent.memory import memory_manager
1818
from app.agent.middleware.memory import MemoryMiddleware
1919
from app.agent.middleware.patch_tool_calls import PatchToolCallsMiddleware

app/agent/middleware/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections.abc import Awaitable, Callable
22
from typing import Annotated, NotRequired, TypedDict, Dict
33

4-
from aiopath import AsyncPath
4+
from aiopathlib import AsyncPath
55
from langchain.agents.middleware.types import (
66
AgentMiddleware,
77
AgentState,

0 commit comments

Comments
 (0)