From 06c4627abb2a00b7fe368ba750ec0018e8aef908 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Mon, 11 Nov 2024 13:40:57 +0800 Subject: [PATCH] tool selecting in configure --- .../components/app/configuration/base/feature-panel/index.tsx | 4 ++-- .../app/configuration/config/agent/agent-tools/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/app/components/app/configuration/base/feature-panel/index.tsx b/web/app/components/app/configuration/base/feature-panel/index.tsx index 017e3bf5fd..dc5fe87ca3 100644 --- a/web/app/components/app/configuration/base/feature-panel/index.tsx +++ b/web/app/components/app/configuration/base/feature-panel/index.tsx @@ -3,7 +3,7 @@ import type { FC, ReactNode } from 'react' import React from 'react' import cn from '@/utils/classnames' -export interface IFeaturePanelProps { +export type IFeaturePanelProps = { className?: string headerIcon?: ReactNode title: ReactNode @@ -23,7 +23,7 @@ const FeaturePanel: FC = ({ children, }) => { return ( -
+
{/* Header */}
diff --git a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx index 57d2e5f632..d83fcb3637 100644 --- a/web/app/components/app/configuration/config/agent/agent-tools/index.tsx +++ b/web/app/components/app/configuration/config/agent/agent-tools/index.tsx @@ -92,6 +92,7 @@ const AgentTools: FC = () => { tool_name: tool.tool_name, tool_label: tool.tool_label, tool_parameters: tool.params, + notAuthor: !(tool as ToolDefaultValue & { is_team_authorization: boolean }).is_team_authorization, enabled: true, }) }) @@ -101,7 +102,7 @@ const AgentTools: FC = () => { return ( <>