You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the useChat hook to call my chat api route handler in NextJS. I have datadog logging any errors in useChat's onError property. I randomly get errors logged that look like this:
Error: ToolInvocation must have a result: {"state":"partial-call","toolCallId":"call_id","toolName":"myToolName","args":{"message":"my arg.","question":"my arg"}}
Description
I am using the useChat hook to call my chat api route handler in NextJS. I have datadog logging any errors in useChat's
onError
property. I randomly get errors logged that look like this:It is always when
state
ispartial-call
.Code example
api route:
Additional context
No response
The text was updated successfully, but these errors were encountered: