From 1429b30e842ef314042cec09d13387221f1959c1 Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Thu, 26 Dec 2024 15:27:15 +0800 Subject: [PATCH] chore: upd --- .../workflow/nodes/_base/components/agent-strategy.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx index ab1500cbfa..9523ee32b5 100644 --- a/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx +++ b/web/app/components/workflow/nodes/_base/components/agent-strategy.tsx @@ -29,7 +29,7 @@ export type AgentStrategyProps = { type CustomSchema = Omit & { type: Type } & Field type MaxIterFormSchema = CustomSchema<'max-iter'> -type ToolSelectorSchema = CustomSchema<'tool-selector'> +type ToolSelectorSchema = CustomSchema<'array[tools]'> type CustomField = MaxIterFormSchema | ToolSelectorSchema @@ -61,6 +61,11 @@ export const AgentStrategy = (props: AgentStrategyProps) => { } + case 'array[tools]': { + return + tool selector + + } } } console.log(formSchema)