async def terminate_call(
        params: FunctionCallParams,
    ):
        """Function the bot can call to terminate the call."""

        await params.llm.queue_frame(EndTaskFrame(), FrameDirection.UPSTREAM)
Function the bot can call to terminate the call.
examples/phone-chatbot/daily-pstn-simple-voicemail-detection/bot.py