Skip to content

Conversation

@manzxiao
Copy link
Contributor

"await" can only be used inside an "async" function

Overview

Type of change

Type: [Replace with: New documentation page / Update existing documentation / Fix typo/bug/link/formatting / Remove outdated content / Other]

Related issues/PRs

  • GitHub issue:
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed
  • I have gotten approval from the relevant reviewers
  • (Internal team members only / optional) I have created a preview deployment using the Create Preview Branch workflow

Additional notes

"await" can only be used inside an "async" function
@manzxiao manzxiao requested a review from lnhsingh as a code owner October 31, 2025 02:45
Copilot AI review requested due to automatic review settings October 31, 2025 02:45
@github-actions github-actions bot added langgraph For docs changes to LangGraph oss labels Oct 31, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the async keyword to a JavaScript/TypeScript function parameter in the LangGraph streaming documentation. The change ensures consistency between the function signature and its implementation, which uses await for asynchronous operations.

  • Adds async keyword to the callModel node function definition

@lnhsingh lnhsingh merged commit d75f9d5 into langchain-ai:main Nov 6, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langgraph For docs changes to LangGraph oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants