from typing import NamedTuple class InferenceResult(NamedTuple): reasoning: str actions: str