- Start Dev of User Action Agent. TBC
This commit is contained in:
15
config/prompts/globals/user_action_classifier/1.0.0.yaml
Normal file
15
config/prompts/globals/user_action_classifier/1.0.0.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
version: "1.0.0"
|
||||||
|
content: |
|
||||||
|
Classify the prompt you receive from an end user, according to the following information:
|
||||||
|
|
||||||
|
{user_action_classes}
|
||||||
|
|
||||||
|
Use the CLASS DESCRIPTION to identify the CLASS of the question asked. Return the value of CLASS. If the prompt doesn't correspond to any CLASS DESCRIPTION, return NONE. No layout is required.
|
||||||
|
|
||||||
|
llm_model: "mistral.mistral-small-latest"
|
||||||
|
temperature: 0.7
|
||||||
|
metadata:
|
||||||
|
author: "Josako"
|
||||||
|
date_added: "2025-11-14"
|
||||||
|
description: "Assistant to classify user intent"
|
||||||
|
changes: "Initial version"
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
INSUFFICIENT_INFORMATION_MESSAGES = [
|
||||||
|
"I'm afraid I don't have enough information to answer that properly. Feel free to ask something else!",
|
||||||
|
"There isn’t enough data available right now to give you a clear answer. You're welcome to rephrase or ask a different question.",
|
||||||
|
"Sorry, I can't provide a complete answer based on the current information. Would you like to try asking something else?",
|
||||||
|
"I don’t have enough details to give you a confident answer. You can always ask another question if you’d like.",
|
||||||
|
"Unfortunately, I can’t answer that accurately with the information at hand. Please feel free to ask something else.",
|
||||||
|
"That’s a great question, but I currently lack the necessary information to respond properly. Want to ask something different?",
|
||||||
|
"I wish I could help more, but the data I have isn't sufficient to answer this. You’re welcome to explore other questions.",
|
||||||
|
"There’s not enough context for me to provide a good answer. Don’t hesitate to ask another question if you'd like!",
|
||||||
|
"I'm not able to give a definitive answer to that. Perhaps try a different question or angle?",
|
||||||
|
"Thanks for your question. At the moment, I can’t give a solid answer — but I'm here if you want to ask something else!"
|
||||||
|
]
|
||||||
@@ -19,19 +19,7 @@ from eveai_chat_workers.specialists.crewai_base_specialist import CrewAIBaseSpec
|
|||||||
from eveai_chat_workers.specialists.specialist_typing import SpecialistResult, SpecialistArguments
|
from eveai_chat_workers.specialists.specialist_typing import SpecialistResult, SpecialistArguments
|
||||||
from eveai_chat_workers.outputs.globals.rag.rag_v1_0 import RAGOutput
|
from eveai_chat_workers.outputs.globals.rag.rag_v1_0 import RAGOutput
|
||||||
from eveai_chat_workers.specialists.crewai_base_classes import EveAICrewAICrew, EveAICrewAIFlow, EveAIFlowState
|
from eveai_chat_workers.specialists.crewai_base_classes import EveAICrewAICrew, EveAICrewAIFlow, EveAIFlowState
|
||||||
|
from eveai_chat_workers.definitions.messages.globals.rag_messages import INSUFFICIENT_INFORMATION_MESSAGES
|
||||||
INSUFFICIENT_INFORMATION_MESSAGES = [
|
|
||||||
"I'm afraid I don't have enough information to answer that properly. Feel free to ask something else!",
|
|
||||||
"There isn’t enough data available right now to give you a clear answer. You're welcome to rephrase or ask a different question.",
|
|
||||||
"Sorry, I can't provide a complete answer based on the current information. Would you like to try asking something else?",
|
|
||||||
"I don’t have enough details to give you a confident answer. You can always ask another question if you’d like.",
|
|
||||||
"Unfortunately, I can’t answer that accurately with the information at hand. Please feel free to ask something else.",
|
|
||||||
"That’s a great question, but I currently lack the necessary information to respond properly. Want to ask something different?",
|
|
||||||
"I wish I could help more, but the data I have isn't sufficient to answer this. You’re welcome to explore other questions.",
|
|
||||||
"There’s not enough context for me to provide a good answer. Don’t hesitate to ask another question if you'd like!",
|
|
||||||
"I'm not able to give a definitive answer to that. Perhaps try a different question or angle?",
|
|
||||||
"Thanks for your question. At the moment, I can’t give a solid answer — but I'm here if you want to ask something else!"
|
|
||||||
]
|
|
||||||
|
|
||||||
class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
|
class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ class SpecialistExecutor(CrewAIBaseSpecialistExecutor):
|
|||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
def execute_initial_state(self, arguments: SpecialistArguments, formatted_context, citations) -> SpecialistResult:
|
def execute_initial_state(self, arguments: SpecialistArguments, formatted_context, citations) -> SpecialistResult:
|
||||||
self.log_tuning("Traicie KO Criteria Interview Definition Specialist initial_state_execution started", {})
|
self.log_tuning("Traicie KO Criteria Interview Definition Specialist initial_state_execution started", {})
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ from eveai_chat_workers.outputs.traicie.knockout_questions.knockout_questions_v1
|
|||||||
from eveai_chat_workers.specialists.crewai_base_classes import EveAICrewAICrew, EveAICrewAIFlow, EveAIFlowState
|
from eveai_chat_workers.specialists.crewai_base_classes import EveAICrewAICrew, EveAICrewAIFlow, EveAIFlowState
|
||||||
from eveai_chat_workers.specialists.crewai_base_specialist import CrewAIBaseSpecialistExecutor
|
from eveai_chat_workers.specialists.crewai_base_specialist import CrewAIBaseSpecialistExecutor
|
||||||
from eveai_chat_workers.specialists.specialist_typing import SpecialistResult, SpecialistArguments
|
from eveai_chat_workers.specialists.specialist_typing import SpecialistResult, SpecialistArguments
|
||||||
|
from eveai_chat_workers.definitions.messages.globals.rag_messages import INSUFFICIENT_INFORMATION_MESSAGES
|
||||||
|
|
||||||
INITIALISATION_MESSAGES = [
|
INITIALISATION_MESSAGES = [
|
||||||
"Great! Let's see if this job might be a match for you by going through a few questions.",
|
"Great! Let's see if this job might be a match for you by going through a few questions.",
|
||||||
@@ -85,18 +86,6 @@ TRY_TO_START_SELECTION_QUESTIONS = [
|
|||||||
"Understood! However, we can't proceed without initiating the process. Would you like to start it now after all?",
|
"Understood! However, we can't proceed without initiating the process. Would you like to start it now after all?",
|
||||||
"We appreciate your honesty. Just to clarify: the process only continues if we begin the selection. Shall we go ahead?"
|
"We appreciate your honesty. Just to clarify: the process only continues if we begin the selection. Shall we go ahead?"
|
||||||
]
|
]
|
||||||
INSUFFICIENT_INFORMATION_MESSAGES = [
|
|
||||||
"I'm afraid I don't have enough information to answer that properly. Feel free to ask something else!",
|
|
||||||
"There isn’t enough data available right now to give you a clear answer. You're welcome to rephrase or ask a different question.",
|
|
||||||
"Sorry, I can't provide a complete answer based on the current information. Would you like to try asking something else?",
|
|
||||||
"I don’t have enough details to give you a confident answer. You can always ask another question if you’d like.",
|
|
||||||
"Unfortunately, I can’t answer that accurately with the information at hand. Please feel free to ask something else.",
|
|
||||||
"That’s a great question, but I currently lack the necessary information to respond properly. Want to ask something different?",
|
|
||||||
"I wish I could help more, but the data I have isn't sufficient to answer this. You’re welcome to explore other questions.",
|
|
||||||
"There’s not enough context for me to provide a good answer. Don’t hesitate to ask another question if you'd like!",
|
|
||||||
"I'm not able to give a definitive answer to that. Perhaps try a different question or angle?",
|
|
||||||
"Thanks for your question. At the moment, I can’t give a solid answer — but I'm here if you want to ask something else!"
|
|
||||||
]
|
|
||||||
KO_CRITERIA_NOT_MET_MESSAGES = [
|
KO_CRITERIA_NOT_MET_MESSAGES = [
|
||||||
"Thank you for your answers. Based on your responses, we won't be moving forward with this particular role. We do encourage you to keep an eye on our website for future opportunities.",
|
"Thank you for your answers. Based on your responses, we won't be moving forward with this particular role. We do encourage you to keep an eye on our website for future opportunities.",
|
||||||
"We appreciate the time you took to answer our questions. At this point, we won’t be proceeding with your application, but feel free to check our website regularly for new vacancies.",
|
"We appreciate the time you took to answer our questions. At this point, we won’t be proceeding with your application, but feel free to check our website regularly for new vacancies.",
|
||||||
|
|||||||
Reference in New Issue
Block a user