From 55a79fe1157852b0bf5d6d83618d8bdd86b87d6e Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Wed, 18 Feb 2026 13:10:44 +0530 Subject: [PATCH] Update js.md --- docs/en/samples/pre_post_processing/js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/samples/pre_post_processing/js.md b/docs/en/samples/pre_post_processing/js.md index 88c6703e093..4b0a1940736 100644 --- a/docs/en/samples/pre_post_processing/js.md +++ b/docs/en/samples/pre_post_processing/js.md @@ -25,7 +25,7 @@ The following example demonstrates how to use `ToolboxClient` with LangChain's m {{< include "js/langchain/agent.js" >}} ``` -You can also use the `wrapModel` hook to intercept messages before and after model calls. +You can also use the `wrapModelCall` hook to intercept messages before and after model calls. You can also use [node-style hooks](https://docs.langchain.com/oss/javascript/langchain/middleware/custom#node-style-hooks) to intercept messages at the agent and model level. See the [LangChain Middleware documentation](https://docs.langchain.com/oss/javascript/langchain/middleware/custom#tool-call-monitoring) for details on these additional hook types.