Skip to main content
web.search performs a governed web search via HASP’s retrieval layer. The model receives up to 10 ranked results with title, URL, snippet, domain, and published date. HASP controls which provider executes, applies vertical-aware result ranking, and injects results into context before the model continues.

PHI enforcement

Two PHI scans run before any provider call:
  1. On receipt — when the tool call is intercepted at the gateway, the query is scanned.
  2. Pre-dispatch — immediately before the outbound provider call, the planned query is scanned again.
The retrieval-specific behavior is controlled by your org’s phi_retrieval_behavior setting (configured under Settings → Retrieval): redact (default) strips PHI from queries before they leave HASP; block rejects the tool call entirely if PHI is detected. Web search providers (Tavily by default) never receive PHI under any circumstance — this is a hard architectural invariant enforced at the platform level.

Billing

  • 5 AI Credits flat surcharge per call, debited on provider success.
  • Normal input-token cost applies to the injected result content.
The surcharge is only charged when the provider returns a successful response. No charge is applied for failed provider calls or PHI-blocked calls.

Input parameters

Output fields

Each result injected into context contains:

Vertical-aware ranking

For orgs with a healthcare vertical configured, HASP applies boosted ranking for authoritative clinical and regulatory sources including NIH, CDC, FDA, CMS, and PubMed. Results from these domains are ranked higher than general-web equivalents when present in the provider response.

Citations

Results injected into the model’s context are persisted as citations linked to the conversation message. Citations survive page refresh and are available in the Audit endpoint. Each citation records the source URL, snippet, rank, and retrievedTimestamp.

Example

Tool call emitted by the model:
Result injected into context:

Error codes

See Errors for the full error envelope shape.