mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 09:08:31 +00:00
Removing memory flag from agent in favor of crew memory
This commit is contained in:
@@ -78,9 +78,6 @@ class Agent(BaseModel):
|
|||||||
default=None,
|
default=None,
|
||||||
description="Maximum number of requests per minute for the agent execution to be respected.",
|
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(
|
verbose: bool = Field(
|
||||||
default=False, description="Verbose mode for the Agent Execution"
|
default=False, description="Verbose mode for the Agent Execution"
|
||||||
)
|
)
|
||||||
@@ -194,7 +191,7 @@ class Agent(BaseModel):
|
|||||||
task=task_prompt, context=context
|
task=task_prompt, context=context
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.crew and self.memory:
|
if self.crew and self.crew.memory:
|
||||||
contextual_memory = ContextualMemory(
|
contextual_memory = ContextualMemory(
|
||||||
self.crew._short_term_memory,
|
self.crew._short_term_memory,
|
||||||
self.crew._long_term_memory,
|
self.crew._long_term_memory,
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class Crew(BaseModel):
|
|||||||
process: Process = Field(default=Process.sequential)
|
process: Process = Field(default=Process.sequential)
|
||||||
verbose: Union[int, bool] = Field(default=0)
|
verbose: Union[int, bool] = Field(default=0)
|
||||||
memory: bool = Field(
|
memory: bool = Field(
|
||||||
default=True,
|
default=False,
|
||||||
description="Whether the crew should use memory to store memories of it's execution",
|
description="Whether the crew should use memory to store memories of it's execution",
|
||||||
)
|
)
|
||||||
embedder: Optional[dict] = Field(
|
embedder: Optional[dict] = Field(
|
||||||
|
|||||||
Reference in New Issue
Block a user