async def hangup_call(self, ctx: RunContext[Helper...
# ask-ai
d
async def hangup_call(self, ctx: RunContext[HelperSessionInfo]): ctx = get_job_context() if ctx is None: return await ctx.api.room.delete_room(api.DeleteRoomRequest(room=ctx.room.name)) is this a good hangup function?
t
Thanks for reaching out, Billy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! Could you share a bit more about how you’re planning to use this hangup function? For instance, are you looking to end the call for everyone by deleting the room, or is there another goal you have in mind? Understanding this will really help me guide you to the best solution that fits your needs.
d
Copy code
@function_tool
    async def summarize_call(self, ctx: RunContext[HelperSessionInfo]) -> str:
        """Summarize call with user with provided data"""
        <http://logger.info|logger.info>(":white_check_mark: summarize call with user called")
        user_initial_image = ctx.session.userdata.user_vision_description
        mockup_image = ctx.session.userdata.mockup_vision_description
        return self.hangup_call()
t
I'd love to better understand what you have in mind for the
summarize_call
function. Are you looking to create a summary of the call's content, or is it intended to handle tasks like wrapping up or ending the call? Knowing this will really help me guide you toward the best way to implement it.