Skip to content

Commit

Permalink
Fixed typo, added the recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidit-Ostwal committed Feb 17, 2025
1 parent 92fedb7 commit 0b154dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/concepts/memory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Note: To use the cli command you need to have your crew in a file called crew.py

### Resetting Memory via crew object

```python code
```python

my_crew = Crew(
agents=[...],
Expand Down Expand Up @@ -560,7 +560,6 @@ my_crew.reset_memories(command_type = 'all') # Resets all the memory
| `knowledge` | Reset KNOWLEDGE memory. |
| `all` | Reset ALL memories. |

Note: To use the cli command you need to have your crew in a file called crew.py in the same directory.

## Benefits of Using CrewAI's Memory System

Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def get_crew(crew_path: str = "crew.py", require: bool = False) -> Crew | None:
for attr_name in dir(module):
attr = getattr(module, attr_name)
try:
if not callable(attr) and hasattr(attr, "kickoff"):
if isinstance(attr, Crew) and hasattr(attr, "kickoff"):
print(f"Found valid crew object in attribute '{attr_name}'.")
return attr

Expand Down

0 comments on commit 0b154dd

Please sign in to comment.