chatgpt-plugin/utils/tools/AbstractTool.js
2023-06-23 01:09:12 +08:00

20 lines
323 B
JavaScript

export class AbstractTool {
name = ''
parameters = {}
description = ''
func = async function () {}
function () {
if (!this.parameters.type) {
this.parameters.type = 'object'
}
return {
name: this.name,
description: this.description,
parameters: this.parameters
}
}
}