|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
body |
||
| type |
string |
策略模板类型。 |
K8S |
| enable |
boolean |
是否启用。 |
false |
| semanticRouterConfig |
object |
语义路由配置 |
|
| timeoutMillisecond |
integer |
超时时间(毫秒) |
2000 |
| aiFallbackConfig | AiFallbackConfig |
AI 降级配置 |
|
| aiBasicGuardrailConfig |
AiBasicGuardrailConfig |
仅用于 AiBasicGuardrail 策略的可选配置对象,与策略项 enable 同级。display 是只读展示资格;responseEnabled 控制响应检测,responseMode 仅处理 async。更新省略响应字段或配置对象时保留已保存值;无已保存值时默认检测响应且不声明响应模式。仅启停防护时修改外层 enable 并保留 API 的其他必要参数,无需补传本对象。 |
{"responseEnabled":true} |
| aiSecurityGuardConfig | AiSecurityGuardConfig |
AI 安全防护配置 |
|
| aiTokenRateLimitConfig | AiTokenRateLimitConfig |
AI 令牌速率限制配置 |
|
| policyReference | HttpApiPolicyReference |
只读兼容引用:GetHttpApi 为 ModelAPI AiTokenRateLimit 返回的 policyId/policyAttachmentId;写路径持久化前必须剥离,不作为绑定/解绑指令 |
|
| aiCacheConfig | AiCacheConfig |
AI 缓存配置 |
|
| aiNetworkSearchConfig | AiNetworkSearchConfig |
AI 网络搜索配置 |
|
| aiToolSelectionConfig | AiToolSelectionConfig |
AI 工具选择配置 |
|
| aiStatisticsConfig | AiStatisticsConfig |
AI 统计配置 |
该文章对您有帮助吗?