Removing memory flag from agent in favor of crew memory

This commit is contained in:
João Moura committed 2024-04-04 15:29:45 -03:00
1 parent 5bc63a321c
commit e9adc3fa4e
2 files changed
+2 -5

No files matched your search

+1 -4
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,
+1 -1
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(