Commit graph

457 commits

Author SHA1 Message Date
Aran Yogesh
0be79c4dac
Merge pull request #931 from langchain-ai/yogesh/fix-sandbox-write-argmax
fix: use SDK write() in LangSmith backend to avoid ARG_MAX
2026-02-10 18:22:17 -08:00
aran-yogesh
4fd73e9f2d refactor: server.py changes 2026-02-10 18:18:04 -08:00
aran-yogesh
e7085154da refactor:langsmith.py changes 2026-02-10 17:38:32 -08:00
aran-yogesh
838e042fe4 fix: avoid ARG_MAX on sandbox writes by using SDK write() 2026-02-10 17:30:45 -08:00
Aran Yogesh
1ecf8306a7
Fix formatting in pyproject.toml 2026-02-10 14:31:08 -08:00
Aran Yogesh
9e7a5c678d
Merge pull request #929 from langchain-ai/yogesh/moving-langsmithprovider
refactor: move LangSmithProvider into open-swe, drop deepagents-cli
2026-02-10 14:20:29 -08:00
Aran Yogesh
f925f6161d
Add LangSmith SDK dependency
Added LangSmith SDK as a dependency for sandbox management.
2026-02-10 14:10:23 -08:00
Aran Yogesh
d118184f44
Apply suggestion from @bracesproul
Co-authored-by: Brace Sproul <braceasproul@gmail.com>
2026-02-10 14:05:52 -08:00
Aran Yogesh
259136162d
Remove deepagents dependency from langgraph.json 2026-02-10 13:44:12 -08:00
Aran Yogesh
b09a39210a
Merge pull request #926 from langchain-ai/yogesh/extract-middleware-to-separate-files
refactor: extract inline middleware from server.py into separate files [closes #900]
2026-02-10 13:36:33 -08:00
aran-yogesh
16aafaf7ad refactor: move LangSmithProvider into open-swe, drop deepagents-cli dependency 2026-02-10 13:35:50 -08:00
Aran Yogesh
c1da51f78d
Delete apps/agent/agent/utils/__init__.py 2026-02-10 13:30:30 -08:00
aran-yogesh
8c9bc67335 refactor: extract shared utils from server.py into agent/utils/ package 2026-02-10 11:25:19 -08:00
Brace Sproul
a1a6f81015
Merge branch 'open-swe-v3' into yogesh/extract-middleware-to-separate-files 2026-02-10 10:39:09 -08:00
Aran Yogesh
3f1100e8b2
Merge pull request #925 from langchain-ai/yogesh/update-langchain-langgraph-versions
fix: bump langchain and langgraph to latest versions
2026-02-10 10:39:00 -08:00
aran-yogesh
2b7ce6b691 refactor: extract inline middleware from server.py into separate files 2026-02-09 15:34:18 -08:00
Aran Yogesh
79e159c58d
Merge pull request #924 from langchain-ai/yogesh/switch-to-deepagents-dependency
feat: switch from deepagents-cli to deepagents core library [closes #898]
2026-02-09 14:19:34 -08:00
aran-yogesh
765c9c1c52 fix: bump langchain and langgraph to latest versions
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 14:14:03 -08:00
aran-yogesh
7480688e81 fix: use PyPI package for deepagents instead of git source
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 13:53:41 -08:00
aran-yogesh
1104f494ee fix: resolve merge conflict in tool_error_handler.py
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 13:39:37 -08:00
aran-yogesh
823291f841 feat: switch from deepagents-cli to deepagents library [closes #898] 2026-02-09 13:36:59 -08:00
Aran Yogesh
b8caf4c4a1
Merge pull request #922 from langchain-ai/yogesh/add-error-normalization-middleware
feat: add error normalization middleware for tool and model calls [Closes #904]
2026-02-09 13:30:52 -08:00
Aran Yogesh
bfaf361f25
Update exception handling in tool_error_handler.py
Refine exception handling in tool error handler to capture specific exceptions.
2026-02-09 13:16:08 -08:00
Aran Yogesh
770fcd4e1d
Change exception handling to catch all exceptions
Removed specific exception handling to catch all exceptions.
2026-02-09 13:10:54 -08:00
aran-yogesh
810bf412e9 Refactor middleware into package and update repo config 2026-02-09 12:53:34 -08:00
aran-yogesh
03744fbf2d feat: add error normalization middleware for tool and model calls []Closes #904] 2026-02-09 12:08:40 -08:00
aran-yogesh
7413befa79 feat: add error normalization middleware for tool and model calls 2026-02-09 11:52:54 -08:00
Aran Yogesh
5b345e7dfe
Merge pull request #903 from langchain-ai/yogesh/copy-sandbox-protocol
feat: copy SandboxBackendProtocol from deepagents [closes #897]
2026-02-07 17:28:54 -08:00
Aran Yogesh
1c847d56ab
Merge pull request #902 from langchain-ai/yogesh/generated_PR_and_custom_prompting
feat: add commit_and_open_pr tool and custom agent prompting [closes #892, closes #887]
2026-02-07 17:28:33 -08:00
aran-yogesh
9f78cf0b90 feat: copy SandboxBackendProtocol from deepagents to reduce coupling (#897)
- Add local protocol.py with SandboxBackendProtocol, ExecuteResponse, WriteResult, EditResult
- Update server.py to import from local protocol instead of deepagents
- Reduces dependency coupling between open-swe and deepagents

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 18:40:34 -08:00
aran-yogesh
dec020b5ae fix: edited custom prompting 2026-02-06 18:02:59 -08:00
aran-yogesh
b89ead0794 feat: add commit_and_open_pr tool and custom agent prompting 2026-02-06 17:16:00 -08:00
Aran Yogesh
bcb429eb8c
Merge pull request #901 from langchain-ai/yogesh/model-update
fix: add langgraph-cli dependency, fix ChatAnthropic import
2026-02-06 16:25:45 -08:00
aran-yogesh
8f4fd4a555 fix: add langgraph-cli dependency, fix ChatAnthropic import, and wire up Claude model 2026-02-06 16:11:24 -08:00
Brace Sproul
23887d41da
chore: Update dep to master (#895) 2026-02-06 13:28:24 -08:00
Brace Sproul
78542b226f
refactor: Remove all imports from deepagents_cli & pull in custom tools (#894) 2026-02-06 13:23:09 -08:00
aran-yogesh
841aa536f5 feat: add configurable sandbox template and fix sandbox lifecycle 2026-02-06 10:37:28 -08:00
aran-yogesh
db2a755463 feat: add LANGSMITH_API_KEY_PROD fallback for LangGraph Cloud
Add helper function to check LANGSMITH_API_KEY first, then fall back to
LANGSMITH_API_KEY_PROD for LangGraph Cloud deployments where
LANGSMITH_API_KEY is reserved by the platform.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-05 17:36:05 -08:00
aran-yogesh
9c29e3c9e0 Fix sandbox creation by removing unsupported cleanup parameter
- Remove cleanup=False argument from create_sandbox_async calls
  - Fixes TypeError: Received unsupported arguments: ['cleanup']
  - Allows agent to create and connect to sandboxes successfully
2026-02-05 17:00:54 -08:00
aran-yogesh
1083989723 env var changed to LANGSMITH_API_KEY_PROD isntead of LANGSMITH_API_KEY 2026-02-05 13:36:02 -08:00
Aran Yogesh
bee2165b0d
Add README for Open SWE Agent 2026-02-05 12:00:13 -08:00
Aran Yogesh
0c1076f3e7
Add schema and Python version to langgraph.json 2026-02-05 11:46:36 -08:00
Aran Yogesh
8c7216f2bc
Delete apps/agent/agent/__init__.py 2026-02-05 11:22:56 -08:00
Aran Yogesh
3681bb2503
Delete apps/agent/README.md 2026-02-05 11:18:20 -08:00
Aran Yogesh
08f73fba19
Delete apps/agent/uv.lock 2026-02-05 11:17:00 -08:00
Aran Yogesh
217bca8c8b
Delete apps/agent/agent/__pycache__ directory 2026-02-05 11:16:01 -08:00
Aran Yogesh
2f814183bc
Delete apps/agent/__pycache__ directory 2026-02-05 11:14:55 -08:00
aran-yogesh
fb41002d37 chore: Add Python cache files and uv.lock to gitignore
Ignore __pycache__ directories, .pyc files, and uv.lock to keep
the repository clean from auto-generated Python artifacts.
2026-02-05 11:09:46 -08:00
Aran Yogesh
1c3000473d
Delete apps/agent/__pycache__/server.cpython-311.pyc 2026-02-05 11:04:36 -08:00
Aran Yogesh
79f80810ff
Delete apps/agent/__pycache__/encryption.cpython-311.pyc 2026-02-05 10:55:45 -08:00