AI "agents" would be treated the same as machines that do or don't perform according to promise.
Otherwise, "agents" as a class in contracts are well covered by existing law:
https://en.wikipedia.org/wiki/Law_of_agency