some partial code is class MOVIE(BaseModel): name:str=Field(...,description="name of the movie") year:int=Field(...,description="year of movie release")
json_prompt_str = """\ suggest a movie for the genre {genre}.Here is the JSOn schema to follow. """ json_prompt_str = output_parser.format(json_prompt_str) json_prompt_template=PromptTemplate(json_prompt_str)