Code Execution Agent
This is a simple guide to demonstrate how to use CODEINTERPRETER tool by composio
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.
Import Required Packages
Import necessary packages for Python code execution:
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.
Define Python Code Executor Agent
Define the agent responsible for executing Python code:
Define Python Code Execution Task
Define the task for executing Python code:
Execute Python Code
Execute Python code using the defined agent and task:
Putting it All Together
Was this page helpful?