curate-me-a-playlist / src /llm /output_parser.py
berkaygkv54's picture
llm integration
24510fe
raw
history blame contribute delete
401 Bytes
from pydantic import BaseModel, Field
class SongDescriptions(BaseModel):
song_description_1: str = Field(description="description of the first song")
song_description_2: str = Field(description="description of the second song")
song_description_3: str = Field(description="description of the third song")
song_description_4: str = Field(description="description of the fourth song")