33 lines
698 B
Python
33 lines
698 B
Python
"""페르소나 분석의 입출력 모델."""
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class PersonaInput(BaseModel):
|
|
keywords: list[str]
|
|
expertise: list[str] = [] # 직업, 전공 등 전문성 태그
|
|
gender: str
|
|
age: int | None = None
|
|
|
|
|
|
class PersonaInfo(BaseModel):
|
|
keywords: list[str]
|
|
expertise: list[str] = []
|
|
summary: str
|
|
current_strategy: str
|
|
topic_view_point: str
|
|
|
|
|
|
# 페르소나 분석 단계별 LLM 출력. structured output 스키마로 쓰이므로 기본값을 두지 않는다.
|
|
|
|
class PersonaSummary(BaseModel):
|
|
summary: str
|
|
|
|
|
|
class TopicViewPoint(BaseModel):
|
|
topic_view_point: str
|
|
|
|
|
|
class SpeechStrategy(BaseModel):
|
|
current_strategy: str
|