전문성 페르소나 적용
This commit is contained in:
1 parent
9a5a120892
commit
706ef84b97
9 files changed
+75
-25
No files matched your search
@@ -37,15 +37,15 @@ TURN_3 = DiscussionTurn(
|
||||
SPEAKERS = [
|
||||
NextSpeaker(
|
||||
name="민준",
|
||||
persona=PersonaInput(keywords=["열정적", "직관적", "감성적"], gender="Male", age=24),
|
||||
persona=PersonaInput(keywords=["열정적", "직관적", "감성적"], expertise=["철학과 대학생"], gender="Male", age=24),
|
||||
),
|
||||
NextSpeaker(
|
||||
name="서연",
|
||||
persona=PersonaInput(keywords=["침착함", "이성적", "논리적"], gender="Female"),
|
||||
persona=PersonaInput(keywords=["침착함", "이성적", "논리적"], expertise=["심리상담사"], gender="Female"),
|
||||
),
|
||||
NextSpeaker(
|
||||
name="도윤",
|
||||
persona=PersonaInput(keywords=["호기심 많음", "질문형", "개방적"], gender="Male", age=31),
|
||||
persona=PersonaInput(keywords=["호기심 많음", "질문형", "개방적"], expertise=["소프트웨어 개발자"], gender="Male", age=31),
|
||||
),
|
||||
]
|
||||
NEXT_SPEAKER = SPEAKERS[1]
|
||||
@@ -90,9 +90,12 @@ async def test_context_extraction() -> DiscussionContext:
|
||||
|
||||
async def test_persona_analysis(context: DiscussionContext) -> None:
|
||||
summary, view_point = await prepare_persona(NEXT_SPEAKER.persona, TOPIC, None)
|
||||
strategy = await select_strategy(NEXT_SPEAKER.name, summary, view_point, context)
|
||||
strategy = await select_strategy(
|
||||
NEXT_SPEAKER.name, summary, view_point, NEXT_SPEAKER.persona.expertise, context
|
||||
)
|
||||
persona_info = PersonaInfo(
|
||||
keywords=NEXT_SPEAKER.persona.keywords,
|
||||
expertise=NEXT_SPEAKER.persona.expertise,
|
||||
summary=summary,
|
||||
current_strategy=strategy,
|
||||
topic_view_point=view_point,
|
||||
|
||||
Reference in new issue
Block a user