Passa al contenuto principale

Class: WikipediaTool

Simple Tool interface. Likely to change.

Implements

Constructors

new WikipediaTool()

new WikipediaTool(params?): WikipediaTool

Parameters

params?: WikipediaToolParams

Returns

WikipediaTool

Source

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

Properties

DEFAULT_LANG

private readonly DEFAULT_LANG: "en" = "en"

Source

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


metadata

metadata: ToolMetadata<JSONSchemaType<WikipediaParameter>>

Implementation of

BaseTool . metadata

Source

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

Methods

call()

call(__namedParameters): Promise<string>

Parameters

__namedParameters: WikipediaParameter

Returns

Promise<string>

Implementation of

BaseTool . call

Source

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


loadData()

loadData(page, lang): Promise<string>

Parameters

page: string

lang: string= undefined

Returns

Promise<string>

Source

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