diff options
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/BaseTool.ts')
-rw-r--r-- | src/client/views/nodes/chatbot/tools/BaseTool.ts | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/client/views/nodes/chatbot/tools/BaseTool.ts b/src/client/views/nodes/chatbot/tools/BaseTool.ts index 8efba2d28..a2cb3927b 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, ParametersType } from '../types/tool_types'; +import { Parameter, ParametersType, ToolInfo } from '../types/tool_types'; /** * @file BaseTool.ts @@ -23,8 +23,6 @@ export abstract class BaseTool<P extends ReadonlyArray<Parameter>> { parameterRules: P; // Guidelines for how to handle citations when using the tool citationRules: string; - // A brief summary of the tool's purpose - briefSummary: string; /** * Constructs a new `BaseTool` instance. @@ -32,14 +30,12 @@ export abstract class BaseTool<P extends ReadonlyArray<Parameter>> { * @param description - A detailed description of what the tool does. * @param parameterRules - A readonly array of parameter definitions (`ReadonlyArray<Parameter>`). * @param citationRules - Rules or guidelines for citations. - * @param briefSummary - A short summary of the tool. */ - constructor(name: string, description: string, parameterRules: P, citationRules: string, briefSummary: string) { - this.name = name; - this.description = description; - this.parameterRules = parameterRules; - this.citationRules = citationRules; - this.briefSummary = briefSummary; + constructor(toolInfo: ToolInfo<P>) { + this.name = toolInfo.name; + this.description = toolInfo.description; + this.parameterRules = toolInfo.parameterRules; + this.citationRules = toolInfo.citationRules; } /** |