Fixed AGI response parsing