Valyu Plugin
The Valyu plugin provides AI-native search and content extraction across web and proprietary data sources using the Valyu API. It is a dual-capability plugin that serves as both a search provider and a content extractor through a single API key.
Source: packages/plugins/valyu/src/valyu.plugin.ts
Overview
| Property | Value |
|---|---|
| Plugin ID | valyu |
| Category | search |
| Capabilities | search, content-extractor |
| Version | 1.0.0 |
| Configuration Mode | hybrid |
| Auto-enable | No |
| Built-in | Yes |
| System Plugin | No |
| Dependencies | valyu-js |
The plugin implements IPlugin, ISearchPlugin, and IContentExtractorPlugin. This dual-capability design means a single Valyu API key provides both search and content extraction, reducing the number of services you need to configure.
Architecture
Dual-Capability Design
Unlike most plugins that serve a single role, the Valyu plugin registers for two capabilities:
- Search -- discovers relevant URLs and content for work items
- Content extraction -- pulls full text and markdown from web pages
Both capabilities share the same API client and credentials.
Configuration
Settings Schema
| Setting | Type | Required | Default | Scope | Description |
|---|---|---|---|---|---|
apiKey | string | Yes | -- | user | Valyu API key (secret) |
responseLength | string | No | "medium" | -- | Content volume per result |
Response Length Options
| Value | Approximate Characters |
|---|---|
short | ~25,000 |
medium | ~50,000 |
large | ~100,000 |
max | Unlimited |
Environment Variables
| Variable | Description |
|---|---|
PLUGIN_VALYU_API_KEY | API key fallback |