crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
18.97k stars 2.61k forks source link

self.crew is None #991

Open snailfrying opened 1 month ago

snailfrying commented 1 month ago

CrewAgentExeutor self.crew is None. Causes the memory build to fail code: if self.crew and self.crew.memory: contextual_memory = ContextualMemory( self.crew._short_term_memory, self.crew._long_term_memory, self.crew._entity_memory, ) memory = contextual_memory.build_context_for_task(task, context) if memory.strip() != "": task_prompt += self.i18n.slice("memory").format(memory=memory)

theCyberTech commented 1 month ago

Hi @snailfrying Can you share how you're configuring your crew to generate this issue?