When I call a tool, content will display the tool call tags.
Hello @Huimin-station ,
DeepSeek V3.2’s internal representation uses XML-like syntax for tool calls. It’s a model thing. Without proper parsing configuration, this raw format leaks through instead of being converted to the standard OpenAI-compatible JSON tool_calls format that LangChain expects.
The issue has been documented and fixed in various projects (like Cline IDE or SGLang), but the fix requires proper handling from the API response in langchain_ollama package.
Therefore I would recommend you open this issue in Langchain Repo for ChatOllama so parsing for this model can be handled in ChatOllama, and tool call parameter is properly filled.
Meanwhile I will recommend you use some other model e.g gpt-oss:120b-cloud.
If you want I can create the issue for you as well
.

