Removing memory flag from agent in favor of crew memory

This commit is contained in:
João Moura
2024-04-04 13:26:46 -03:00
parent 5bc63a321c
commit e9adc3fa4e
2 changed files with 2 additions and 5 deletions

View File

@@ -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,

View File

@@ -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(