def plan_generate(self, query, tool_info, chat_history):
        """
        Generate a plan based on the user's query, tool information, and chat history.

        Args:
            query (str): The user's query.
            tool_info (str): Information about the available tools.
            chat_history (str): The chat history.

        Returns:
            dict: The generated plan in JSON format.

        """
        return self.query_pipeline.run(
            input=query, tools=tool_info, chat_history=chat_history
        )

        Generate a plan based on the user's query, tool information, and chat history.

        Args:
            query (str): The user's query.
            tool_info (str): Information about the available tools.
            chat_history (str): The chat history.

        Returns:
            dict: The generated plan in JSON format.

        
llama-index-packs/llama-index-packs-secgpt/llama_index/packs/secgpt/planner.py