Skip to content

The open alternative to Salesforce, designed for AI.

488 B
Raw Blame
import { Field, Int, ObjectType } from '@nestjs/graphql';

@ObjectType('AiSystemPromptSection')
export class AiSystemPromptSectionDTO {
  @Field(() => String)
  title: string;

  @Field(() => String)
  content: string;

  @Field(() => Int)
  estimatedTokenCount: number;
}

@ObjectType('AiSystemPromptPreview')
export class AiSystemPromptPreviewDTO {
  @Field(() => [AiSystemPromptSectionDTO])
  sections: AiSystemPromptSectionDTO[];

  @Field(() => Int)
  estimatedTokenCount: number;
}