Quick Start
Config
boolean
default:"true"
Enable the
hackernews_top_stories tool.boolean
default:"true"
Enable the
hackernews_user tool.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.
Fetch top stories and user details from Hacker News — no API key required.
import { Agent, openai } from "@agentium/core";
import { HackerNewsToolkit } from "@agentium/core/toolkits";
const hn = new HackerNewsToolkit();
const agent = new Agent({
name: "hn-reader",
model: openai(process.env.OPENAI_MODEL ?? "gpt-6.1-sol"),
instructions: "Use Hacker News tools to find top stories and user info.",
tools: [...hn.getTools()],
});
const result = await agent.run(
"Summarize the top 3 stories on Hacker News with user details."
);
hackernews_top_stories tool.hackernews_user tool.| Tool | Description |
|---|---|
hackernews_top_stories | Fetch top stories from HN. Returns title, URL, score, author, and comment count. Accepts numStories (default 10, max 30). |
hackernews_user | Look up a HN user by username. Returns karma, creation date, about, and submission count. |