Agent Web Search

An AI-powered web search component that displays search results with intelligent summaries, credibility scoring, and advanced filtering capabilities.

Features

  • AI-Enhanced Results: Each search result includes an AI-generated summary for quick understanding
  • Credibility Scoring: Visual indicators showing source reliability and content relevance
  • Smart Filtering: Filter by domain, date range, and relevance score
  • Interactive Actions: Copy links, open in new tabs, and interact with results
  • Related Searches: Suggested queries based on the current search context
  • Real-time Updates: Loading states and smooth transitions during search operations

Examples

Basic Usage

No search results

Run a search to view sources.

0 results | Updated 2:34 PM

Interactive Demo

No search results

Run a search to view sources.

0 results | Updated 2:34 PM

Chat Integration

U
Can you search for the latest resources on building AI agent interfaces?
SA
I'll search for the latest resources on building AI agent interfaces for you.
1
2
3

Installation

npx shadcn@latest add https://agents-ui.github.io/agents-kit/c/agent-web-search.json

API Reference

AgentWebSearch

PropTypeDefaultDescription
querystring-The search query to display
resultsSearchResult[][]Array of search results to display
isSearchingbooleanfalseWhether a search is currently in progress
selectedDomainsstring[][]Array of domain filters currently applied
dateFilter"all" | "day" | "week" | "month" | "year""all"Date range filter for results
onSearch(query: string) => void-Callback when a new search is initiated
onResultClick(result: SearchResult) => void-Callback when a search result is clicked
onCopyLink(url: string) => void-Callback when a result link is copied
onDomainFilter(domains: string[]) => void-Callback when domain filters are updated
onDateFilter(filter: DateFilter) => void-Callback when date filter is changed
onRefresh() => void-Callback to refresh search results
classNamestring-Additional CSS classes to apply
timestampstring"2:34 PM"Timestamp to display for the search

SearchResult

PropertyTypeRequiredDescription
idstringYesUnique identifier for the result
titlestringYesTitle of the search result
urlstringYesURL of the search result
domainstringYesDomain name of the result source
snippetstringYesBrief excerpt from the content
aiSummarystringNoAI-generated summary of the content
publishedDatestringNoPublication date in ISO format
credibilityScorenumberNoScore from 0-1 indicating source credibility
relevanceScorenumberNoScore from 0-1 indicating result relevance
imageUrlstringNoOptional thumbnail image URL