mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
Fix agent memory (#5607)
This commit is contained in:
@@ -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,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,
|
||||||
|
|||||||
Reference in New Issue
Block a user