diff --git a/src/crewai/agent.py b/src/crewai/agent.py index 41889edb5..11e6a94bb 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -78,9 +78,6 @@ class Agent(BaseModel): default=None, description="Maximum number of requests per minute for the agent execution to be respected.", ) - memory: bool = Field( - default=False, description="Whether the agent should have memory or not" - ) verbose: bool = Field( default=False, description="Verbose mode for the Agent Execution" ) @@ -194,7 +191,7 @@ class Agent(BaseModel): task=task_prompt, context=context ) - if self.crew and self.memory: + if self.crew and self.crew.memory: contextual_memory = ContextualMemory( self.crew._short_term_memory, self.crew._long_term_memory, diff --git a/src/crewai/crew.py b/src/crewai/crew.py index 75ff1d608..49a60a8cf 100644 --- a/src/crewai/crew.py +++ b/src/crewai/crew.py @@ -67,7 +67,7 @@ class Crew(BaseModel): process: Process = Field(default=Process.sequential) verbose: Union[int, bool] = Field(default=0) memory: bool = Field( - default=True, + default=False, description="Whether the crew should use memory to store memories of it's execution", ) embedder: Optional[dict] = Field(