aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/BaseTool.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-11-19 10:36:59 -0500
committerbobzel <zzzman@gmail.com>2024-11-19 10:36:59 -0500
commit7b38bbc4d845fa524e8310a0ec05b0e776b47c82 (patch)
tree958609fc079523803345a74e33b16c164c226fd8 /src/client/views/nodes/chatbot/tools/BaseTool.ts
parent196b92cb84095780d2b36244831cac03e9b66d8e (diff)
parent9e447814b551c352709296ae562f1f50480320f5 (diff)
Merge remote-tracking branch 'origin/ajs-finalagent'
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/BaseTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/BaseTool.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/tools/BaseTool.ts b/src/client/views/nodes/chatbot/tools/BaseTool.ts
index 58cd514d9..8efba2d28 100644
--- a/src/client/views/nodes/chatbot/tools/BaseTool.ts
+++ b/src/client/views/nodes/chatbot/tools/BaseTool.ts
@@ -1,5 +1,5 @@
import { Observation } from '../types/types';
-import { Parameter, Tool, ParametersType } from './ToolTypes';
+import { Parameter, ParametersType } from '../types/tool_types';
/**
* @file BaseTool.ts
@@ -14,7 +14,7 @@ import { Parameter, Tool, ParametersType } from './ToolTypes';
* It is generic over a type parameter `P`, which extends `ReadonlyArray<Parameter>`.
* This means `P` is a readonly array of `Parameter` objects that cannot be modified (immutable).
*/
-export abstract class BaseTool<P extends ReadonlyArray<Parameter>> implements Tool<P> {
+export abstract class BaseTool<P extends ReadonlyArray<Parameter>> {
// The name of the tool (e.g., "calculate", "searchTool")
name: string;
// A description of the tool's functionality
@@ -59,6 +59,7 @@ export abstract class BaseTool<P extends ReadonlyArray<Parameter>> implements To
return {
tool: this.name,
description: this.description,
+ citationRules: this.citationRules,
parameters: this.parameterRules.reduce(
(acc, param) => {
// Build an object for each parameter without the 'name' property, since it's used as the key