ГЛОБАЛЬНЫЙ РЕФАКТОРИНГ АРХИТЕКТУРЫ - Рефакторинг этапов 2.89 - 2.92 и 2.93 - 2.96 - Ужесточение deep-turn финализацию/response контракт debug до строго AssistantDebugPayload / Вынен общий контракт followup-usage и helper / Протянут typed followupUsage по deep-turn цепочке и убрал inline-cast проверки applied

This commit is contained in:
2026-04-11 11:07:56 +03:00
parent 966be04af9
commit 360b59d7c5
17 changed files with 95 additions and 20 deletions
@@ -10,7 +10,7 @@ export interface BuildAssistantDeepTurnSuccessResponseInput {
assistantReply: string;
replyType: AssistantReplyType;
conversationItem: AssistantConversationItem;
debug: AssistantDebugPayload | Record<string, unknown>;
debug: AssistantDebugPayload;
conversation: AssistantConversationItem[];
}
@@ -23,7 +23,7 @@ export function buildAssistantDeepTurnSuccessResponse(
assistant_reply: input.assistantReply,
reply_type: input.replyType,
conversation_item: input.conversationItem,
debug: input.debug as AssistantDebugPayload,
debug: input.debug,
conversation: input.conversation
};
}