DeclarativeCustomTool
声明式场景自定义工具类型。
typescript
interface DeclarativeCustomTool {
name: string
description: string
descriptionZh?: string
parameters: Record<string, DeclarativeToolParam>
executor: 'web_search' | 'sql_query' | 'run_command' | 'api_call'
template?: string
url?: string
method?: string
headers?: Record<string, string>
queryParams?: Record<string, string>
}
interface DeclarativeToolParam {
type: string
description: string
required?: boolean
default?: unknown
enum?: string[]
}详见 自定义工具。

