Update js.md

This commit is contained in:
Twisha Bansal
2026-02-18 13:10:44 +05:30
committed by GitHub
parent 2229be41ef
commit 55a79fe115

View File

@@ -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.