The assistants API can only return a function-call for such an application. You would need to handle the AI’s output of a function it wrote, supplying all the code, processing, database access and query, and returning the response back to the AI. While ensuring the user didn’t decide to ask about mister drop table.
4 Likes