Setting a path with structured outputs
Demo: https://vit.xwm.mybluehost.me/samples-site/?path-setter
Heres a somewhat interesting use case for structured outputs. The idea is to set the conversational "path." Setting the path doesn't do anything itself but it can be used to determine what sequence of questions gets asked, for example.
I set this up for a demo a couple months ago. What I found interesting enough to post about it today is that there is no system prompt. It's a great simple example of keeping the logic inside of the schema.
The property description contains all the information I would have put in the system prompt. And it seems to work like that. Which is convenient because when we access this schema via API, it's easier if there's no system prompt.


