I have an abstract algebra question Write 𝐹 for the free commutative monoid on ...

@julesh@mathstodon.xyz

I have an abstract algebra question

Write 𝐹 for the free commutative monoid on a set, aka finite multisets/bags (commutative monoids is the case I'm personally interested in but the question probably works for any class of algebras for which finite direct sums are a categorical biproduct)

I have a commutative monoid 𝐴, a set 𝐵, a monoid homomorphism 𝑓:𝐴→𝐹(𝐵), and a 𝐵-indexed family of commutative monoids 𝐶_𝑏. I am interested in the set of pairs (𝑎,𝑐) where 𝑎∈𝐴 and 𝑐∈⨁_{𝑏∈𝑓(𝑎)} 𝐶_𝑏

It seems entirely straightforward to check that this set admits a commutative monoid structure. But I've never heard of a construction like this in algebra so I have no idea what it's called, or what universal property it satisfies. Interested in answers from both a category theory perspective and an abstract algebra perspective