I am trying to generate SQL query from the agent by providing it the prompt, but when I am trying to execute the agent to generate SQL query it is giving me error, "This output parser only works with ChatGeneration output". I am using Ajax using turbo it is generating SQL, giving no error. Can anyone please help me?
I want it to generate some SQL query.
This is my code: