Merge branch 'release/v3.1.12-beta'
This commit is contained in:
@@ -5,6 +5,13 @@ All notable changes to EveAI will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## 3.1.12-beta
|
||||
|
||||
Release date: 2025-10-03
|
||||
|
||||
### Added
|
||||
- TRA-90: Additional positive & negative KO Criteria Questions added to TRAICIE_KO_QUESTIONS asset and interaction and evaluation in TRAICIE_SELECTION_SPECIALIST
|
||||
|
||||
## 3.1.11-beta
|
||||
|
||||
Release date: 2025-10-03
|
||||
|
||||
@@ -16,7 +16,7 @@ RUN mkdir -p /etc/nginx/static /etc/nginx/public
|
||||
COPY ../../nginx/static /etc/nginx/static
|
||||
|
||||
# Copy public files
|
||||
COPY ../../nginx/public /etc/nginx/public
|
||||
# COPY ../../nginx/public /etc/nginx/public
|
||||
|
||||
# Copy site-specific configurations
|
||||
RUN mkdir -p /etc/nginx/sites-enabled
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -388,7 +388,10 @@ class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
|
||||
# Evaluate KO Criteria
|
||||
evaluation = "positive"
|
||||
criterium, answer = next(iter(self.arguments.form_values.items()))
|
||||
if TranslationServices.translate(self.tenant_id, previous_ko_question.answer_positive, self.arguments.language) != answer:
|
||||
if TranslationServices.translate(self.tenant_id, previous_ko_question.answer_negative, self.arguments.language) == answer:
|
||||
evaluation = "negative"
|
||||
if previous_ko_question.additional_answer_negative:
|
||||
if TranslationServices.translate(self.tenant_id, previous_ko_question.additional_answer_negative, self.arguments.language) == answer:
|
||||
evaluation = "negative"
|
||||
|
||||
score = SelectionKOCriteriumScore(
|
||||
@@ -616,13 +619,23 @@ class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
|
||||
-> Dict[str, Any]:
|
||||
fields = {}
|
||||
ko_question = ko_questions.get_by_title(current_ko_criterium)
|
||||
current_app.logger.debug(f"Preparing form for ko_question: {ko_question.to_json()}")
|
||||
allowed_values = [ko_question.answer_positive, ko_question.answer_negative]
|
||||
if ko_question.additional_answer_positive:
|
||||
current_app.logger.debug(f"Additional answer positive found for question {ko_question.title}")
|
||||
allowed_values.append(ko_question.additional_answer_positive)
|
||||
if ko_question.additional_answer_negative:
|
||||
current_app.logger.debug(f"Additional answer negative found for question {ko_question.title}")
|
||||
allowed_values.append(ko_question.additional_answer_negative)
|
||||
|
||||
current_app.logger.debug(f"Allowed values: {allowed_values}")
|
||||
fields[ko_question.title] = {
|
||||
"name": ko_question.title,
|
||||
"description": ko_question.title,
|
||||
"context": ko_question.question,
|
||||
"type": "options",
|
||||
"required": True,
|
||||
"allowed_values": [ko_question.answer_positive, ko_question.answer_negative]
|
||||
"allowed_values": allowed_values
|
||||
}
|
||||
|
||||
ko_form = {
|
||||
|
||||
Reference in New Issue
Block a user