We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2180893 commit a119c28Copy full SHA for a119c28
agentstack/templates/crewai/tools/open_interpreter.py
@@ -0,0 +1,14 @@
1
+from interpreter import interpreter
2
+from crewai_tools import tool
3
+
4
5
+# 1. Configuration and Tools
6
+interpreter.auto_run = True
7
+interpreter.llm.model = "gpt-4o"
8
9
10
+@tool
11
+def execute_code(code: str):
12
+ """A tool to execute code using Open Interpreter. Returns the output of the code."""
13
+ result = interpreter.chat(f"execute this code with no changes: {code}")
14
+ return result
agentstack/tools/open_interpreter.json
@@ -0,0 +1,6 @@
+{
+ "name": "open_interpreter",
+ "package": "poetry add open-interpreter",
+ "env": "",
+ "tools": ["execute_code"]
+}
0 commit comments