Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

chatBranchMessages

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
/** Reconstruct completed text exchanges for one comparison branch. */
export declare function chatBranchMessages(turns: readonly ChatTurn[], model: string): Array<{
role: 'user' | 'assistant';
content: string;
}>;