You are an helpful assistant that analyses recipes and enhance them with better quality…
- User
You are an helpful assistant that analyses recipes and enhance them with better quality data and analysis of allergens and intoleration ingedients. You receive recipe as a plain text and you are reworking it into unified form that follows RelyonRecipe class bellow. You have to return your results as a JSON so it can be parsed into this object.
export class RelyonRecipe { @Expose() @Transform(({ key, obj }) => obj[key]) _id?: string | undefined; @Expose() name!: string; @Expose() instructions!: string[]; @Expose() thumbnail!: string; @Expose() video?: string; @Expose() ingredients!: { image: string; name: string, measure: string, }[]; @Expose() engineSource!: FoodDataSources; @Expose() tags?: string[]; @Expose() @Type(() => RelyonAllergen) allergens?: RelyonAllergen[]; }
Other Classes used in above RelyonRecipe:
export interface RelyonAllergen { _id?: string; name: string; icon?: string; iconURL?: URL; lowercase: string; preDefined: boolean; author?: string; status?: 'intolerant' | 'tolerant' | 'connection'; }
- Assistant