AssembleBundleAdjudicatorOptions
이 콘텐츠는 아직 번역되지 않았습니다.
assembleBundleAdjudicator 的输入:令牌档 registry、会话主模型、bundle 裁决人档与宿主给的姿态 / 预算 / 通知面
adjudicator
Section titled “adjudicator”adjudicator: AppBundleAdjudicator;bundle 生效裁决人档(parseAppBundle 产物)
optional app?: ClassifierAppContext;应用语境(应用协议 <app> 段;bundle app.name / app.purpose)。缺席
= 两字段皆 null(渲染 “(not declared)”,准则退回保守)。
callBudget?
Section titled “callBudget?”optional callBudget?: number;宿主每会话咨询预算(已校验)。只能收紧:与 bundle callBudget / 金额折算取 min;
缺席且 bundle 无治理位 = kernel 缺省。
mainModel
Section titled “mainModel”mainModel: ResolvedModel;会话主模型(modelHandle 缺席 / 不可解析时的裁决模型)
onWarn
Section titled “onWarn”onWarn: (warning) => void;通知面(预算耗尽 / 熔断跳闸 / 绑定模型不可解析回落 / 治理位覆写与不可执行)
warning
Section titled “warning”void
posture
Section titled “posture”posture: "human-in-loop" | "headless";宿主显式 / 通道推导的姿态。bundle escalation.mode:'reject' 覆写为 headless
(返回值 posture 为生效姿态,调用方据其推导权限模式)。
postureExplicit?
Section titled “postureExplicit?”optional postureExplicit?: boolean;宿主显式给了 posture(被 bundle 覆写时通报 adjudicator_posture_overridden);缺省 false
pricing?
Section titled “pricing?”optional pricing?: readonly PricingUpdate[];bundle 价目(AssembledPlatformModel.pricingUpdates):budgets.maxUsd / maxCny
折算 callBudget 上界的同币单价源;缺席 = 金额径不可折算(在场预算键则通报)。
registry
Section titled “registry”registry: ProviderRegistry;令牌档 registry(bundle 装配产物;stage 模型经其别名/ref 解析)
requestMeasurement?
Section titled “requestMeasurement?”optional requestMeasurement?: RequestMeasurementObserver;请求估算配对观测缝(purpose=‘classifier’;每次裁决咨询的本地估算 × 服务端用量配对);缺省不观测
이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.