[PR #1980] [MERGED] fix: wrap_model_call return type error #2027

Closed
opened 2026-02-17 17:22:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1980
Author: @likaiguo
Created: 12/19/2025
Status: Merged
Merged: 12/19/2025
Merged by: @lnhsingh

Base: mainHead: patch-2


📝 Commits (1)

  • c37eb8e fix: wrap_model_call return type error

📊 Changes

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

View changed files

📝 src/oss/langchain/multi-agent/skills-sql-assistant.mdx (+4 -2)

📄 Description

wrap_model_call need ModelResponse

state_updates = {"messages": response.result}
^^^^^^^^^^^^^^^
AttributeError: 'ModelRequest' object has no attribute 'result'

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

(Internal team members only / optional): Create a preview deployment as necessary using the Create Preview Branch workflow

Additional notes


🔄 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/1980 **Author:** [@likaiguo](https://github.com/likaiguo) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 12/19/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`c37eb8e`](https://github.com/langchain-ai/docs/commit/c37eb8e633d348ca2fb8b91badce3d75a3f2bb21) fix: wrap_model_call return type error ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/multi-agent/skills-sql-assistant.mdx` (+4 -2) </details> ### 📄 Description wrap_model_call need ModelResponse state_updates = {"messages": response.result} ^^^^^^^^^^^^^^^ AttributeError: 'ModelRequest' object has no attribute 'result' ## Overview <!-- Brief description of what documentation is being added/updated --> ## Type of change **Type:** [Replace with: New documentation page / Update existing documentation / Fix typo/bug/link/formatting / Remove outdated content / Other] ## Related issues/PRs <!-- Link to related issues, feature PRs, or discussions (if applicable) To automatically close an issue when this PR is merged, use closing keywords: - "closes #123" or "fixes #123" or "resolves #123" For regular references without auto-closing, just use: - "#123" or "See issue #123" Examples: - closes #456 (will auto-close issue #456 when PR is merged) - See #789 for context (will reference but not auto-close issue #789) --> - GitHub issue: - Feature PR: <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist <!-- Put an 'x' in all boxes that apply --> - [x] I have read the [contributing guidelines](README.md) - [x] I have tested my changes locally using `docs dev` - [x] All code examples have been tested and work correctly - [x] I have used **root relative** paths for internal links - [x] I have updated navigation in `src/docs.json` if needed (Internal team members only / optional): Create a preview deployment as necessary using the [Create Preview Branch workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes <!-- Any other information that would be helpful for reviewers --> --- <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:22:59 -05:00
yindo closed this issue 2026-02-17 17:22:59 -05:00
yindo changed title from [PR #1980] fix: wrap_model_call return type error to [PR #1980] [MERGED] fix: wrap_model_call return type error 2026-06-05 18:16:15 -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#2027