This commit is contained in:
Brandon Hancock
2025-03-26 11:16:02 -04:00
parent a25a27c3d3
commit 633644ab56
2 changed files with 6 additions and 5 deletions

View File

@@ -8,7 +8,6 @@ from copy import copy as shallow_copy
from hashlib import md5 from hashlib import md5
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, TypeVar, Union, cast from typing import Any, Callable, Dict, List, Optional, Set, Tuple, TypeVar, Union, cast
from langchain_core.tools import BaseTool as LangchainBaseTool
from pydantic import ( from pydantic import (
UUID4, UUID4,
BaseModel, BaseModel,
@@ -490,7 +489,7 @@ class Crew(BaseModel):
task.key for task in self.tasks task.key for task in self.tasks
] ]
return md5("|".join(source).encode(), usedforsecurity=False).hexdigest() return md5("|".join(source).encode(), usedforsecurity=False).hexdigest()
@property @property
def fingerprint(self) -> Fingerprint: def fingerprint(self) -> Fingerprint:
""" """

View File

@@ -507,9 +507,10 @@ class ConsoleFormatter:
# Remove the thinking status node when complete # Remove the thinking status node when complete
if "Thinking" in str(tool_branch.label): if "Thinking" in str(tool_branch.label):
agent_branch.children.remove(tool_branch) if tool_branch in agent_branch.children:
self.print(crew_tree) agent_branch.children.remove(tool_branch)
self.print() self.print(crew_tree)
self.print()
def handle_llm_call_failed( def handle_llm_call_failed(
self, tool_branch: Optional[Tree], error: str, crew_tree: Optional[Tree] self, tool_branch: Optional[Tree], error: str, crew_tree: Optional[Tree]
@@ -587,6 +588,7 @@ class ConsoleFormatter:
for child in flow_tree.children: for child in flow_tree.children:
if "Running tests" in str(child.label): if "Running tests" in str(child.label):
child.label = Text("✅ Tests completed successfully", style="green") child.label = Text("✅ Tests completed successfully", style="green")
break
self.print(flow_tree) self.print(flow_tree)
self.print() self.print()