langchain/chains/router/llm_router.py/LLMRouterChain/_validate_outputs
class LLMRouterChain:    def _validate_outputs(self, outputs: Dict[str, Any]) -> None:
        super()._validate_outputs(outputs)
        if not isinstance(outputs["next_inputs"], dict):
            raise ValueError