[PR #4758] docs: fix async usage example from await .invoke() to `await .ainvo… #4046

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

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

State: closed
Merged: Yes


This PR fixes a minor but important documentation issue in the "Running Agents" section.

Change:
Replaced incorrect async usage:

await .invoke()

with the correct:

await .ainvoke()

This fix helps users avoid confusion and potential runtime errors when working with async agent execution.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/4758 **State:** closed **Merged:** Yes --- This PR fixes a minor but important documentation issue in the "Running Agents" section. **Change:** Replaced incorrect async usage: ```python await .invoke() ``` with the correct: ```python await .ainvoke() ``` This fix helps users avoid confusion and potential runtime errors when working with async agent execution.
yindo added the pull-request label 2026-02-20 17:49:34 -05:00
yindo closed this issue 2026-02-20 17:49:34 -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#4046