mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
Tools cache and delegation improvements (#68)
* Fixing repeated tool usage treatment * Improving agent delegation prompt
This commit is contained in:
@@ -66,7 +66,9 @@ class CrewAgentOutputParser(ReActSingleInputOutputParser):
|
||||
"input": tool_input,
|
||||
}
|
||||
if usage == last_tool_usage:
|
||||
raise TaskRepeatedUsageException(tool=action, tool_input=tool_input)
|
||||
raise TaskRepeatedUsageException(
|
||||
tool=action, tool_input=tool_input, text=text
|
||||
)
|
||||
|
||||
result = self.cache.read(action, tool_input)
|
||||
if result:
|
||||
|
||||
Reference in New Issue
Block a user