Gwenflow separates errors the model can recover from, which are reported back to it, from errors that stop your code.

Handed back to the model

These never raise; the model reads them and adapts: A failing summarizer does not fail the run either: the sliding window takes over for that compaction.

Reported in the response

Check it before using content, and check parsed for None when you asked for a structured answer.

Raised

GwenflowException is the base class of the library’s own exceptions (gwenflow.exceptions).

Logging

Gwenflow logs through the standard logging module, under the logger gwenlake.gwenflow: tool calls and their errors, sub-agents, compactions, flow nodes, retries.
or with the standard API: logging.getLogger("gwenlake.gwenflow").setLevel(logging.DEBUG). For production, prefer telemetry: every model call, tool call and flow node becomes a span with its inputs, outputs, status and timing.