An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
feat: Add ToolArgsSection to SearchArtifactContent for enhanced query display
Yoshiki Miura7199f6b50188
diff --git a/components/artifact/search-artifact-content.tsx b/components/artifact/search-artifact-content.tsxindex ad26434f..39429096 100644--- a/components/artifact/search-artifact-content.tsx+++ b/components/artifact/search-artifact-content.tsx@@ -2,7 +2,7 @@import { SearchResults } from '@/components/search-results'import { SearchResultsImageSection } from '@/components/search-results-image'-import { Section } from '@/components/section'+import { Section, ToolArgsSection } from '@/components/section'import type { SearchResults as TypeSearchResults } from '@/lib/types'import type { ToolInvocation } from 'ai'@@ -17,6 +17,7 @@ export function SearchArtifactContent({ tool }: { tool: ToolInvocation }) {return (<div className="space-y-2">+ <ToolArgsSection tool="search">{`${query}`}</ToolArgsSection>{searchResults.images && searchResults.images.length > 0 && (<SearchResultsImageSectionimages={searchResults.images}