@kangthink/q-engine
Version:
A question-answer generation engine that stimulates thinking
16 lines • 688 B
TypeScript
import { Node, NodeType, QuestionNode, AnswerNode } from '../types';
export declare class NodeBuilder implements Node {
id: string;
type: NodeType;
content: string;
metadata?: Record<string, any>;
createdAt: Date;
updatedAt: Date;
constructor(type: NodeType, content: string, metadata?: Record<string, any>);
static createQuestion(content: string, metadata?: Record<string, any>): QuestionNode;
static createAnswer(content: string, metadata?: Record<string, any>): AnswerNode;
update(content: string, metadata?: Record<string, any>): void;
toJSON(): Node;
}
export declare const NodeModel: typeof NodeBuilder;
//# sourceMappingURL=Node.d.ts.map