File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88from agentstack .agents import AgentConfig
99from agentstack .generation import asttools
1010
11- try :
12- from crewai .tools import tool as _crewai_tool_decorator
13- except ImportError :
14- raise ValidationError ("Could not import `crewai`. Is this an AgentStack CrewAI project?" )
15-
1611ENTRYPOINT : Path = Path ('src/crew.py' )
1712
1813
@@ -330,6 +325,11 @@ def get_tool_callables(tool_name: str) -> list[Callable]:
330325 """
331326 Get a tool implementations for use directly by a CrewAI agent.
332327 """
328+ try :
329+ from crewai .tools import tool as _crewai_tool_decorator
330+ except ImportError :
331+ raise ValidationError ("Could not import `crewai`. Is this an AgentStack CrewAI project?" )
332+
333333 tool_funcs = []
334334 tool_config = ToolConfig .from_tool_name (tool_name )
335335 for tool_func_name in tool_config .tools :
You can’t perform that action at this time.
0 commit comments