error property

AgentErrorDetails? error
final

The structured error a failed turn ended with, or null otherwise.

A prompt-backed turn populates it from the failed generate response's error so the SessionRunner persists it on the turn-end snapshot and a client reading the row can branch on the status the failure carried.

Implementation

final AgentErrorDetails? error;