Skip to content

Commit

Permalink
add more handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Dec 3, 2024
1 parent 5235bbc commit 780608f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ async def handle_user_chat_input(self, message: input_types, ctx: MessageContext
await self.publish_message(NewMessageReceived(message=response), topic_id=DefaultTopicId())
elif isinstance(message, Output):
logger.info(message.message)
elif isinstance(message, ConversationClosed):
logger.info("Conversation closed. Goodbye!")
elif isinstance(message, NewMessageReceived):
logger.info(f"New message received: {message.message}")
else:
pass

Expand Down

0 comments on commit 780608f

Please sign in to comment.