본문으로 건너뛰기

Class: WikipediaTool

Simple Tool interface. Likely to change.

Implements

Constructors

constructor

new WikipediaTool(params?): WikipediaTool

Parameters

NameType
params?WikipediaToolParams

Returns

WikipediaTool

Defined in

packages/core/src/tools/WikipediaTool.ts:32

Properties

DEFAULT_LANG

Private Readonly DEFAULT_LANG: "en"

Defined in

packages/core/src/tools/WikipediaTool.ts:29


metadata

metadata: ToolMetadata

Implementation of

BaseTool.metadata

Defined in

packages/core/src/tools/WikipediaTool.ts:30

Methods

call

call(«destructured»): Promise<string>

Parameters

NameType
«destructured»WikipediaCallParams

Returns

Promise<string>

Implementation of

BaseTool.call

Defined in

packages/core/src/tools/WikipediaTool.ts:46


loadData

loadData(page, lang?): Promise<string>

Parameters

NameType
pagestring
langstring

Returns

Promise<string>

Defined in

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