Skip to content
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
4 changes: 2 additions & 2 deletions lib/crewai/src/crewai/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ async def _aexecute_core(
self.agent = agent
if not agent:
raise Exception(
f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that support that, like hierarchical."
f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that supports that, like hierarchical."
)

self.prompt_context = context
Expand Down Expand Up @@ -714,7 +714,7 @@ def _execute_core(
self.agent = agent
if not agent:
raise Exception(
f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that support that, like hierarchical."
f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that supports that, like hierarchical."
)

self.prompt_context = context
Expand Down
4 changes: 2 additions & 2 deletions lib/crewai/src/crewai/utilities/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class I18N(BaseModel):
_prompts: dict[str, dict[str, str]] = PrivateAttr()
prompt_file: str | None = Field(
default=None,
description="Path to the prompt_file file to load",
description="Path to the prompt_file to load",
)

@model_validator(mode="after")
Expand Down Expand Up @@ -125,7 +125,7 @@ def retrieve(
try:
return self._prompts[kind][key]
except Exception as e:
raise Exception(f"Prompt for '{kind}':'{key}' not found.") from e
raise Exception(f"Prompt for '{kind}':'{key}' not found.") from e


@lru_cache(maxsize=None)
Expand Down