Quick Start
Config
boolean
default:"true"
Enable the
duckduckgo_search tool.boolean
default:"true"
Enable the
duckduckgo_news tool.number
default:"5"
Default maximum results per search query.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Agentium 4.0.0 · Upgrade from 3.x.
Search the web and get news using DuckDuckGo — no API key required.
import { Agent, openai } from "@agentium/core";
import { DuckDuckGoToolkit } from "@agentium/core/toolkits";
const ddg = new DuckDuckGoToolkit();
const agent = new Agent({
name: "researcher",
model: openai(process.env.OPENAI_MODEL ?? "gpt-6.1-sol"),
instructions: "Search the web to answer questions with sources.",
tools: [...ddg.getTools()],
});
const result = await agent.run("What's happening in France?");
duckduckgo_search tool.duckduckgo_news tool.| Tool | Description |
|---|---|
duckduckgo_search | Search the web. Returns titles, URLs, and snippets. |
duckduckgo_news | Search for latest news. Returns headlines, sources, and URLs. |
const ddg = new DuckDuckGoToolkit({ enableSearch: false, enableNews: true });
const agent = new Agent({
name: "news-agent",
model: openai(process.env.OPENAI_MODEL ?? "gpt-6.1-sol"),
instructions: "Get the latest news and summarize it.",
tools: [...ddg.getTools()],
});
const result = await agent.run("Latest AI news");