Skip to content

BUG - Tool calling not working with Ollama 0.9.2 + Qwen3 models (4B / 32B) #2

Description

@tesla-yan

Hi, thanks for the excellent project.

When using deepagents together with Ollama 0.9.2 and Qwen3 series models, I found that tool calling does not work at all.

Environment:
Ollama 0.9.2
Models tested: qwen3:4b, qwen3:32b
deepagents (latest)

Logging:

Optional[{
	messages=[
	UserMessage{content='"what is langgraph?"
', metadata={messageType=USER}, messageType=USER}
	AssistantMessage [messageType=ASSISTANT, toolCalls=[], textContent={"name": "internet_search", "parameters": {"q": "langgraph", "limit": "10", "raw": "true"}}, metadata={role=ASSISTANT, messageType=ASSISTANT, finishReason=STOP, refusal=, index=0, annotations=[{}], id=chatcmpl-322}]
	]
	files={}
	}]

Thanks for taking a look!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions