thread-relation.ts 425 B

123456789101112131415161718
  1. import type { IUser, Ref, HasObjectId } from '@growi/core';
  2. import type { IVectorStore } from './vector-store';
  3. export interface IThreadRelation {
  4. userId: Ref<IUser>
  5. vectorStore: Ref<IVectorStore>
  6. threadId: string;
  7. title?: string;
  8. expiredAt: Date;
  9. }
  10. export type IThreadRelationHasId = IThreadRelation & HasObjectId;
  11. export type IApiv3DeleteThreadParams = {
  12. aiAssistantId: string
  13. threadRelationId: string;
  14. }