Skip to content

Commit abed4c7

Browse files
committed
feat(tools-registry): add You.com search and extraction tools
1 parent 72d36c9 commit abed4c7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

content/tools-registry/registry.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,4 +483,41 @@ console.log(text);`,
483483
websiteUrl: 'https://github.com/vercel/bash-tool',
484484
npmUrl: 'https://www.npmjs.com/package/bash-tool',
485485
},
486+
{
487+
slug: 'you-search',
488+
name: 'You.com',
489+
description:
490+
'Real-time web search, AI-generated answers with web context, and webpage content extraction powered by You.com. Search current information with advanced filtering (dates, sites, file types), extract full page content in markdown or HTML, and get AI answers enhanced with live web data. Built on You.com\'s enterprise search API with zero server setup.',
491+
packageName: '@youdotcom-oss/ai-sdk-plugin',
492+
tags: ['search', 'web', 'extraction', 'ai-answers'],
493+
apiKeyEnvName: 'YDC_API_KEY',
494+
installCommand: {
495+
pnpm: 'pnpm add @youdotcom-oss/ai-sdk-plugin',
496+
npm: 'npm install @youdotcom-oss/ai-sdk-plugin',
497+
yarn: 'yarn add @youdotcom-oss/ai-sdk-plugin',
498+
bun: 'bun add @youdotcom-oss/ai-sdk-plugin',
499+
},
500+
codeExample: `import { generateText, type StepResult } from 'ai';
501+
import { anthropic } from '@ai-sdk/anthropic';
502+
import { youSearch, youContents } from '@youdotcom-oss/ai-sdk-plugin';
503+
504+
const stepCountIs = (n: number) => (stepResult: StepResult<any>) =>
505+
stepResult.stepNumber >= n;
506+
507+
const { text } = await generateText({
508+
model: anthropic('claude-sonnet-4-5-20250929'),
509+
prompt: 'Search for the latest developments in quantum computing',
510+
tools: {
511+
search: youSearch(),
512+
extract: youContents(),
513+
},
514+
stopWhen: stepCountIs(5),
515+
});
516+
517+
console.log(text);`,
518+
docsUrl: 'https://github.com/youdotcom-oss/dx-toolkit/tree/main/packages/ai-sdk-plugin#readme',
519+
apiKeyUrl: 'https://you.com/platform/api-keys',
520+
websiteUrl: 'https://you.com',
521+
npmUrl: 'https://www.npmjs.com/package/@youdotcom-oss/ai-sdk-plugin',
522+
},
486523
];

0 commit comments

Comments
 (0)