8000 cleaning up some typos in scripts by didier-durand · Pull Request #2860 · crewAIInc/crewAI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cleaning up some typos in scripts #2860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _create_short_term_memory(self, output) -> None:
pass

def _create_external_memory(self, output) -> None:
"""Create and save a external-term memory item if conditions are met."""
"""Create and save an external-term memory item if conditions are met."""
if (
self.crew
and self.agent
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def reset_memories(
all: bool,
) -> None:
"""
Reset the crew memories (long, short, entity, latest_crew_kickoff_ouputs, knowledge, agent_knowledge). This will delete all the data saved.
Reset the crew memories (long, short, entity, latest_crew_kickoff_outputs, knowledge, agent_knowledge). This will delete all the data saved.
"""
try:
memory_types = [long, short, entities, knowledge, agent_knowledge, kickoff_outputs, all]
Expand Down
6 changes: 3 additions & 3 deletions src/crewai/cli/update_crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ def parse_version(version: str) -> str:
"""Parse and convert version specifiers."""
if version.startswith("^"):
main_lib_version = version[1:].split(",")[0]
addtional_lib_version = None
additional_lib_version = None
if len(version[1:].split(",")) > 1:
addtional_lib_version = version[1:].split(",")[1]
additional_lib_version = version[1:].split(",")[1]

return f">={main_lib_version}" + (
f",{addtional_lib_version}" if addtional_lib_version else ""
f",{additional_lib_version}" if additional_lib_version else ""
)
return version
2 changes: 1 addition & 1 deletion src/crewai/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def write_env_file(folder_path, env_vars):


def get_crews(crew_path: str = "crew.py", require: bool = False) -> list[Crew]:
"""Get the crew instances from the a file."""
"""Get the crew instances from a file."""
crew_instances = []
try:
import importlib.util
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/tasks/conditional_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ConditionalTask(Task):
"""
A task that can be conditionally executed based on the output of another task.
Note: This cannot be the only task you have in your crew and cannot be the first since its needs context from the previous task.
Note: This cannot be the only task you have in your crew and cannot be the first since it needs context from the previous task.
"""

condition: Callable[[TaskOutput], bool] = Field(
Expand Down
0