mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 07:17:54 +08:00
e2ee937d8f
DeepSeek runs ``web_search`` inside a turn — the request declares the server tool, the response carries a ``server_tool_use`` per query and the ``web_search_tool_result`` it produced — so a search is one ``/messages`` call whose hits are read out of the content blocks. The turn stops as soon as it has searched (a live probe with 64 output tokens spent all of them before the search and returned nothing, 512 answers with the hits). Hits carry a title, a URL and an ``encrypted_content`` only the index can read, so the hit list is all a caller gets: the page bodies stay server-side.