Five Checks to Verify Web-Grounded Answers from HostedWebSearchTool in .NET
A developer argues that adding HostedWebSearchTool to an agent does not make it retrieval-grounded, since the tool only marks a capable backend that may browse and does not search locally. The article proposes five checks to run on the response after the marker returns, starting with confirming that search calls, result URIs, or citation annotations actually appear in the output. It recommends using the Responses API path because Chat Completions can return HTTP 400 errors with certain tool_choice settings. The author also advises enforcing domain allow and deny lists in the application process rather than relying on provider settings, failing closed when configuration is missing. Denied sources should be omitted from clickable citations, and citation records should be merged so richer annotations with dates and titles are preserved.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in