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
same issue here. when there is a multi-step server side tool call, onFinish only returns the final message which typically would not have the toolInvocation in it.
Hey @leonho - you can access steps in the onFinish of useChat if you define the maxSteps within your useChat options rather than on the server. Would that work for you?
Feature Description
In the current useChat onFinish, for multi-step calls, only the final message is returned instead of including the tool responses and chat messages.
With server-side streamText now returning all steps, it could be beneficial to implement this in useChat as well.
Use Case
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: