Inaccurate code block extraction #15

Open
opened 2026-02-16 07:16:31 -05:00 by yindo · 1 comment
Owner

Originally created by @zndqs on GitHub (Jun 6, 2025).

https://github.com/langchain-ai/langgraph-codeact/blob/de14f16f5eb96351086c675c6a1bca238974b57d/langgraph_codeact/utils.py#L54

this line will cause error when model out like below

`我将使用sequentialthinking工具来规划为用户增加头像属性的实现方案。

<tool_call>

sequentialthinking(
    thought="首先需要明确头像属性应该存储在哪里,是用户表新增字段还是单独表",
    nextThoughtNeeded=True,
    thoughtNumber=1,
    totalThoughts=4,
    isRevision=False,
    revisesThought=None,
    branchFromThought=None,
    branchId=None,
    needsMoreThoughts=None
)

<tool_call>`

Originally created by @zndqs on GitHub (Jun 6, 2025). https://github.com/langchain-ai/langgraph-codeact/blob/de14f16f5eb96351086c675c6a1bca238974b57d/langgraph_codeact/utils.py#L54 this line will cause error when model out like below `我将使用sequentialthinking工具来规划为用户增加头像属性的实现方案。 <tool_call> ```python sequentialthinking( thought="首先需要明确头像属性应该存储在哪里,是用户表新增字段还是单独表", nextThoughtNeeded=True, thoughtNumber=1, totalThoughts=4, isRevision=False, revisesThought=None, branchFromThought=None, branchId=None, needsMoreThoughts=None ) ``` <tool_call>`
Author
Owner

@zndqs commented on GitHub (Jun 6, 2025):

"sequentialthinking(" have no spaces ,will be removed

@zndqs commented on GitHub (Jun 6, 2025): "sequentialthinking(" have no spaces ,will be removed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph-codeact#15