Jeremiah, "the weeping prophet" was given the job of giving Israel the final warning before the northern kingdom was taken into Assyrian captivity. Along the way God gives the prophet precious jewels of Scripture [the virgin birth, the length Judah & Israel would be in the Babylonian captivity, a clear projection of Jesus' step-fathers inability to be the Messiah's biological father, a precious prayer promise, et cetera].
Part of the inerrant, inspired and infallible Word of God.