help
1 TopicNeed help intercepting outgoing messages and accessing chat history in Teams bot (python)
Hi everyone, I’m relatively new to programming and have been experimenting with the Teams AI Library in Python. I’ve created a basic bot application using the Teams Toolkit with the Custom Engine Agent template. So far, so good, but I’m stuck on two specific tasks and would appreciate some guidance. Here’s what I’m trying to achieve: Intercept outgoing messages before they are sent: I’d like to capture and potentially modify messages just before they are sent out by the bot. Access the conversation history: I want to retrieve the chat history for the current conversation. I’m wondering if there’s a simple way to do this without overhauling the existing logic. Specifically: Can I use a decorator in bot.py to intercept outgoing messages without disrupting the rest of the bot’s functionality? Is there an even simpler solution that I might be missing? TL;DR: New to programming, using Teams AI Library in Python with a basic bot. Need to: Intercept outgoing messages before they’re sent. Access conversation history. Is a decorator in bot.py the way to go, or is there a simpler solution? Thanks! Looking forward to your suggestions!44Views0likes3Comments