Add documentation for LangChain Python SDK v1.x#161
Open
narendranathe wants to merge 1 commit intoandrewyng:mainfrom
Open
Add documentation for LangChain Python SDK v1.x#161narendranathe wants to merge 1 commit intoandrewyng:mainfrom
narendranathe wants to merge 1 commit intoandrewyng:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds curated Python docs for LangChain 1.x and LangGraph 1.1, two of the most
commonly mis-used APIs in AI agent codegen.
Why
LangChain 1.0 broke the old import paths that most agents still use. Agents
hallucinate
from langchain.chat_models import ChatOpenAIand deprecatedinitialize_agentpatterns constantly. LangGraph 1.1 introduced type-safestreaming (version="v2") that agents don't know about.
Files added
content/langchain/docs/agents/python/DOC.md— v1.2.12, covers correctimports, tool-calling agents, LCEL chains, RAG, structured output
content/langgraph/docs/graph/python/DOC.md— v1.1.0, covers StateGraph,persistence, human-in-the-loop, v2 streaming, subgraphs
Closes #37