- Allowing additional_positive_answer and additional_positive_answer in KOQuestions asset & selection specialist interaction.

This commit is contained in:
Josako
2025-10-03 11:50:59 +02:00
parent 5f387dcef8
commit aeee22b305
2 changed files with 17 additions and 2 deletions

View File

@@ -7,7 +7,9 @@ class KOQuestion(BaseModel):
title: str = Field(..., description="The title of the knockout criterium.")
question: str = Field(..., description="The corresponding question asked to the candidate.")
answer_positive: Optional[str] = Field(None, description="The answer to the question, resulting in a positive outcome.")
additional_answer_positive: Optional[str] = Field(None, description="2nd answer to the question, resulting in a positive outcome.")
answer_negative: Optional[str] = Field(None, description="The answer to the question, resulting in a negative outcome.")
additional_answer_negative: Optional[str] = Field(None, description="2nd answer to the question, resulting in a negative outcome.")
@classmethod
def from_json(cls, json_str: str) -> 'KOQuestion':