import { ApiProperty } from '@nestjs/swagger'; import { ChatElement } from 'chat-element-json-ts'; import { DefaultContentType } from '.'; import { SkillResponseElementName } from './constants'; import { SkillTemplateType } from './SkillTemplate.component'; export class SkillResponseElementPropsType { @ApiProperty() version: string; @ApiProperty() template: SkillTemplateType; } export type SkillResponseType = ChatElement< typeof SkillResponseElementName, SkillResponseElementPropsType >; export function SkillResponse( skillResponseProps: SkillResponseElementPropsType, ): SkillResponseType { return new ChatElement(SkillResponseElementName, skillResponseProps); }