dust-tt / dust

Amplify your team's potential with customizable and secure AI assistants.
https://dust.tt
MIT License
938 stars 107 forks source link

Visualization Action run #5926

Closed PopDaph closed 3 months ago

PopDaph commented 3 months ago

Description

This PR implements all the logic necessary to run a visualization action: backend run logic & render in the convo. I prepared a very simple Dust app using Aric's prompt from his PR.

We'll need to iterate on all the params and output logic of the app and of the action, and a lot of UI, but most of this code shouldn't change.

For now the action calls the Dust app that generates the code and we do nothing with it, it is only displayed on the "Inspect tools" button.

I have the code to display the action in the builder ready to push in a PR, it's not a lot of code but there's already 600 lines in this one (sometimes it's hard to split cause the types are shared everywhere).

This makes no change for the user (nothing in the Builder yet to add this new action, and anyway it will be hidden behind a feature flag).

Screenshot 2024-06-27 at 17 37 51

Risk

This should not break anything since the new action is not used, but in case it is safe to roll it back.

Deploy Plan

Deploy front. (changes on the model file is just a type)

github-actions[bot] commented 3 months ago
Warnings
:warning: Files in `**/lib/models/` have been modified and the PR has the `migration-ack` label. Don't forget to run the migration from the `-edge` infrastructure.

Generated by :no_entry_sign: dangerJS against 68bf80ee78a94dc2ed83f8e40acae93dda273ca7