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