- RQC output of TRAICIE_SELECTION_SPECIALIST to EveAIDataCapsule
This commit is contained in:
@@ -9,6 +9,7 @@ from pydantic import BaseModel, Field, EmailStr
|
||||
from common.extensions import cache_manager, db, minio_client
|
||||
from common.models.interaction import EveAIAsset
|
||||
from common.models.user import Tenant
|
||||
from common.services.interaction.capsule_services import CapsuleServices
|
||||
from common.services.utils.human_answer_services import HumanAnswerServices
|
||||
from common.services.utils.translation_services import TranslationServices
|
||||
from common.utils.business_event_context import current_event
|
||||
@@ -308,6 +309,13 @@ class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
|
||||
self.flow.state.personal_contact_data = arguments.form_values
|
||||
self.flow.state.form_request = time_pref_form
|
||||
|
||||
rqc_info = {
|
||||
"ko_criteria_answers": self.flow.state.ko_criteria_answers,
|
||||
"personal_contact_data": self.flow.state.personal_contact_data,
|
||||
}
|
||||
|
||||
CapsuleServices.push_capsule_data(self._cached_session.id, "TRAICIE_RQC", "1.0", {}, rqc_info)
|
||||
|
||||
results = SelectionResult.create_for_type(self.type, self.type_version,)
|
||||
return results
|
||||
|
||||
@@ -327,8 +335,15 @@ class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
|
||||
current_app.logger.debug(f"Contact time evaluation: {arguments.form_values}")
|
||||
self.flow.state.contact_time_prefs = arguments.form_values
|
||||
|
||||
rqc_info = {
|
||||
"ko_criteria_answers": self.flow.state.ko_criteria_answers,
|
||||
"personal_contact_data": self.flow.state.personal_contact_data,
|
||||
"contact_time_prefs": self.flow.state.contact_time_prefs,
|
||||
}
|
||||
|
||||
CapsuleServices.push_capsule_data(self._cached_session.id, "TRAICIE_RQC", "1.0", {}, rqc_info)
|
||||
|
||||
results = SelectionResult.create_for_type(self.type, self.type_version,)
|
||||
current_app.logger.debug(f"Results: {results.model_dump()}")
|
||||
|
||||
return results
|
||||
|
||||
|
||||
Reference in New Issue
Block a user