diff --git a/lib/cli/src/crewai_cli/agent_tui.py b/lib/cli/src/crewai_cli/agent_tui.py
index fed067e37..d23f2ef66 100644
--- a/lib/cli/src/crewai_cli/agent_tui.py
+++ b/lib/cli/src/crewai_cli/agent_tui.py
@@ -1124,7 +1124,9 @@ class AgentTUI(App[None]):
lines = [f"[bold]Active Skills[/] ({len(active)})"]
for s in active:
- lines.append(f" [{_CORAL}]{_safe_render(s.name)}[/] — {_safe_render(s.description)}")
+ lines.append(
+ f" [{_CORAL}]{_safe_render(s.name)}[/] — {_safe_render(s.description)}"
+ )
self._mount_sys("\n".join(lines))
def _handle_tasks_command(self, parts: list[str]) -> None:
@@ -1223,7 +1225,9 @@ class AgentTUI(App[None]):
if mem_type == "canonical"
else f"[dim]{mem_type}[/]"
)
- importance_tag = f" [yellow]★{_safe_render(str(importance))}[/]" if importance else ""
+ importance_tag = (
+ f" [yellow]★{_safe_render(str(importance))}[/]" if importance else ""
+ )
scope_tag = f" [{_DIM}]scope:{_safe_render(str(scope))}[/]" if scope else ""
time_tag = f" [{_DIM}]{timestamp}[/]" if timestamp else ""
diff --git a/lib/cli/src/crewai_cli/cli.py b/lib/cli/src/crewai_cli/cli.py
index 7ea58b6c2..8241b7fbe 100644
--- a/lib/cli/src/crewai_cli/cli.py
+++ b/lib/cli/src/crewai_cli/cli.py
@@ -236,7 +236,7 @@ def _train_new_agents(agent_files: list[Any], n_iterations: int) -> None:
from crewai.new_agent.definition_parser import load_agent_from_definition
agent = load_agent_from_definition(
- str(agent_path), agents_dir=str(agent_path.parent)
+ str(agent_path), agents_dir=agent_path.parent
)
except Exception as e:
click.secho(f" Error loading agent {agent_name}: {e}", fg="red")
@@ -992,7 +992,9 @@ def _test_new_agents(
if progress is None:
raise RuntimeError("progress must not be None in non-verbose mode")
progress.start(iteration=iteration)
- output_ctx = VerboseBenchmarkOutput() if verbose else SuppressBenchmarkOutput()
+ output_ctx = (
+ VerboseBenchmarkOutput() if verbose else SuppressBenchmarkOutput()
+ )
with ArtifactsSandbox(), output_ctx:
all_results = _loop.run_until_complete(_run_all())
finally:
diff --git a/lib/crewai/src/crewai/new_agent/executor.py b/lib/crewai/src/crewai/new_agent/executor.py
index 35b6c03dd..cd0848ade 100644
--- a/lib/crewai/src/crewai/new_agent/executor.py
+++ b/lib/crewai/src/crewai/new_agent/executor.py
@@ -625,9 +625,7 @@ class ConversationalAgentExecutor(BaseModel):
pass
return ""
- _INTERNAL_TAG_RE = re.compile(
- r".*?", re.DOTALL
- )
+ _INTERNAL_TAG_RE = re.compile(r".*?", re.DOTALL)
def _strip_internal_tags(self, text: str) -> str:
"""Strip blocks that leak from the summarization prompt."""
@@ -2034,7 +2032,9 @@ class ConversationalAgentExecutor(BaseModel):
)
self.provenance_log.append(tool_prov_entry)
# GAP-89: Persist tool call provenance to memory
- await asyncio.to_thread(self._persist_provenance_to_memory, tool_prov_entry)
+ await asyncio.to_thread(
+ self._persist_provenance_to_memory, tool_prov_entry
+ )
# GAP-67: Detect artifacts from tool results
try:
@@ -2065,11 +2065,10 @@ class ConversationalAgentExecutor(BaseModel):
if len(result_str) > _MAX_TOOL_RESULT_CHARS:
from crewai.utilities.i18n import I18N_DEFAULT
- display_result = (
- result_str[:_MAX_TOOL_RESULT_CHARS]
- + I18N_DEFAULT.new_agent("tool_result_truncated").format(
- char_count=len(result_str)
- )
+ display_result = result_str[
+ :_MAX_TOOL_RESULT_CHARS
+ ] + I18N_DEFAULT.new_agent("tool_result_truncated").format(
+ char_count=len(result_str)
)
llm_messages.append(
{