[PR #1641] [MERGED] fix(doc): Refactor middleware hooks for content filtering #1723

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1641
Author: @VBlazing
Created: 11/26/2025
Status: Merged
Merged: 12/1/2025
Merged by: @lnhsingh

Base: mainHead: patch-2


📝 Commits (1)

  • d607289 fix(doc): Refactor middleware hooks for content filtering

📊 Changes

1 file changed (+62 additions, -56 deletions)

View changed files

📝 src/oss/langchain/guardrails.mdx (+62 -56)

📄 Description

If don't add canJumpTo: ['end'], it will cause an error: 'Invalid jump target: end, no afterAgent.canJumpTo defined in middleware customerMiddleware.'

langchain version: 1.1.1

Overview

Type of change

Type: Update existing documentation

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

🔄 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/1641 **Author:** [@VBlazing](https://github.com/VBlazing) **Created:** 11/26/2025 **Status:** ✅ Merged **Merged:** 12/1/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`d607289`](https://github.com/langchain-ai/docs/commit/d607289363f9e34fea37495626a182b8cc50ce4b) fix(doc): Refactor middleware hooks for content filtering ### 📊 Changes **1 file changed** (+62 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/guardrails.mdx` (+62 -56) </details> ### 📄 Description If don't add `canJumpTo: ['end']`, it will cause an error: 'Invalid jump target: end, no afterAgent.canJumpTo defined in middleware customerMiddleware.' langchain version: 1.1.1 ## Overview <!-- Brief description of what documentation is being added/updated --> ## Type of change **Type:** Update existing documentation ## 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) - [ ] I have tested my changes locally using `docs dev` - [x] 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 --- <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:40 -05:00
yindo closed this issue 2026-02-17 17:22:40 -05:00
yindo changed title from [PR #1641] fix(doc): Refactor middleware hooks for content filtering to [PR #1641] [MERGED] fix(doc): Refactor middleware hooks for content filtering 2026-06-05 18:14:35 -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#1723