mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
changing method naming to increment
This commit is contained in:
@@ -42,7 +42,7 @@ class CrewAgentParser(ReActSingleInputOutputParser):
|
||||
|
||||
if includes_tool:
|
||||
if includes_answer:
|
||||
self.agent.count_formatting_errors()
|
||||
self.agent.increment_formatting_errors()
|
||||
raise OutputParserException(f"{FINAL_ANSWER_AND_TOOL_ERROR_MESSAGE}")
|
||||
|
||||
return AgentAction("", "", text)
|
||||
@@ -54,7 +54,7 @@ class CrewAgentParser(ReActSingleInputOutputParser):
|
||||
|
||||
format = self._i18n.slice("format_without_tools")
|
||||
error = f"{format}"
|
||||
self.agent.count_formatting_errors()
|
||||
self.agent.increment_formatting_errors()
|
||||
raise OutputParserException(
|
||||
error,
|
||||
observation=error,
|
||||
|
||||
Reference in New Issue
Block a user