feat: add langchain deepagents backend integration#1
Open
johannhartmann wants to merge 4 commits intomainfrom
Open
feat: add langchain deepagents backend integration#1johannhartmann wants to merge 4 commits intomainfrom
johannhartmann wants to merge 4 commits intomainfrom
Conversation
a943354 to
d750e34
Compare
a52322f to
d3df291
Compare
26dd56c to
015ad58
Compare
f202be6 to
f7f6921
Compare
daeb330 to
4bdb0c4
Compare
4bdb0c4 to
09e0021
Compare
Implement SandboxBackendProtocol for langchain-deepagents, providing sandbox lifecycle management, file I/O, and code execution via the k8s-agent-sandbox Python SDK. - AgentSandboxBackend wrapping Sandbox handles for execute, read, write, edit, grep, glob, upload, and download operations - Path virtualization under configurable root_dir with escape detection - SandboxPolicyWrapper for path and command restrictions - WarmPoolBackend for pre-warmed sandbox pod adoption - create_sandbox_backend_factory for dependency-injected construction - 57 unit tests covering backend lifecycle, file ops, and policies - Makefile test-langchain target and test-unit CI registration Signed-off-by: Johann-Peter Hartmann <johann-peter.hartmann@mayflower.de>
End-to-end test exercising the LangChain backend against a kind cluster: execute, write, read, edit, grep, glob, upload, and download. Includes module-level skip guard when langchain-agent-sandbox is not installed. Updates dev/tools/test-e2e to install langchain-agent-sandbox in the e2e test virtual environment. Signed-off-by: Johann-Peter Hartmann <johann-peter.hartmann@mayflower.de>
Example application demonstrating the LangChain backend with sandbox templates, skills definitions, and a kind cluster test script. Includes README for the langchain-agent-sandbox package with usage examples for direct sandbox, template-based, and warm pool modes. Signed-off-by: Johann-Peter Hartmann <johann-peter.hartmann@mayflower.de>
09e0021 to
b5d2233
Compare
…vior Fix _to_internal() rejecting valid filenames starting with '..' (e.g. '..foo') by tightening the escape check to match only '..' or '../'. Propagate actual exception messages in read() errors instead of a generic 'not found' message. Use grep -Z for null-byte filename delimiters to correctly handle filenames containing colons, with a fallback to colon splitting. Preserve partial find results when non-zero exit codes come from permission errors on individual subdirectories. Use find -L to follow symlinks so symlinked directories are classified correctly in glob_info().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: Adds langchain-agent-sandbox integration package for LangChain DeepAgents, including adapter implementation, tests, and docs.
Testing