Function to CSV

Hello. I created a function, and am using the function block. how do I go from there to output a csv file? My code does include saving the output as a csv, but I need to be able to display the file. I tried the asset block, and then display content block, but I cannot use vars. Please advise. Thanks

Hi @AIFusionCoven,

If your function generates a CSV and hosts it in MindStudio, you can reference the output variable directly in a Display Content block. Just set the Display Type to CSV, and it’ll display properly.

Here’s an example you can remix to check out how it works:
https://app.mindstudio.ai/agents/custom-function-csv-display-block-3a10f229/remix