mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
fix: fix trainig_data error (#820)
* fix: fix trainig_data error * fix: fix lack crew on agent * fix: fix lack crew on agent executor
This commit is contained in:
committed by
GitHub
parent
c005ec3f78
commit
da9cc5f097
@@ -241,7 +241,7 @@ class Agent(BaseModel):
|
||||
self.agent_executor.tools_description = render_text_description(parsed_tools)
|
||||
self.agent_executor.tools_names = self.__tools_names(parsed_tools)
|
||||
|
||||
if self.crew._train:
|
||||
if self.crew and self.crew._train:
|
||||
task_prompt = self._training_handler(task_prompt=task_prompt)
|
||||
else:
|
||||
task_prompt = self._use_trained_data(task_prompt=task_prompt)
|
||||
|
||||
Reference in New Issue
Block a user