In most cases, tools in wrappers like Langchain are not fully compatible.
I recommend channeling these tools using the Sambanova tool call example. It might look more difficult to implement, but it is less framework-dependent.
You can see the example on the following link:
https://community.sambanova.ai/t/function-calling-and-json-mode-in-sambanova-cloud/540