Skip to content

Latest commit

 

History

History
 
 

README.md

Advanced Data Analysis using Amazon AgentCore Bedrock Code Interpreter- Tutorial

Overview

This tutorial demonstrates how to create an AI agent that performs advanced data analysis through code execution using Python. We use Amazon Bedrock AgentCore Code Interpreter to run code that is generated by the LLM.

This tutorial demonstrates how to use AgentCore Bedrock Code Interpreter to:

  1. Set up a sandbox environment
  2. Configure trands & langchain based agents that performs advanced data analysis by generating code based on the user query
  3. Execute code in a sandbox environment using Code Interpreter
  4. Display the results back to the user

Tutorial Details

Information Details
Tutorial type Conversational
Agent type Single
Agentic Framework Langchain & Strands Agents
LLM model Anthropic Claude Sonnet 3.5 & 3.7
Tutorial components AmazonBedrock AgentCore Code Interpreter
Tutorial vertical Cross-vertical
Example complexity Easy
SDK used Amazon BedrockAgentCore Python SDK and boto3

Tutorial Architecture

The code execution sandbox enables agents to safely process user queries by creating an isolated environment with a code interpreter, shell, and file system. After a Large Language Model helps with tool selection, code is executed within this session, before being returned to the user or agent for synthesis.