ac
ac.developer.createBuildRequest
Create an AI MiniApp build request owned by the current developer.
权限:developer
宿主 API
功能描述
Create an AI MiniApp build request owned by the current developer.
调用方式
const result = await ac.developer.createBuildRequest({
"prompt": "string"
});
参数说明
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
prompt | string | 是 | - |
sourceInstallationId | string | 否 | - |
source_installation_id | string | 否 | - |
template | string | 否 | - |
permissions | array | 否 | - |
targetAudience | string | 否 | - |
target_audience | string | 否 | - |
scenario | string | 否 | - |
manifestDraft | object | 否 | - |
manifest_draft | object | 否 | - |
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string"
},
"sourceInstallationId": {
"type": "string"
},
"source_installation_id": {
"type": "string"
},
"template": {
"type": "string"
},
"permissions": {
"type": "array"
},
"targetAudience": {
"type": "string"
},
"target_audience": {
"type": "string"
},
"scenario": {
"type": "string"
},
"manifestDraft": {
"type": "object"
},
"manifest_draft": {
"type": "object"
}
}
}
返回值
{
"type": "object"
}
错误码
该 API 当前没有声明专属错误码。
Manifest 声明
Agent 生成小程序时,如果页面会调用该 API,应在 manifest.apisUsed 中声明完整 API 名称。
{
"permissions": [
"developer"
],
"apisUsed": [
"ac.developer.createBuildRequest"
]
}
平台支持
| 平台 | 支持情况 |
|---|---|
| Web | 支持 |
| Android SDK | 支持 |
| iOS SDK | 支持 |
| Flutter SDK | 支持 |