-
Notifications
You must be signed in to change notification settings - Fork 82
Error while checkpoint #477
Replies: 1 comment · 3 replies
-
Please share code. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Here is the JavaScript code where I'm encountering an error. // Import required modules // Initialize the model // Define the state annotation const CATEGORIZATION_SYSTEM_TEMPLATE = // Define the billing support node let trimmedHistory = state.messages; const billingRepResponse = await model.invoke([ const CATEGORIZATION_SYSTEM_TEMPLATE = // Define the technical support node let trimmedHistory = state.messages; const response = await model.invoke([ return { // Define the handle refund node // Build the state graph // Compile the graph const runGraph = async () => { for await (const value of stream) { runGraph().catch(console.error); |
Beta Was this translation helpful? Give feedback.
All reactions
-
A bit late but:
should be:
There may be other issues too - are you using TypeScript? |
Beta Was this translation helpful? Give feedback.
All reactions
-
No i am using javascript |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm encountering a TypeError when running my code:
TypeError: channels[k].fromCheckpoint is not a function
at emptyChannels (file:///D:/Full%20Stack/React/aiast/backend/node_modules/@langchain/langgraph/dist/channels/base.js:32:42)
at PregelLoop.initialize (file:///D:/Full%20Stack/React/aiast/backend/node_modules/@langchain/langgraph/dist/pregel/loop.js:198:26)
at async CompiledStateGraph._streamIterator (file:///D:/Full%20Stack/React/aiast/backend/node_modules/@langchain/langgraph/dist/pregel/index.js:458:20)
It looks like the fromCheckpoint function is not defined for channels[k]. This issue arises when executing the new.js file. Could anyone provide insights into why this function might be missing or how to resolve this problem?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions