WriteTarget#
- class ansys.fluent.mcp.solve.lib.active_path.WriteTarget#
Canonical resolution of “where should a write to
requested_pathland”.The three consumers of active-path knowledge (the validator’s
inactive_pathdiagnostic, theresolve_active_pathtool surfaced to clients, and the recipe URF stagers) historically each maintained their OWN version of the classify → reroute → fetch-alternate-path pipeline. That triplication is the reason the same live case could produce three DIFFERENT answers for “where does this URF write actually go” — the validator saidinactive_path, the tool said “no reroute needed”, and the recipe went ahead and wrote the wrong family.resolve_write_target()is the single deterministic resolver they all consult. The result carries:requested_path— the input, verbatim.active_path— the correct path to write undermode, which equalsrequested_pathwhen the input is already active (needs_reroute=False).needs_reroute— True iffactive_path != requested_path.group/active_family— for messaging and telemetry.reason— short human-readable explanation suitable for avalidator diagnostic and the client-facing tool response.
classified— True iff the requested path was recognized as belonging to a known multi-path class. When False, the resolver is conservative: it returnsneeds_reroute=Falseandactive_path=requested_pathso an ordinary write is never false-blocked.
Overview#
Import detail#
from ansys.fluent.mcp.solve.lib.active_path import WriteTarget