We all agreed to keep the dog.=We all agreed on keeping the dog.=We all agreed that we would keep the dog.
We all agreed to keep the dog.=We all agreed on keeping the dog.=We all agreed that we would keep the dog.
私たちは皆みなその犬を飼うことで意見が一致した.
文法 ちょっとくわしく
「agree+前置詞+名詞」の場合, 名詞の内容によって前置詞は次のようになる:
agree with (人・意見・行為こうい)
agree to (提案)
agree on (決定すべき事項じこう)