- Introduction of TRACIE_KO_INTERVIEW_DEFINITION_SPECIALIST

- Re-introduction of EveAIAsset
- Make translation services resistent for situation with and without current_event defined.
- Ensure first question is asked in eveai_chat_client
- Start of version 1.4.0 of TRAICIE_SELECTION_SPECIALIST
This commit is contained in:
Josako
2025-07-02 16:58:43 +02:00
parent fbc9f44ac8
commit 51d029d960
34 changed files with 1292 additions and 302 deletions

View File

@@ -111,14 +111,26 @@ def chat(magic_link_code):
if isinstance(specialist_config, str):
specialist_config = json.loads(specialist_config)
welcome_message = specialist_config.get('welcome_message', 'Hello! How can I help you today?')
# # Send a first 'empty' message to the specialist, in order to receive a starting message
# Database(tenant_id).switch_schema()
# specialist_args = session['magic_link'].get('specialist_args', {})
# specialist_args['question'] = ''
# result = SpecialistServices.execute_specialist(
# tenant_id=tenant_id,
# specialist_id=specialist.id,
# specialist_arguments=specialist_args,
# session_id=session['chat_session_id'],
# user_timezone=specialist_config.get('timezone', 'UTC')
# )
#
# welcome_message = result.get('answer')
return render_template('chat.html',
tenant=tenant,
tenant_make=tenant_make,
specialist=specialist,
customisation=customisation,
messages=[welcome_message],
messages=[],
settings=settings,
config=current_app.config
)