processMainThreadQueue

abstract fun processMainThreadQueue()

Dispatches queued tool calls on the model thread. Nothing arrives until this is called, and a caller waiting on a tool result waits exactly as long as the gap between calls.