agent_error_type(
exc: BaseException,
) -> str| Name | Type | Description |
|---|---|---|
exc* | BaseException | The exception caught from the agent stream. |
Best-effort error-type name for an exception from RemoteAgent.astream.
The LangGraph server serializes non-allowlisted exceptions as
{"error": <ExceptionType>, "message": ...} wrapped in
RemoteException(payload) (see langgraph_api.serde). The server-reported
"error" type is the authoritative name when present; otherwise the
exception's own class name is used. This is the single source of truth for
"what error did the stream report" — both format_agent_exception (display
string) and the UI's error-enrichment path (error-type dispatch) read it.