Open sudiptachatterjee opened 5 years ago
I think you're missing the .newMessage()
invocation before your setting of params. So to properly create a new message and set params it would be: chatbase.newMessage().setAsTypeAgent()
etc. You can also see this pattern demonstrated on the readme: https://github.com/google/chatbase-node/blob/master/README.md
I have the following code:
However, when I call
agentMessage("Hello", conv)
myconsole.log
shows the Hello message but I get an error that says:Am I doing something wrong?