From 3e531aa898492cb05e25081f422bb59adab72e8e Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 11 Feb 2025 16:03:29 -0500 Subject: enabled multi-select modification of text documents from topBar buttons. fixed diagram box layout and scrolling. fixed problem with createDoc tool where it would fail when it got an array. fixed formatting of chat box errors. --- src/client/views/nodes/chatbot/tools/BaseTool.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/client/views/nodes/chatbot/tools/BaseTool.ts') diff --git a/src/client/views/nodes/chatbot/tools/BaseTool.ts b/src/client/views/nodes/chatbot/tools/BaseTool.ts index a2cb3927b..8800e2238 100644 --- a/src/client/views/nodes/chatbot/tools/BaseTool.ts +++ b/src/client/views/nodes/chatbot/tools/BaseTool.ts @@ -46,6 +46,18 @@ export abstract class BaseTool

> { */ abstract execute(args: ParametersType

): Promise; + /** + * This is a hacky way for a tool to ignore required parameter errors. + * Used by crateDocTool to allow processing of simple arrays of Documents + * where the array doesn't conform to a normal Doc structure. + * @param inputParam + * @returns + */ + // eslint-disable-next-line @typescript-eslint/no-unused-vars + inputValidator(inputParam: ParametersType) { + return false; + } + /** * Generates an action rule object that describes the tool's usage. * This is useful for dynamically generating documentation or for tools that need to expose their parameters at runtime. -- cgit v1.2.3-70-g09d2