"livekit-api==1.0.3", "livekit (==1.0.11)", "livekit-plugins-noise-cancellation==0.2.5", "livekit-plugins-turn-detector (==1.2.0)", "livekit-plugins-silero (==1.1.7)", "livekit-plugins-deepgram (==1.1.5)", "livekit-plugins-openai (==1.1.5)", "livekit-agents (==1.2.0)" async def hangup(self): job_ctx = get_job_context() logger.info(f"{job_ctx.room.name}") await job_ctx.api.room.delete_room(api.DeleteRoomRequest(room=job_ctx.room.name)) @function_tool() async def end_call(self, ctx: RunContext): """Ends the call politely after feedback collection.""" logger.info(f"Ending call for {self.participant.identity}") if ctx.session.current_speech: await ctx.session.current_speech.wait_for_playout() await self.hangup() why hangup function not working
Activity