refactor: Update PromptComponent to correctly set the status message and improve code structure

This commit is contained in:
Rodrigo 2024-06-18 17:02:42 -03:00
commit d5f73dab70

View file

@ -24,5 +24,5 @@ class PromptComponent(Component):
kwargs = self._arguments.copy()
kwargs["text"] = prompt.format_text()
prompt_message = Message(**kwargs)
self.status = prompt_message
return prompt
self.status = prompt.format_text()
return prompt_message