This example illustrates how to connect your application to a different database after the application start. Use this approach in a multi-tenant application where you need to associate every user or ...
The tool will use an LLM (gpt-4o-mini by default) to generate the appropriate SQL query by passing through your question and the database schema, and will then execute the query and return the result.