Converts to JSON.
@override Map<String, dynamic> toJson() => { 'type': 'tool_calls', 'tool_calls': toolCalls.map((tc) => tc.toJson()).toList(), };