Class: WikipediaTool
Simple Tool interface. Likely to change.
Implements
BaseTool
<WikipediaParameter
>
Constructors
new WikipediaTool()
new WikipediaTool(
params
?):WikipediaTool
Parameters
• params?: WikipediaToolParams
Returns
Defined in
packages/llamaindex/src/tools/WikipediaTool.ts:38
Properties
metadata
metadata:
ToolMetadata
<JSONSchemaType
<WikipediaParameter
>>
Implementation of
Defined in
packages/llamaindex/src/tools/WikipediaTool.ts:36
Methods
call()
call(
__namedParameters
):Promise
<string
>
This could be undefined if the implementation is not provided, which might be the case when communicating with a llm.
Parameters
• __namedParameters: WikipediaParameter
Returns
Promise
<string
>
The output of the tool.
Implementation of
Defined in
packages/llamaindex/src/tools/WikipediaTool.ts:52
loadData()
loadData(
page
,lang
):Promise
<string
>
Parameters
• page: string
• lang: string
= ...
Returns
Promise
<string
>