Agni is the two the sacred fire as well as deity of that fireplace who transmits oblations to another deities. So, this mantra is recited while invoking the deity Agni in the shape of fireplace as witness for the vow. Baglamukhi is a powerful goddess that is worshipped for defense https://gettydirectory.com/listings834346/the-basic-principles-of-baglamukhi