run
fun run(parts: List<AIMessagePart>, send: suspend (call: AIToolCallPart, result: AIClientToolResult) -> Unit)
Runs the calls among parts that await this device, and sends their results.
Parameters
parts
A reply's steps.
send
Sends a call's result to your backend. Throw to have it offered again on a later update that still shows the call waiting.