-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple createReactAgent will cause errors. #7856
Comments
I found a similar open issue related to the error "Cannot read properties of undefined (reading 'message')" when using the
These steps might help in resolving the issue. If the problem persists, further investigation into the interaction between the agents and the supervisor function might be necessary [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@vbarda could you have a look at this? |
@phpmac any chance you're using some custom chat model implementation? trace shows I tested the code you provided replacing model with import { ChatOpenAI } from "@langchain/openai";
const model = new ChatOpenAI(); and it works perfectly fine for me |
就是openaichat model
2025 年 3 月 24 日星期一 21:22, Vadym Barda ***@***.***(mailto:2025 年 3 月 24 日星期一 21:22, Vadym Barda <<a href=)> 来信:
… ***@***.***(https://github.com/phpmac) any chance you're using some custom chat model implementation? trace shows ChatOpenAI, but it's unclear what the model is from your import (import { model } from "core/ai";)
—
Reply to this email directly, [view it on GitHub](#7856 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AUUI7W72GY5T2NHYOX6D5KD2WABJXAVCNFSM6AAAAABZGDFUFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBYGEZDAMBVGQ).
You are receiving this because you authored the thread.Message ID: ***@***.***>
[vbarda] vbarda left a comment [(langchain-ai/langchainjs#7856)](#7856 (comment))
***@***.***(https://github.com/phpmac) any chance you're using some custom chat model implementation? trace shows ChatOpenAI, but it's unclear what the model is from your import (import { model } from "core/ai";)
—i
Reply to this email directly, [view it on GitHub](#7856 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AUUI7W72GY5T2NHYOX6D5KD2WABJXAVCNFSM6AAAAABZGDFUFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBYGEZDAMBVGQ).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@phpmac which |
Try this |
Checked other resources
Example Code
demo code
print
This is true regardless of the model used.
Error Message and Stack Trace (if applicable)
No response
Description
System Info
node v23.10.0
yarn 1.22.22
npm 10.9.2
The text was updated successfully, but these errors were encountered: