Agni is both of those the sacred fire along with the deity of that fireplace who transmits oblations to another deities. So, this mantra is recited although invoking the deity Agni in the shape of fireplace as witness for the vow. Mantras (also referred to as dhāranīs) fluctuate in length https://bentdirectory.com/listings13303613/the-mantra-diaries