[PR #3512] [MERGED] docs: update ibm_watsonx_sql to use create_agent (LangGraph v1 migration) #3553

Closed
opened 2026-06-05 18:23:28 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3512
Author: @ShubhamKosaiker
Created: 4/9/2026
Status: Merged
Merged: 4/12/2026
Merged by: @mdrxy

Base: mainHead: patch-2


📝 Commits (1)

  • 3f29508 docs: update ibm_watsonx_sql to use create_agent (LangGraph v1 migration)

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/oss/python/integrations/tools/ibm_watsonx_sql.mdx (+2 -2)

📄 Description

Summary

Updates the IBM watsonx SQL integration example to align with LangGraph v1.0 API changes.

Changes

  • Replaces deprecated langgraph.prebuilt.create_react_agent
  • Uses langchain.agents.create_agent for agent construction
  • Updates prompt= argument to system_prompt= per new API
  • Removes debug=True (not supported in create_agent)

Why

create_react_agent was deprecated in LangGraph v1.0. The replacement
create_agent uses system_prompt= instead of prompt=.

Ref: https://docs.langchain.com/oss/python/migrate/langgraph-v1

Type of change

Type: Update existing documentation

Checklist

  • I have read the contributing guidelines

🔄 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/3512 **Author:** [@ShubhamKosaiker](https://github.com/ShubhamKosaiker) **Created:** 4/9/2026 **Status:** ✅ Merged **Merged:** 4/12/2026 **Merged by:** [@mdrxy](https://github.com/mdrxy) **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`3f29508`](https://github.com/langchain-ai/docs/commit/3f295086eeb04c5e86910daedebd0b8fb84096bf) docs: update ibm_watsonx_sql to use create_agent (LangGraph v1 migration) ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/python/integrations/tools/ibm_watsonx_sql.mdx` (+2 -2) </details> ### 📄 Description ## Summary Updates the IBM watsonx SQL integration example to align with LangGraph v1.0 API changes. ## Changes - Replaces deprecated `langgraph.prebuilt.create_react_agent` - Uses `langchain.agents.create_agent` for agent construction - Updates `prompt=` argument to `system_prompt=` per new API - Removes `debug=True` (not supported in create_agent) ## Why `create_react_agent` was deprecated in LangGraph v1.0. The replacement `create_agent` uses `system_prompt=` instead of `prompt=`. Ref: https://docs.langchain.com/oss/python/migrate/langgraph-v1 ## Type of change **Type:** Update existing documentation ## Checklist - [x] I have read the contributing guidelines --- <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-06-05 18:23:28 -04:00
yindo closed this issue 2026-06-05 18:23:28 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3553