ParseIssue

One problem found while parsing model output.

Usage

Source

ParseIssue(
    *,
    kind,
    message,
    line=None,
    line_no=None,
    candidates=(),
)

Attributes

kind: IssueKind

What went wrong.

message: str

Human-readable explanation.

line: str | None

The raw output line, if the issue belongs to one.

line_no: int | None

1-based line number in the model output.

candidates: tuple[Span, …]
Spans that were considered, for debugging grounding decisions.