Symptom
A hierarchical crew's final answer ends with a line of three backticks (```). The linked issue does not give a one-line error string.
Evidence what you'll see
- The report shows the tail as
## Final Answer:and then the answer, then another fence. A comment says those backticks are also in the Python output. - The report sees it when agents use tools, including the manager's delegation tool.
- It was noticed starting at
0.98.0, and not in0.95.0.
Why it happens
Pull request #2159 says tool outputs in hierarchical mode were getting extra backticks appended, and those backticks then show up at the end of the crew's answer. The crew in the report uses process=Process.hierarchical and a manager_agent. The extra fence is appended to the tool output, not typed by the task text.
Affected versions
crewai 0.100.0 and crewai-tools 0.33.0, macOS Sonoma, Python 3.12, venv. Also seen since 0.98.0.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- Run the hierarchical crew several times, as the report did (about 4 or 5). The final answer no longer ends with a line of three backticks.
If it still fails
- The maintainer comment could not reproduce the fence and left open that it might be specific to the goals and descriptions.
- The linked issue does not name a release whose notes list pull request 2159.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it