novel-writer-cn
Version:
AI 驱动的中文小说创作工具 - 基于结构化工作流的智能写作助手
100 lines • 2.25 kB
TypeScript
/**
* AI 接口层
* 为 AI 助手提供简化的功能调用接口
* 支持自然语言参数和引导式交互
*/
/**
* AI 友好的参数接口
*/
interface StoryContext {
genre?: string;
description?: string;
estimatedLength?: string;
targetAudience?: string;
tone?: string;
themes?: string[];
}
/**
* 方法选择结果
*/
interface MethodSelection {
method: string;
reason: string;
template: string;
tips: string[];
}
/**
* AI 接口主类
*/
export declare class AIInterface {
private advisor;
private converter;
private hybridManager;
constructor();
/**
* 智能引导选择写作方法
* AI 通过对话收集信息后调用
*/
guideMethodSelection(context: StoryContext): Promise<MethodSelection>;
/**
* 引导式问答收集信息
* 返回需要询问用户的问题
*/
getGuidingQuestions(): string[];
/**
* 解析上下文为特征参数
*/
private parseContext;
/**
* 解析创作重点
*/
private parseFocus;
/**
* 获取方法对应的模板路径
*/
private getMethodTemplate;
/**
* 获取方法使用提示
*/
private getMethodTips;
/**
* 智能转换建议
* 分析当前项目并建议是否需要转换
*/
suggestConversion(currentMethod: string, storyProgress: any): Promise<any>;
/**
* 分析内容特征
*/
private analyzeContent;
/**
* 评估转换影响
*/
private assessConversionImpact;
/**
* 智能混合方案生成
* 根据故事特点自动设计混合方案
*/
designHybridScheme(context: StoryContext): Promise<any>;
/**
* 获取使用混合方法的理由
*/
private getHybridReason;
/**
* 获取当前项目配置
*/
getCurrentConfig(): Promise<any>;
/**
* 更新项目方法配置
*/
updateProjectMethod(method: string | any): Promise<void>;
/**
* 获取方法的中文名称
*/
getMethodDisplayName(method: string): string;
}
/**
* 导出单例实例供 AI 直接使用
*/
export declare const aiInterface: AIInterface;
export {};
//# sourceMappingURL=ai-interface.d.ts.map