mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 12:26:08 +00:00
b73847f1a6
* feat: add emoji support to knowledge bases and pipelines * feat: add optional emoji property to ExternalKBCardVO for enhanced knowledge base representation
30 lines
708 B
TypeScript
30 lines
708 B
TypeScript
export interface IKnowledgeBaseVO {
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
embeddingModelUUID: string;
|
|
top_k: number;
|
|
lastUpdatedTimeAgo: string;
|
|
emoji?: string;
|
|
}
|
|
|
|
export class KnowledgeBaseVO implements IKnowledgeBaseVO {
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
embeddingModelUUID: string;
|
|
top_k: number;
|
|
lastUpdatedTimeAgo: string;
|
|
emoji?: string;
|
|
|
|
constructor(props: IKnowledgeBaseVO) {
|
|
this.id = props.id;
|
|
this.name = props.name;
|
|
this.description = props.description;
|
|
this.embeddingModelUUID = props.embeddingModelUUID;
|
|
this.top_k = props.top_k;
|
|
this.lastUpdatedTimeAgo = props.lastUpdatedTimeAgo;
|
|
this.emoji = props.emoji;
|
|
}
|
|
}
|