Skip to content

Conversation

@nandan2093
Copy link

@nandan2093 nandan2093 commented Nov 3, 2025

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

Copilot AI review requested due to automatic review settings November 3, 2025 14:21
@nandan2093 nandan2093 requested a review from lnhsingh as a code owner November 3, 2025 14:21
@github-actions github-actions bot added langgraph For docs changes to LangGraph oss labels Nov 3, 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 updates import statements to use the correct langchain_core.messages module instead of the non-existent langchain.messages module. This corrects a bug where imports were pointing to an invalid package location.

Key Changes:

  • Corrected all imports from langchain.messages to langchain_core.messages throughout the quickstart documentation
  • Affected imports include AnyMessage, SystemMessage, ToolMessage, and HumanMessage

@mdrxy mdrxy marked this pull request as draft November 3, 2025 15:39
@mdrxy
Copy link
Collaborator

mdrxy commented Nov 3, 2025

Why?

@nandan2093
Copy link
Author

@mdrxy

langchain.messages throws an import error as follows in python:

from langchain.messages import AnyMessage
ModuleNotFoundError: No module named 'langchain.messages'

Resolved this error by using langchain_core.messages

@nandan2093 nandan2093 marked this pull request as ready for review November 3, 2025 16:53
Copilot AI review requested due to automatic review settings November 3, 2025 16:53
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@mdrxy
Copy link
Collaborator

mdrxy commented Nov 3, 2025

@mdrxy mdrxy closed this Nov 3, 2025
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