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

ChatDraftPayload

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

SDK source. All SDK types.

TypeScript
/** Workspace draft persisted by the backend for the current authenticated owner. */
export type ChatDraftPayload = {
sessionId: string | null;
prompt: string;
models: string[];
attachments: Array<{
name: string;
type: 'image' | 'text';
content: string;
}>;
settings: {
systemPrompt: string;
maxTokens: number;
temperature: number;
logPayloads: boolean;
};
};