跳转到内容

AppBundleModelRoleSelection

平台为一个角色计算出的有效候选集和主备选择,可用于展示当前配置及不可用原因。 模型值均为同一 AppBundle.models 下发的 handle,不是模型目录 catalogId,也不是供应商模型名。 非空主备必须属于本角色候选集;primary 为 null 表示该角色默认不可用,不能自行回落到其他角色。 main 显式选模仍可使用 AppBundle.models 中的合法模型,不受默认候选池限制。

backup: string | null;

与首选不同的备用 handle;null 表示无备用,不保证失败后一定重试。


candidates: string[];

本角色默认主备的候选 handle;main 显式用模另由 AppBundle.models 授权。


diagnostics: string[];

平台提供的配置诊断代码,用于说明候选、主备或治理绑定不可用的原因。


primary: string | null;

实际生效的首选 handle;null 表示该角色无可用首选。


source: "platform" | "user" | "org" | "governance";

生效选择来自用户、组织、平台默认或治理绑定;治理绑定不允许备用替代。