[Solved ✅] Privacy concerns about local tools
If I'm using the code interpreter tool, when I run my code without an LLM and it gets sent to composio to deal with. Am I sending any data to Composio?
1 Reply
from composio_crewai import ComposioToolSet, App
from crewai import Agent, Task, Crew
from langchain_openai import ChatOpenAI
toolset = ComposioToolSet()
llm = ChatOpenAI(model="gpt-4o")
tools = toolset.get_tools(apps=[App.FILETOOL,App.SHELLTOOL])
crewai_agent = Agent(
role="Code Execution Agent",
goal="You execute code and commands using Python",
backstory="You are an AI agent that is responsible for executing code and shell commands safely and effectively",
verbose=True,
tools=tools,
llm=llm,
)
# Create task to write file
create_file_task = Task(
description="Create a Python file named 'hello.py' with the following content: print('Hello World')",
agent=crewai_agent,
expected_output="File created successfully",
)
# Create task to execute file
execute_file_task = Task(
description="Execute the Python file 'hello.py'",
agent=crewai_agent,
expected_output="Output of code execution",
)
crew = Crew(agents=[crewai_agent], tasks=[create_file_task, execute_file_task])
result = crew.kickoff()
print(result)
from composio_crewai import ComposioToolSet, App
from crewai import Agent, Task, Crew
from langchain_openai import ChatOpenAI
toolset = ComposioToolSet()
llm = ChatOpenAI(model="gpt-4o")
tools = toolset.get_tools(apps=[App.FILETOOL,App.SHELLTOOL])
crewai_agent = Agent(
role="Code Execution Agent",
goal="You execute code and commands using Python",
backstory="You are an AI agent that is responsible for executing code and shell commands safely and effectively",
verbose=True,
tools=tools,
llm=llm,
)
# Create task to write file
create_file_task = Task(
description="Create a Python file named 'hello.py' with the following content: print('Hello World')",
agent=crewai_agent,
expected_output="File created successfully",
)
# Create task to execute file
execute_file_task = Task(
description="Execute the Python file 'hello.py'",
agent=crewai_agent,
expected_output="Output of code execution",
)
crew = Crew(agents=[crewai_agent], tasks=[create_file_task, execute_file_task])
result = crew.kickoff()
print(result)