format_agent_exception(
exc: BaseException,
) -> str| Name | Type | Description |
|---|---|---|
exc* | BaseException | The exception caught from the agent stream. |
Render an exception from RemoteAgent.astream for the UI.
The LangGraph server serializes non-allowlisted exceptions as
{"error": <ExceptionType>, "message": <text or "An internal error occurred">}
(see langgraph_api.serde). RemoteGraph wraps that dict in
RemoteException(payload), so the default str(exc) renders as an ugly
Python dict repr in the UI.