Quickstart
Prerequisites
- Node.js >= 18
Installation
Web search
Search the web with DuckDuckGo — no API key required:
import { WebSearchTool, WebSearchConfiguration } from '@johannes.latzel/llm-chat-web';
const tool = new WebSearchTool(new WebSearchConfiguration());
const result = await tool.execute({ queries: ['@johannes.latzel/llm-chat-web latest version'] });
console.log(result.result);
URL fetching
Fetch a URL and get its clean text content:
import { WebFetchTool, WebFetchConfiguration } from '@johannes.latzel/llm-chat-web';
const tool = new WebFetchTool(new WebFetchConfiguration());
const result = await tool.execute({ urls: ['https://johanneslatzel.github.io/llm-chat-web/'] });
console.log(result.result);
Next steps
- Browse usage for tool parameters, return types, and examples
- See architecture for design details