Merge pull request #924 from langchain-ai/yogesh/switch-to-deepagents-dependency

feat: switch from deepagents-cli to deepagents core library [closes #898]
This commit is contained in:
Aran Yogesh 2026-02-09 14:19:34 -08:00 • committed by GitHub
commit 79e159c58d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 1541 deletions

View file

@ -78,7 +78,7 @@ class ToolErrorMiddleware(AgentMiddleware):
) -> ToolMessage | Command:
try:
return handler(request)
except Exception as e:
except Exception as e:
logger.exception("Error during tool call handling; request=%r", request)
data = _to_error_payload(e, request)
return ToolMessage(
@ -94,7 +94,7 @@ class ToolErrorMiddleware(AgentMiddleware):
) -> ToolMessage | Command:
try:
return await handler(request)
except Exception as e:
except Exception as e:
logger.exception("Error during tool call handling; request=%r", request)
data = _to_error_payload(e, request)
return ToolMessage(

View file

@ -6,8 +6,8 @@ readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
# Core deepagents CLI - points to branch with LangSmith sandbox and working_dir support
"deepagents-cli @ git+https://github.com/langchain-ai/deepagents.git@master#subdirectory=libs/cli",
# Core deepagents library
"deepagents>=0.3.12",
# FastAPI for webhook handling
"fastapi>=0.104.0",
"uvicorn>=0.24.0",
@ -19,7 +19,7 @@ dependencies = [
"cryptography>=41.0.0",
# LangGraph SDK for thread management
"langgraph-sdk>=0.1.0",
# LangChain dependencies (will be pulled in by deepagents-cli but listing for clarity)
# LangChain dependencies (will be pulled in by deepagents but listing for clarity)
"langchain>=0.2.0",
"langgraph>=0.2.0",
"markdownify>=1.2.2",

1541
apps/agent/uv.lock generated

File diff suppressed because it is too large Load diff