Can't create a Langgraph supervisor agent with cohere models AttributeError: 'CohereTool' object has no attribute

Hello Team,

Hope you are doing well.

I have encountered below issue while creating a supervisor agent using 'create_supervisor" library and am using OCI GEN AI Chat services.

Any inputs would be appreciated. Thank you in advance.

Error :

Python\Python313\Lib\site-packages\langgraph\prebuilt\chat_agent_executor.py", line 173, in _should_bind_tools
if bound_tool.get(“type”) == “function”:
^^^^^^^^^^^^^^
AttributeError: ‘CohereTool’ object has no attribute ‘get’