Examples
LangGraph Sandbox Example
How to use the Cloud Code SDK with LangGraph to build an AI coding agent in a sandbox environment.
This example demonstrates how to use the Cloud Code SDK together with LangGraph to build an AI coding agent that can create, read, search, and edit files in a sandbox environment. The agent uses a ReAct-style loop and exposes tools for file management and code editing.
Example: sandbox.py
Note:
- This example demonstrates how to build a ReAct-style AI coding agent using LangGraph and the Cloud Code SDK in a sandbox environment.
- You must set your
CLOUD_CODE_API_KEY
environment variable before running.- The agent exposes tools for file creation, reading, searching, code editing, and running shell commands.