Replies: 1 comment
-
| 
         This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I want to enable tag-based UI extraction from the stream, similar to how extractReasoningMiddleware extracts reasoning sections. Specifically, I aim to generate actions using a response stream and display them properly in the UI as separate "actions" elements. Using the Vercel AI SDK, what is the best approach to handle this? The middleware should extract content between custom tags,
so using this kind of approach i need to show actions after that response. for reasoning i can do it by
type.reasoningand do this. but for actions how to do that.Beta Was this translation helpful? Give feedback.
All reactions