N
Nuxtβ€’3mo ago
Many

UChatMessage - Unable to display toolInvocation parts

Hey everyone πŸ‘‹ I'm currently integrating the UChatMessage component into my Nuxt app and I'm having trouble using the parts property. Specifically, when I pass a list of toolInvocation objects as parts, nothing is displayed on the screen I've checked the documentation and examples, but I may be missing something. Here's my Vue component below for reference. I'd really appreciate any help or insight you can share πŸ™ Thanks in advance!
2 Replies
kapa.ai
kapa.aiβ€’3mo ago
Hi @Many. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources do not provide explicit details or examples about rendering toolInvocation parts with the UChatMessage component. The documentation does mention that the parts prop can include ToolInvocationUIPart objects and that assistant messages can have text, reasoning, and tool invocation parts, but it does not show how these are rendered or if any additional setup is required for tool invocations to display correctly. All available examples in the documentation use only plain text parts or the content prop, and there are no code samples or slot customizations shown for tool invocation rendering. If you are following the documented structure for parts and it works for text but not for tool invocations, it may be a limitation or a missing feature in the current version of the component, or it might require a custom slot/template that is not documented. If you need to display tool invocation details, you might consider using the content slot to manually render the information from your parts array as a workaround, but this is not covered in the official documentation. For further assistance, you may want to check the GitHub repository for open issues or raise a new one describing your use case and the problem you're encountering, as the documentation does not provide a solution for this scenario at this timeΒ ChatMessage PropsΒ ChatMessages API. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.aiβ€’3mo ago
<@775668423912062986> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?