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
Does there exist a complete example of using the experimental_output property of streamText/generateText to do what's essentially object generation, but with useChat?
If I understand it's purpose correctly, this could essentially be leveraged to do a normal chat completeion call to a model, while suggesting its output adheres to the schemas provided in experimental_output.
A full end-to-end example of this would be an excellent resource. I currently do not understand how to handle OUTPUT_PARTIAL at all, and I'm struggling to understand how to properly leverage experimental_output to do a generative UI with streaming (which would technically require partial object handling).
However, it's entirely possible I'm misunderstanding the purpose of the experimental_output property.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does there exist a complete example of using the
experimental_outputproperty ofstreamText/generateTextto do what's essentially object generation, but withuseChat?If I understand it's purpose correctly, this could essentially be leveraged to do a normal chat completeion call to a model, while suggesting its output adheres to the schemas provided in
experimental_output.A full end-to-end example of this would be an excellent resource. I currently do not understand how to handle
OUTPUT_PARTIALat all, and I'm struggling to understand how to properly leverageexperimental_outputto do a generative UI with streaming (which would technically require partial object handling).However, it's entirely possible I'm misunderstanding the purpose of the
experimental_outputproperty.Beta Was this translation helpful? Give feedback.
All reactions