Building SQL Agent with Litserve

I tried to build SQL agent with Litserve and langchain , my server is not getting hosted , runs into a loop. any guidance document for creating SQL agent with litserve