[PR #6045] fix(prebuilt): allow async tools running via sync call in tool node #4800

Closed
opened 2026-02-20 17:50:46 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6045

State: closed
Merged: No


Added test failing on main w/:

Full diff:
    {
        'messages': [
  -         ToolMessage(content='async tool', name='async_tool', tool_call_id='1'),
  +         ToolMessage(content="Error: NotImplementedError('StructuredTool does not support sync invocation.')\n Please fix your mistakes.", name='async_tool', tool_call_id='1', status='error'),
        ],
    }
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6045 **State:** closed **Merged:** No --- Added test failing on `main` w/: ```py Full diff: { 'messages': [ - ToolMessage(content='async tool', name='async_tool', tool_call_id='1'), + ToolMessage(content="Error: NotImplementedError('StructuredTool does not support sync invocation.')\n Please fix your mistakes.", name='async_tool', tool_call_id='1', status='error'), ], } ```
yindo added the pull-request label 2026-02-20 17:50:46 -05:00
yindo closed this issue 2026-02-20 17:50:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4800