mt logoMyToken
ETH Gas
EN

DeepSeek officially released the API tool lazy loading mechanism, which loads on demand without compromising cache integrity

2026-11-27 10:38:41
Shareshare

DeepSeek AI News Update: Today, DeepSeek released an updated official API documentation, officially introducing the Deferred Tool Loading mechanism.


In the past, when Agents integrated hundreds of MCP tools, loading all tool descriptions into the context at startup would unnecessarily consume a large number of Tokens. However, if clients load tools on-demand, changes to the tool list could invalidate previously cached contexts, increasing inference costs.


DeepSeek's API now allows clients to retrieve tools on-demand and append new tool definitions to the end of the conversation. This approach reduces unnecessary context bloat from irrelevant tools while preserving existing cache prefixes.


Anthropic and OpenAI have previously supported similar mechanisms. Currently, DeepSeek offers this capability only in the Anthropic Messages and OpenAI Responses interfaces of the deepseek-flash model.


In fact, related implementations were already present in the DeepSeek Harness code as early as September this year, and developers had already tested it in October. This update formally documents the feature in the public API, making it easier for third-party developers to integrate.

Disclaimer: This article is copyrighted by the original author and does not represent MyToken’s views and positions. If you have any questions regarding content or copyright, please contact us.(www.mytokencap.com)contact
More exciting content is available on
X(https://x.com/MyTokencap)
or join the community to learn more:MyToken-English Telegram Group
(https://t.me/mytokenGroup)