fix: allow to reset only an external_memory from crew

This commit is contained in:
lucasgomide
2025-04-01 16:08:47 -03:00
committed by Lucas Gomide
parent f1b0dcb052
commit 786514748f

View File

@@ -1326,7 +1326,15 @@ class Crew(BaseModel):
RuntimeError: If memory reset operation fails.
"""
VALID_TYPES = frozenset(
["long", "short", "entity", "knowledge", "kickoff_outputs", "all"]
[
"long",
"short",
"entity",
"knowledge",
"kickoff_outputs",
"all",
"external",
]
)
if command_type not in VALID_TYPES: