error property

AgentErrorInfo? get error

The structured error on a failed response, or null otherwise. A caller can branch on error.status and rerun the (persisted) snapshot.

Implementation

AgentErrorInfo? get error => _raw.error;