Code Execution Agent GitHub Repository

Explore the complete source code for the Code Execution Agent project. This repository contains all the necessary files and scripts to set up and run the investment analysis system using CrewAI and Composio.

1

Import Required Packages

Import necessary packages for Python code execution:

2

Initialize Composio Toolset

We’ll initialize and set up the code interpreter tool for our agents. Notice, here we arent intializing any llm. We will use by-default openai.

3

Define Python Code Executor Agent

Define the agent responsible for executing Python code:

4

Define Python Code Execution Task

Define the task for executing Python code:

5

Execute Python Code

Execute Python code using the defined agent and task:

Putting it All Together