def __init__(
        self,
        input_message: InputMessage,
        session: Session,
    ):
        """Initialize the ReasoningEngine with the input message and session.

        :param input_message: The input message to the reasoning engine.
        :param session: The session instance.
        """
        self.input_message = input_message
        self.session = session
        self.system_prompt = REASONING_SYSTEM_PROMPT
        self.max_iterations = 10
        self.llm = get_default_llm()
        self.agents: List[BaseAgent] = []
        self.stop_flag = False
        self.output_message: OutputMessage = self.session.output_message
        self.summary_content = None
        self.failed_agents = []
Initialize the ReasoningEngine with the input message and session.

        :param input_message: The input message to the reasoning engine.
        :param session: The session instance.
        
backend/director/core/reasoning.py