Skip to content

Commit cf0d33c

Browse files
committed
x
1 parent 8a9dcd6 commit cf0d33c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libs/partners/anthropic/langchain_anthropic/middleware/anthropic_tools.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from pathlib import Path
1212
from typing import TYPE_CHECKING, Annotated, Any, cast
1313

14+
import shutil
15+
1416
from langchain.agents.middleware.types import (
1517
AgentMiddleware,
1618
AgentState,
@@ -714,7 +716,6 @@ def wrap_model_call(
714716
if request.system_prompt
715717
else self.system_prompt
716718
)
717-
718719
return handler(request)
719720

720721
async def awrap_model_call(
@@ -1031,8 +1032,6 @@ def _handle_insert(self, args: dict, tool_call_id: str | None) -> Command:
10311032

10321033
def _handle_delete(self, args: dict, tool_call_id: str | None) -> Command:
10331034
"""Handle delete command."""
1034-
import shutil
1035-
10361035
path = args["path"]
10371036
full_path = self._validate_and_resolve_path(path)
10381037

0 commit comments

Comments
 (0)