opened 03:37PM - 13 Feb 25 UTC
closed 02:19PM - 24 Feb 25 UTC
Hey,
I'm getting this error all the time:
**InterpreterError:It is not permitte…d to evaluate other functions than the provided tools or functions
defined/imported in previous code**
In manager.run I'm trying to pass additional_args=dict(source_file="file.csv").
Example of agent:
```
agent_core = CodeAgent(
model = model,
tools = [tool_1, tool_2],
additional_authorized_imports=["pandas", "matplotlib", "seaborn"],
name="Data Analyst",
description="""Analysis agent with a set of ready-to-use tools that parse, cleanse, and process the data provided."""
)
```
```
manager_agent = CodeAgent(
model=model,
tools=[],
managed_agents=[agent_core],
additional_authorized_imports=["pandas", "matplotlib", "seaborn"],
)
```
It works normally when I try to call agent_core.run directly, without manager_agent.
Does anyone have a similar problem?