Is there any I can wrap any of the following into a tool?:
my text-to-sql query pipeline is defined as the following:
qp = QueryPipeline(
modules={..., ..., ...},
verbose=True
)
I also have an agent wrapped around this pipeline (for retry logic):
agent_worker = QueryPipelineAgentWorker(qp, callback_manager)
agent = agent_worker.as_agent(verbose=True)
I am extremely confused as to how I can have my ReAct chat use the pipeline (or the agent, it doesnt matter which to me) as a "tool". It seems it only "query engines" or functions can be tools. Please any guidance is appreciated