more testing

This commit is contained in:
Brandon Hancock
2025-03-26 10:54:00 -04:00
parent fa62df7d18
commit e6b90699a8
3 changed files with 50 additions and 52 deletions

View File

@@ -748,6 +748,7 @@ class LLM:
if not LLMContextLengthExceededException(
str(e)
)._is_context_limit_error(str(e)):
print("HERE IS WHERE THE ERROR IS")
logging.error(f"LiteLLM call failed: {str(e)}")
raise

View File

@@ -105,7 +105,6 @@ class ToolUsage:
def use(
self, calling: Union[ToolCalling, InstructorToolCalling], tool_string: str
) -> str:
print("USING A TOOL", calling, tool_string)
if isinstance(calling, ToolUsageErrorException):
error = calling.message
if self.agent.verbose:
@@ -145,8 +144,6 @@ class ToolUsage:
tool: CrewStructuredTool,
calling: Union[ToolCalling, InstructorToolCalling],
) -> str:
print("USING A TOOL: ", tool)
print("Type of tool: ", type(tool))
if self._check_tool_repeated_usage(calling=calling): # type: ignore # _check_tool_repeated_usage of "ToolUsage" does not return a value (it only ever returns None)
try:
result = self._i18n.errors("task_repeated_usage").format(