async def human_conversation(self, params: FunctionCallParams):
        """Function called when bot detects it's talking to a human."""
        # Update state to indicate human was detected
        self.call_flow_state.set_human_detected()
        await params.llm.push_frame(StopTaskFrame(), FrameDirection.UPSTREAM)
Function called when bot detects it's talking to a human.
examples/phone-chatbot/daily-pstn-advanced-voicemail-detection/bot.py