mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 12:43:16 +00:00
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:
commit
79e159c58d
3 changed files with 10 additions and 1541 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
1541
apps/agent/uv.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue