Merge branch 'main' into feat/tool-oauth

This commit is contained in:
zxhlyh
2025-07-14 14:45:58 +08:00
62 changed files with 2582 additions and 344 deletions

View File

@ -49,7 +49,7 @@ type Props = {
value?: ToolValue
selectedTools?: ToolValue[]
onSelect: (tool: ToolValue) => void
onSelectMultiple: (tool: ToolValue[]) => void
onSelectMultiple?: (tool: ToolValue[]) => void
isEdit?: boolean
onDelete?: () => void
supportEnableSwitch?: boolean
@ -137,7 +137,7 @@ const ToolSelector: FC<Props> = ({
}
const handleSelectMultipleTool = (tool: ToolDefaultValue[]) => {
const toolValues = tool.map(item => getToolValue(item))
onSelectMultiple(toolValues)
onSelectMultiple?.(toolValues)
}
const handleDescriptionChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {