diff options
| author | bobzel <zzzman@gmail.com> | 2025-02-11 16:03:29 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-02-11 16:03:29 -0500 |
| commit | 3e531aa898492cb05e25081f422bb59adab72e8e (patch) | |
| tree | 29f23fa2619cf4d9aca71f455a0e5724c52bd57a /src/client/views/nodes/chatbot/tools/BaseTool.ts | |
| parent | 1ef0a2d7835c9dfa1ec9fc298562f3a052b3e817 (diff) | |
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.
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/BaseTool.ts')
| -rw-r--r-- | src/client/views/nodes/chatbot/tools/BaseTool.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -47,6 +47,18 @@ export abstract class BaseTool<P extends ReadonlyArray<Parameter>> { abstract execute(args: ParametersType<P>): Promise<Observation[]>; /** + * 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<readonly Parameter[]>) { + 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. * @returns An object containing the tool's name, description, and parameter definitions. |
