Jayashree Sridhar
commited on
Commit
·
d20bb96
1
Parent(s):
aeca024
modified process func in crew_config.py
Browse files- crew_config.py +4 -3
crew_config.py
CHANGED
|
@@ -80,14 +80,15 @@ class PersonalCoachCrew:
|
|
| 80 |
4. (optionally) interaction_manager tweaks flow/summary
|
| 81 |
Returns dict with 'final_response' (name matches app.py usage)
|
| 82 |
"""
|
|
|
|
| 83 |
# 1. Empathetic dialog
|
| 84 |
-
conversation_response = self.conversation_handler
|
| 85 |
# 2. Wisdom/advice
|
| 86 |
-
wisdom_response = self.wisdom_advisor
|
| 87 |
# (You may mix/compose these based on your agent logic)
|
| 88 |
combined_response = f"{conversation_response}\n{wisdom_response}"
|
| 89 |
# 3. Validate response
|
| 90 |
-
validator_result = self.response_validator
|
| 91 |
|
| 92 |
# You may want to use a more sophisticated process (context, better merging, etc)
|
| 93 |
# For MVP, just return this:
|
|
|
|
| 80 |
4. (optionally) interaction_manager tweaks flow/summary
|
| 81 |
Returns dict with 'final_response' (name matches app.py usage)
|
| 82 |
"""
|
| 83 |
+
print(dir(self.conversation_handler))
|
| 84 |
# 1. Empathetic dialog
|
| 85 |
+
conversation_response = self.conversation_handler(inputs)
|
| 86 |
# 2. Wisdom/advice
|
| 87 |
+
wisdom_response = self.wisdom_advisor(inputs)
|
| 88 |
# (You may mix/compose these based on your agent logic)
|
| 89 |
combined_response = f"{conversation_response}\n{wisdom_response}"
|
| 90 |
# 3. Validate response
|
| 91 |
+
validator_result = self.response_validator({'response': combined_response})
|
| 92 |
|
| 93 |
# You may want to use a more sophisticated process (context, better merging, etc)
|
| 94 |
# For MVP, just return this:
|