add agi completion.