• package: @agentic/wikipedia
  • exports: class WikipediaClient, namespace wikipedia
  • env vars: WIKIPEDIA_API_USER_AGENT (optional)
  • source
  • wikipedia api docs

Install

Usage

import { WikipediaClient } from '@agentic/wikipedia'

const wikipedia = new WikipediaClient()
const res0 = await wikipedia.search({ query: 'steve jobs' })
const res1 = await wikipedia.getPageSummary({ title: 'Elon_Musk' })