Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,6 +79,11 @@ class ResponseExpertAgent(Agent):
|
|
79 |
return response['generated_text']
|
80 |
|
81 |
class PostprocessingAgent(Agent):
|
|
|
|
|
|
|
|
|
|
|
82 |
def run(self, response):
|
83 |
response += "\n\nThank you for contacting Zerodha. Is there anything else we can help with?"
|
84 |
return response
|
|
|
79 |
return response['generated_text']
|
80 |
|
81 |
class PostprocessingAgent(Agent):
|
82 |
+
role: Literal["Postprocessing Expert"] = "Postprocessing Expert"
|
83 |
+
goal: Literal["To enhance and finalize responses ensuring quality and completeness"] = "To enhance and finalize responses ensuring quality and completeness"
|
84 |
+
backstory: Literal["You are responsible for finalizing communications, adding polite terminations, and ensuring that the responses meet the quality standards expected in customer interactions."] = \
|
85 |
+
"You are responsible for finalizing communications, adding polite terminations, and ensuring that the responses meet the quality standards expected in customer interactions."
|
86 |
+
|
87 |
def run(self, response):
|
88 |
response += "\n\nThank you for contacting Zerodha. Is there anything else we can help with?"
|
89 |
return response
|