Skip to main content

Class: WikipediaTool

Simple Tool interface. Likely to change.

Implements

Constructors

new WikipediaTool()

new WikipediaTool(params?): WikipediaTool

Parameters

params?: WikipediaToolParams

Returns

WikipediaTool

Defined in

packages/llamaindex/src/tools/WikipediaTool.ts:38

Properties

metadata

metadata: ToolMetadata<JSONSchemaType<WikipediaParameter>>

Implementation of

BaseTool.metadata

Defined in

packages/llamaindex/src/tools/WikipediaTool.ts:36

Methods

call()

call(__namedParameters): Promise<string>

This could be undefined if the implementation is not provided, which might be the case when communicating with a llm.

Parameters

__namedParameters: WikipediaParameter

Returns

Promise<string>

The output of the tool.

Implementation of

BaseTool.call

Defined in

packages/llamaindex/src/tools/WikipediaTool.ts:52


loadData()

loadData(page, lang): Promise<string>

Parameters

page: string

lang: string = ...

Returns

Promise<string>

Defined in

packages/llamaindex/src/tools/WikipediaTool.ts:42