withDefaultsFrom

Fill in anything this instance leaves unset from defaults, keeping every value set here.

Used to apply the hyperparameters configured against a role without overriding what the caller asked for: a role may say temperature: 0.3, but a caller that passed its own temperature still gets that one.

Model selection is taken from defaults wholesale, since the point of resolving a role is to decide which model it means.