Pular para o conteúdo principal

Class: WikipediaTool

Simple Tool interface. Likely to change.

Implements

Constructors

new WikipediaTool()

new WikipediaTool(params?): WikipediaTool

Parameters

params?: WikipediaToolParams

Returns

WikipediaTool

Source

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

Properties

DEFAULT_LANG

private readonly DEFAULT_LANG: "en" = "en"

Source

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


metadata

metadata: ToolMetadata<JSONSchemaType<WikipediaParameter>>

Implementation of

BaseTool . metadata

Source

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

Methods

call()

call(__namedParameters): Promise<string>

Parameters

__namedParameters: WikipediaParameter

Returns

Promise<string>

Implementation of

BaseTool . call

Source

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


loadData()

loadData(page, lang): Promise<string>

Parameters

page: string

lang: string= undefined

Returns

Promise<string>

Source

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