refactor: Update TextOutputComponent to set status with input value

This commit updates the TextOutputComponent class in the TextOutput.py file to set the status attribute with the input value. This change improves the code logic and ensures that the status is properly assigned.
This commit is contained in:
ogabrielluiz 2024-06-19 01:08:31 -03:00
commit 2db30b42fc
2 changed files with 3249 additions and 3257 deletions

View file

@ -23,8 +23,6 @@ class TextOutputComponent(TextComponent):
def text_response(self) -> Message:
message = Message(
text=self.input_value,
sender=self.sender,
sender_name=self.sender_name,
session_id=self.session_id,
)
self.status = self.input_value
return message

File diff suppressed because one or more lines are too long