Assistant: Prompt-based tool calling polyfill for models without native function calling support #43380
Blackjack200
started this conversation in
LLMs and Zed Agent
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
When
deepseek-reasoner(DeepSeek-V3.2-Exp) is selected in the Agent panel, Zed automatically falls back todeepseek-chatbecause the reasoner model does not support native tool calling.This fallback defeats the purpose for everyone who deliberately picks the reasoner model for its far superior reasoning, math, and complex refactoring capabilities.
Goal
Allow full Agent workflows while staying on the originally selected model — even when it lacks native function calling support.
Proposed Approach
Add an opt-in prompt-based tool calling polyfill (configurable via
tool_call_polyfill: true) that activates when a model reportstools_supported: false.The mechanism would:
This pattern is already battle-tested in DeepChat, and works exceptionally well with reasoning-focused models that follow instructions strictly.
Benefits
deepseek-reasonerin Agent modeWilling to Contribute
I'm happy to drive this entirely:
A opt-in prompt-based toolcall polyfill that activates automatically (or via toggle)Provider-agnostic core logicif possible, with DeepSeek as the first fully supported providerin-panel indicator(Running in compatibility mode – tool use via prompt polyfill)I’d like to implement this cleanly from the start, so before writing any code, I just want to check the team’s preference on this feature.
As soon as I get a quick go-ahead or any guidance, I’ll start the implementation and open the PR as fast as possible.
If this direction sounds good to the team, just drop a 👍 or any early feedback — I’ll start coding right away.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions