Parcourir la source

feat: plugin tool selector add tool default description (#18018)

tags/1.3.0
Junjie.M il y a 6 mois
Parent
révision
9f8947f1dd
Aucun compte lié à l'adresse e-mail de l'auteur

+ 2
- 1
web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx Voir le fichier

@@ -125,11 +125,12 @@ const ToolSelector: FC<Props> = ({
type: tool.provider_type,
tool_name: tool.tool_name,
tool_label: tool.tool_label,
tool_description: tool.tool_description,
settings: settingValues,
parameters: paramValues,
enabled: tool.is_team_authorization,
extra: {
description: '',
description: tool.tool_description,
},
schemas: tool.paramSchemas,
}

+ 1
- 0
web/app/components/workflow/block-selector/tool/action-item.tsx Voir le fichier

@@ -65,6 +65,7 @@ const ToolItem: FC<Props> = ({
provider_name: provider.name,
tool_name: payload.name,
tool_label: payload.label[language],
tool_description: payload.description[language],
title: payload.label[language],
is_team_authorization: provider.is_team_authorization,
output_schema: payload.output_schema,

+ 2
- 0
web/app/components/workflow/block-selector/types.ts Voir le fichier

@@ -24,6 +24,7 @@ export type ToolDefaultValue = {
provider_name: string
tool_name: string
tool_label: string
tool_description: string
title: string
is_team_authorization: boolean
params: Record<string, any>
@@ -35,6 +36,7 @@ export type ToolValue = {
provider_name: string
tool_name: string
tool_label: string
tool_description: string
settings?: Record<string, any>
parameters?: Record<string, any>
enabled?: boolean

Chargement…
Annuler
Enregistrer