Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

LangGraph Code Interpreter Example

A LangGraph JavaScript agent with AWS-managed code interpreter for sandboxed code execution.

Features

  • Sandboxed Execution: Run Python, JavaScript, or TypeScript in a SANDBOX environment
  • File Operations: Read, write, and list files in the sandbox
  • Shell Commands: Execute shell commands
  • LangGraph JS: ReAct agent pattern with code execution tools

Tools Available

Tool Description
execute_code Execute Python/JS/TS code in sandbox
execute_command Run shell commands
read_files Read file contents
write_files Write files
list_files List directory contents

Quick Start

Deploy

npm install
sls deploy

Test

RUNTIME_ARN=<your-runtime-arn> node test-invoke.js

Remove

sls remove

Related Examples