The interactions between God and Satan in the book of Job are along similar lines.
[Job 1:6-9, 11 KJV] 6 Now there was a day when the sons of God came to present themselves before the LORD, and Satan came also among them. 7 And the LORD said unto Satan, Whence comest thou? Then Satan answered the LORD, and said, From going to and fro in the earth, and from walking up and down in it. 8 And the LORD said unto Satan, Hast thou considered my servant Job, that [there is] none like him in the earth, a perfect and an upright man, one that feareth God, and escheweth evil? 9 Then Satan answered the LORD, and said, Doth Job fear God for nought? ... 11 But put forth thine hand now, and touch all that he hath, and he will curse thee to thy face.
The interesting thing in this first passage is that Satan had an impression of God that God didn't know how things would work out, otherwise it would have been a sucker's bet. Now, Satan might have been wrong, but if the story means anything at all, at least Satan was not convinced that God's knowledge was exhaustive. on God's part Could Satan, who knew God well, and was able to be in His presence, have that wrong? And God didn't offer His foreknowledge as proof of the outcome--He pointed to Job's character/integrity (Job 2:3).
The passage also addresses the idea that God knows based on ordaining--there is a hint of it, when Satan says in vs 10: Hast not thou made an hedge about him, and about his house, and about all that he hath on every side? thou hast blessed the work of his hands, and his substance is increased in the land.
But Satan didn't think God knew the future exhaustively for that reason either, else he would never have asked God to remove the hedge of protection in order to win the bet.
Finally, also from Job 2:3, God presents Himself as "movable", rather than immovable. [Job 2:3 KJV] 3 And the LORD said unto Satan, Hast thou considered my servant Job, that [there is] none like him in the earth, a perfect and an upright man, one that feareth God, and escheweth evil? and still he holdeth fast his integrity, although thou movedst me against him, to destroy him without cause.
This is not a didactic passage, I suppose, but if it means anything at all, it must be taken as representative of God in His own environment, as you pointed out in the 1 Kings passage. And to say this is not how God interacted with Satan, or that God didn't really say what He said to Satan is a direct blow to the inerrancy and integrity of scripture as a whole, and especially the inspiration of scripture as a whole. I say this because the passage can only come to us in two ways--God revealed the events to a prophet/the author of the book or a man made up the events. There were no human attendees at the meetings of the sons of God. If a man made up the story, and it is wrong, then what parts of the scripture CAN we trust? And how do we know what we can trust?
And later parts of the book ARE didactic. Do they carry more weight than the earlier parts?
... I was saving Job for the follow-up.