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
When using streamText, with toolChoice set to "required" I would like to have the final text output streamed to the client as an assistant message.
So far I have followed the pattern described in the AI SDK Core - Agents section, where an answer tool is provided without the execute function.
Given that it is the final response and just text, I would like it to be an assistant message.
Would appreciate advice on whether this is possible or whether I have to call generateText with my tools and then pass the responseMessages to a subsequent streamText.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When using streamText, with toolChoice set to "required" I would like to have the final text output streamed to the client as an assistant message.
So far I have followed the pattern described in the AI SDK Core - Agents section, where an answer tool is provided without the execute function.
Given that it is the final response and just text, I would like it to be an assistant message.
Would appreciate advice on whether this is possible or whether I have to call generateText with my tools and then pass the responseMessages to a subsequent streamText.
Beta Was this translation helpful? Give feedback.
All reactions