ApplicationPromptTurnOptions
이 콘텐츠는 아직 번역되지 않았습니다.
prepareApplicationPromptTurn 的输入:先异步预检(prepare,如刷新应用提示词)、成功后再以选定的
system 段起真正的一轮(start);预检失败按 errorMessage 出 turn.error 并保留既有历史。
errorMessage
Section titled “errorMessage”errorMessage: (error) => string;unknown
string
errorScope?
Section titled “errorScope?”optional errorScope?: string;history
Section titled “history”history: readonly IRMessage[];预检失败时原样保留的既有历史;本轮尚未送往模型的输入不记入。
prepare
Section titled “prepare”prepare: (signal) => Promise<IRSystemSegment[]>;signal
Section titled “signal”AbortSignal
Promise<IRSystemSegment[]>
prepareTimeoutMs?
Section titled “prepareTimeoutMs?”optional prepareTimeoutMs?: number;预检绝对上限,缺省30秒;即使自定义fetch忽略取消,也能收束本轮。
sessionId
Section titled “sessionId”sessionId: string;start: (system) => QueryHandle;每轮最多调用一次;此后工具循环始终消费该轮选定的 system。
system
Section titled “system”이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.