aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/WikipediaTool.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/WikipediaTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/WikipediaTool.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/chatbot/tools/WikipediaTool.ts b/src/client/views/nodes/chatbot/tools/WikipediaTool.ts
index 692dff749..ee5661905 100644
--- a/src/client/views/nodes/chatbot/tools/WikipediaTool.ts
+++ b/src/client/views/nodes/chatbot/tools/WikipediaTool.ts
@@ -1,6 +1,7 @@
import { v4 as uuidv4 } from 'uuid';
import { Networking } from '../../../../Network';
import { BaseTool } from './BaseTool';
+import { Observation } from '../types/types';
export class WikipediaTool extends BaseTool<{ title: string }> {
private _addLinkedUrlDoc: (url: string, id: string) => void;
@@ -21,7 +22,7 @@ export class WikipediaTool extends BaseTool<{ title: string }> {
this._addLinkedUrlDoc = addLinkedUrlDoc;
}
- async execute(args: { title: string }): Promise<unknown> {
+ async execute(args: { title: string }): Promise<Observation[]> {
try {
const { text } = await Networking.PostToServer('/getWikipediaSummary', { title: args.title });
const id = uuidv4();