Skip to content

fix: strip hallucinated <tool_result> blocks in ReACT loop#660

Open
MD-Mushfiqur123 wants to merge 1 commit into
666ghj:mainfrom
MD-Mushfiqur123:fix/strip-hallucinated-tool-result
Open

fix: strip hallucinated <tool_result> blocks in ReACT loop#660
MD-Mushfiqur123 wants to merge 1 commit into
666ghj:mainfrom
MD-Mushfiqur123:fix/strip-hallucinated-tool-result

Conversation

@MD-Mushfiqur123
Copy link
Copy Markdown

Strips hallucinated <tool_result> blocks from LLM responses before parsing tool calls in both _generate_section_react and chat methods. Some models sometimes fabricate tool results instead of waiting for actual execution, which can interfere with ReACT loop logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant