• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless, inc.

Bedrock AgentCore: LangGraph Agent with Managed Code Interpreter (JavaScript)

by

LangGraph JS agent using the AWS-managed AgentCore Code Interpreter for sandboxed code execution.

  1. Bedrock AgentCore: LangGraph Agent with Managed Code Interpreter (JavaScript)

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

ToolDescription
execute_codeExecute Python/JS/TS code in sandbox
execute_commandRun shell commands
read_filesRead file contents
write_filesWrite files
list_filesList directory contents

Quick Start

Deploy

npm install
sls deploy

Test

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

Remove

sls remove

Related Examples

  • langgraph-code-interpreter-custom - Custom interpreter with PUBLIC network

Contents

  • LangGraph Code Interpreter Example
  • Features
  • Tools Available
  • Quick Start
  • Deploy
  • Test
  • Remove
  • Related Examples

Related

GuidesPluginsExamplesSlack CommunitySupport