Merge "res_agi: Improve documentation"