Skip to content

fix(agent): keep cot action names and parse multiple code fences - #45370

Open
alexrain wants to merge 1 commit into
langgenius:mainfrom
alexrain:fix/cot-parser-action-name
Open

alexrain wants to merge 1 commit into
langgenius:mainfrom
alexrain:fix/cot-parser-action-name

Conversation

@alexrain

@alexrain alexrain commented Nov 3, 2026

Copy link
Copy Markdown

Fixes #45324.

Two parser defects: any non-input key (thought/reasoning/tool_id) overwrote �ction_name, and the greedy code-fence regex could span two separate fences. The parser now only reads �ction as the name and extracts one fenced block at a time. Added tests for supplementary keys and multi-fence output.

@github-actions github-actions Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] CotAgentOutputParser overwrites action_name with non-input keys and collapses multi-block code fences

1 participant