프롬프트 인젝션 방어 추가

This commit is contained in:
jaehwang committed 2026-11-04 10:04:10 +09:00
1 parent 903c88b8bd
commit 9a5a120892
3 files changed
+30 -4

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ class NextSpeaker(BaseModel):
class AnalysisInput(DiscussionInput):
discussion_id: str # 저장해 둔 맥락·페르소나 정보를 찾는 토론 ID
discussion_id: str = Field(pattern=r"^[A-Za-z0-9_-]+$") # 저장해 둔 맥락·페르소나 정보를 찾는 토론 ID
next_speaker: NextSpeaker