DeepSeek Officially Reveals the Lazy Loading Mechanism of API Tool: Loads on Demand Without Destroying Caches
2026-11-27 18:40:55
According to CoinMeta, DeepSeek has updated the official API documentation today, officially disclosing the mechanism for delayed loading of tools (deferred tool loading). In the past, when agent integrated hundreds of MCP tools, including all the usage instructions for these tools at the beginning would unnecessarily take up a large amount of token. However, if the tools were loaded on demand by the client, it could lead to the invalidation of previous context caches due to changes in the list of tools, increasing the computational cost. Anthropic now allows the client to retrieve tools as needed, and the definitions of new tools are appended at the end of the dialog. This approach not only reduces the impact of irrelevant tools on the context but also does not disrupt existing cache prefixes. OpenAI and DeepSeek have already supported similar mechanisms before. Currently, this capability is only available in the DeepSeek-Flash model's Anthropics messages OpenAI responses interfaces. This update formalizes this capability by incorporating it into the public API documentation, making it easier for third-party developers to integrate it.
Bullish 0
Bearish 0
Source:Internet
This content is for market information only and does not constitute investment advice.