important-judge-78504
05/11/2026, 5:21 PMtall-airline-16756
05/11/2026, 5:21 PMtall-airline-16756
05/11/2026, 5:22 PMcontext.disallow_interruptions() inside the tool; this ensures the tool runs to completion.
• There is no way to make speculative (preemptive) tool calls immune to being discarded — preemptive paths are validated after the user turn, and if invalidated they are thrown away.
Follow-up question
• Do you need guaranteed, irreversible actions (where interruptions must be blocked), or are you trying to reduce latency by speculatively calling safe/read-only tools? That will determine whether we recommend preemptive calls or waiting until turn confirmation. Sources: Function tool definition | LiveKit Documentation, with interactive elements