mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Clean up
This commit is contained in:
@@ -748,7 +748,6 @@ class LLM:
|
|||||||
if not LLMContextLengthExceededException(
|
if not LLMContextLengthExceededException(
|
||||||
str(e)
|
str(e)
|
||||||
)._is_context_limit_error(str(e)):
|
)._is_context_limit_error(str(e)):
|
||||||
print("HERE IS WHERE THE ERROR IS")
|
|
||||||
logging.error(f"LiteLLM call failed: {str(e)}")
|
logging.error(f"LiteLLM call failed: {str(e)}")
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|||||||
@@ -52,14 +52,6 @@ class ToolUsageErrorException(Exception):
|
|||||||
super().__init__(self.message)
|
super().__init__(self.message)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
|
||||||
class ToolResult:
|
|
||||||
"""Result of tool execution."""
|
|
||||||
|
|
||||||
result: str
|
|
||||||
result_as_answer: bool = False
|
|
||||||
|
|
||||||
|
|
||||||
class ToolUsage:
|
class ToolUsage:
|
||||||
"""
|
"""
|
||||||
Class that represents the usage of a tool by an agent.
|
Class that represents the usage of a tool by an agent.
|
||||||
|
|||||||
Reference in New Issue
Block a user