본문으로 건너뛰기

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:38

Properties

DEFAULT_LANG

Private Readonly DEFAULT_LANG: "en"

Defined in

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


metadata

metadata: ToolMetadata<JSONSchemaType<WikipediaParameter>>

Implementation of

BaseTool.metadata

Defined in

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

Methods

call

call(«destructured»): Promise<string>

Parameters

NameType
«destructured»WikipediaParameter

Returns

Promise<string>

Implementation of

BaseTool.call

Defined in

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


loadData

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

Parameters

NameType
pagestring
langstring

Returns

Promise<string>

Defined in

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