[PR #818] [MERGED] upgrade to use v1 style syntax #1049

Closed
opened 2026-02-17 17:21:37 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/818
Author: @sydney-runkle
Created: 10/10/2025
Status: Merged
Merged: 10/10/2025
Merged by: @sydney-runkle

Base: mainHead: sr/no-more-v0-stuff


📝 Commits (10+)

📊 Changes

137 files changed (+577 additions, -524 deletions)

View changed files

📝 .github/langchain.instructions.md (+1 -1)
📝 src/langgraph-platform/generative-ui-react.mdx (+2 -2)
📝 src/langgraph-platform/graph-rebuild.mdx (+2 -3)
📝 src/langsmith/evaluate-complex-agent.mdx (+2 -2)
📝 src/langsmith/evaluate-graph.mdx (+2 -4)
📝 src/langsmith/trace-with-langgraph.mdx (+2 -3)
📝 src/oss/concepts/context.mdx (+3 -3)
📝 src/oss/langchain/agents.mdx (+3 -3)
📝 src/oss/langchain/long-term-memory.mdx (+17 -10)
📝 src/oss/langchain/mcp.mdx (+1 -1)
📝 src/oss/langchain/messages.mdx (+7 -7)
📝 src/oss/langchain/middleware.mdx (+282 -233)
📝 src/oss/langchain/models.mdx (+1 -1)
📝 src/oss/langchain/multi-agent.mdx (+1 -1)
📝 src/oss/langchain/rag.mdx (+4 -4)
📝 src/oss/langchain/retrieval.mdx (+7 -7)
📝 src/oss/langchain/runtime.mdx (+10 -10)
📝 src/oss/langchain/short-term-memory.mdx (+15 -13)
📝 src/oss/langchain/sql-agent.mdx (+5 -5)
📝 src/oss/langchain/structured-output.mdx (+1 -1)

...and 80 more files

📄 Description

First pass -- v1 style syntax:

  • use imports from langchain.tools
  • use imports from langchain.messages
  • update prompt -> system_prompt in `create_agent
  • use context_schema
  • update middleware conceptual guide

TODO in a future PR:

  • remove pre/post model hook references
  • new langchain namespace, add this to v1 and migration
  • remove old style dynamic system prompt from JS
  • add notes about improved imports to V1 overview pages, taking inspo from https://github.com/langchain-ai/docs/pull/822/files
  • Going to do a whole new pass on middleware page 👍 it's very much a WIP right now

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/818 **Author:** [@sydney-runkle](https://github.com/sydney-runkle) **Created:** 10/10/2025 **Status:** ✅ Merged **Merged:** 10/10/2025 **Merged by:** [@sydney-runkle](https://github.com/sydney-runkle) **Base:** `main` ← **Head:** `sr/no-more-v0-stuff` --- ### 📝 Commits (10+) - [`0655135`](https://github.com/langchain-ai/docs/commit/0655135bb67188abc59662d41d72100090afc537) cc first pass at upgrading docs - [`25e7d88`](https://github.com/langchain-ai/docs/commit/25e7d88cb17342982595e7bd54ac1c9da778918a) update interface - [`19a94c9`](https://github.com/langchain-ai/docs/commit/19a94c973261eb4a750a2497577aff2fee579b8e) typo - [`e6e7898`](https://github.com/langchain-ai/docs/commit/e6e789812dd23a6fac7be939b3007b85e52bd5d7) another quick fix - [`1fe4245`](https://github.com/langchain-ai/docs/commit/1fe4245c80ce04a139ce69ce7ca99599674043b4) another update - [`ca9257e`](https://github.com/langchain-ai/docs/commit/ca9257e599de9a43e1b722c4686c448c502163e3) more import changes - [`e96d224`](https://github.com/langchain-ai/docs/commit/e96d2240db5a8eba19235fb4516cfeb34d8d4a6a) Merge branch 'sr/quick-updates' into sr/no-more-v0-stuff - [`b75d51e`](https://github.com/langchain-ai/docs/commit/b75d51eb43e25d3c470afe5525c81331cb1cf4cb) imports - [`91bbe94`](https://github.com/langchain-ai/docs/commit/91bbe94a51641540f60d2b55168fc313ab2e0c44) more import changes - [`5968012`](https://github.com/langchain-ai/docs/commit/59680121994c5e8c57a677602002ccf8b107e890) Merge branch 'main' into sr/no-more-v0-stuff ### 📊 Changes **137 files changed** (+577 additions, -524 deletions) <details> <summary>View changed files</summary> 📝 `.github/langchain.instructions.md` (+1 -1) 📝 `src/langgraph-platform/generative-ui-react.mdx` (+2 -2) 📝 `src/langgraph-platform/graph-rebuild.mdx` (+2 -3) 📝 `src/langsmith/evaluate-complex-agent.mdx` (+2 -2) 📝 `src/langsmith/evaluate-graph.mdx` (+2 -4) 📝 `src/langsmith/trace-with-langgraph.mdx` (+2 -3) 📝 `src/oss/concepts/context.mdx` (+3 -3) 📝 `src/oss/langchain/agents.mdx` (+3 -3) 📝 `src/oss/langchain/long-term-memory.mdx` (+17 -10) 📝 `src/oss/langchain/mcp.mdx` (+1 -1) 📝 `src/oss/langchain/messages.mdx` (+7 -7) 📝 `src/oss/langchain/middleware.mdx` (+282 -233) 📝 `src/oss/langchain/models.mdx` (+1 -1) 📝 `src/oss/langchain/multi-agent.mdx` (+1 -1) 📝 `src/oss/langchain/rag.mdx` (+4 -4) 📝 `src/oss/langchain/retrieval.mdx` (+7 -7) 📝 `src/oss/langchain/runtime.mdx` (+10 -10) 📝 `src/oss/langchain/short-term-memory.mdx` (+15 -13) 📝 `src/oss/langchain/sql-agent.mdx` (+5 -5) 📝 `src/oss/langchain/structured-output.mdx` (+1 -1) _...and 80 more files_ </details> ### 📄 Description First pass -- v1 style syntax: * use imports from `langchain.tools` * use imports from `langchain.messages` * update `prompt` -> `system_prompt` in `create_agent * use `context_schema` * update middleware conceptual guide TODO in a future PR: * remove pre/post model hook references * new langchain namespace, add this to v1 and migration * remove old style dynamic system prompt from JS * add notes about improved imports to V1 overview pages, taking inspo from https://github.com/langchain-ai/docs/pull/822/files * Going to do a whole new pass on middleware page 👍 it's very much a WIP right now --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:21:37 -05:00
yindo closed this issue 2026-02-17 17:21:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1049