add multiple tool selector

This commit is contained in:
JzoNg
2024-12-27 16:30:19 +08:00
parent 3a5170716b
commit 573c8f909c
8 changed files with 149 additions and 27 deletions

View File

@ -40,13 +40,16 @@ import type {
} from '@floating-ui/react'
import cn from '@/utils/classnames'
export type ToolValue = {
provider_name: string
tool_name: string
parameters?: Record<string, any>
enabled?: boolean
extra?: Record<string, any>
}
type Props = {
value?: {
provider_name: string
tool_name: string
parameters?: Record<string, any>
extra?: Record<string, any>
}
value?: ToolValue
disabled?: boolean
placement?: Placement
offset?: OffsetOptions