why can't i create variable of array of object
# 🤝help
w
f
Hey there, You should be able to do it with the schema. From their announcement: FEATURES & ENHANCEMENTS > 🛠️ Added ability to specify types within an object variable using schemas. Using custom object schemas will make the AI Task much better at extracting structured information!
w
THANK YOU for noticing!
f
You are very welcome, and let me know if you need some help setting it up
w
I think the autosave on the cloud might have some problem. Here is my issue: I change an array of options Type '[{label : string , value : string}]' to of the message obejct Type '{ role : string , content : string}' I just created in schema. But the code still ran on the previous array type and had the unwanted defaut value I did set. This even happened when I deleted the array and created new one with the same name. Eventually I had to create a new array with a new name to make it work. And after I re-enter the studio interface, some code rolled back to previous version of like some minutes before I left studio. Two possible causes I can think of: 1. I was using VPN. 2. I edited code when the chat was stilling emulating.
f
That sounds pretty weird. I was playing around with variables and schemas yesterday, and I didn't run into any issues. Can you reproduce this? If so then let me know how, and we can make a report about it.
w
I will try to collect more information if this happens next time.
f
Sounds good
14 Views