Class: WikipediaTool
Simple Tool interface. Likely to change.
Implements
BaseTool
<WikipediaParameter
>
Constructors
new WikipediaTool()
new WikipediaTool(
params
?):WikipediaTool
Parameters
• params?: WikipediaToolParams
Returns
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
Source
packages/core/src/tools/WikipediaTool.ts:36
Methods
call()
call(
__namedParameters
):Promise
<string
>
Parameters
• __namedParameters: WikipediaParameter
Returns
Promise
<string
>
Implementation of
Source
packages/core/src/tools/WikipediaTool.ts:52
loadData()
loadData(
page
,lang
):Promise
<string
>
Parameters
• page: string
• lang: string
= undefined
Returns
Promise
<string
>