아키텍처 구조화 및 일부 구현

This commit is contained in:
jaehwang committed 2026-10-01 10:01:01 +09:00
1 parent 3a257fbe26
commit 20d5409c41
8 files changed
+477 -85

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
"""페르소나 분석의 입출력 모델."""
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