MediaTek Assistant Plugin 介紹
MediaTek Assistant Plugin 為 JSON 格式,其內容如下:
{
"id": "plugin_guide",
"schema_version": "v1.0",
"name_for_human": "plugin_guide",
"name_for_model": "plugin_guide",
"description_for_human": "plugin_guide",
"description_for_model": "You need to choose this tool anytime, to search for any information with user language that helps replying to users.",
"auth": {
"type": "none"
},
"api": {
"type": "python",
"python": {
"source": ""
}
}
}這是一個標準的 Plugin json 內容,相關參數說明如下
id為 Plugin id 資訊,用來識別 plugin 的唯一值name_for_human為 plugin name 資訊,是給使用者參考的 plugin 名稱name_for_model為 plugin_name 資訊,是告訴 MediaTek Assistant 該 plugin 的名稱description_for_human是給使用者參考的 plugin 說明description_for_model是告訴 MediaTek Assistant 該如何使用這個 plugin。authtype保留欄位,後續會應用在判斷使用權限
apitype具有兩種格式,openapi 或 pythonpython若為 python 格式,則使用source欄位放入要執行的 python codeurl若為 openapi 格式,則直接填入 yaml 檔的 URL
Plugin 教學參考:
關於 Plugin 開發您可以參考這些資訊