31 lines
598 B
Python
31 lines
598 B
Python
"""페르소나 분석의 입출력 모델."""
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class PersonaInput(BaseModel):
|
|
keywords: list[str]
|
|
gender: str
|
|
age: int | None = None
|
|
|
|
|
|
class PersonaInfo(BaseModel):
|
|
keywords: 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
|