construct message model

construct message model partial function