“sent me from Kadesh-barnea to spy out the land.” Cp. Numbers 13:1-25, especially verse 6.
“as it was in my heart.” This is idiomatic, and means that the report Caleb gave was his understanding of the situation. The report was fully consistent with the way he felt. It does not mean that it was his heart to report what he saw.