Class: WikipediaTool
Simple Tool interface. Likely to change.
Implements
Constructors
constructor
• new WikipediaTool(params?
): WikipediaTool
Parameters
Name | Type |
---|---|
params? | WikipediaToolParams |
Returns
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
Defined in
packages/core/src/tools/WikipediaTool.ts:30
Methods
call
▸ call(«destructured»
): Promise
<string
>
Parameters
Name | Type |
---|---|
«destructured» | WikipediaCallParams |
Returns
Promise
<string
>
Implementation of
Defined in
packages/core/src/tools/WikipediaTool.ts:46
loadData
▸ loadData(page
, lang?
): Promise
<string
>
Parameters
Name | Type |
---|---|
page | string |
lang | string |
Returns
Promise
<string
>