GuardReport#

class ansys.fluent.mcp.solve.lib.intent_guard.GuardReport#

Collection of findings for a snippet.

Overview#

to_run_code_result

Render the report as the RunCodeResult callers expect.

has_blocking

Whether the report contains any blocking finding.

Import detail#

from ansys.fluent.mcp.solve.lib.intent_guard import GuardReport

Property detail#

property GuardReport.has_blocking: bool#

Whether the report contains any blocking finding.

Returns:
bool

True when at least one finding has severity="block".

Attribute detail#

GuardReport.findings: list[GuardFinding] = []#
GuardReport.rewritten_code: str | None = None#

Method detail#

GuardReport.to_run_code_result() ansys.fluent.mcp.common.models.RunCodeResult#

Render the report as the RunCodeResult callers expect.

Only invoked when at least one BLOCK-level finding is present. Sequence-error findings produce error_code="sequence_error"; every other block produces error_code="risk_blocked".

Returns:
RunCodeResult

Error result containing the blocking findings and guard-specific error_code value.