Function that allows you to get the treatment for a user for an experiment.
Example:
const treatment = await trieve.getTreatment({ experimentId: "123", userId: "123",}); Copy
const treatment = await trieve.getTreatment({ experimentId: "123", userId: "123",});
Optional
Function that allows you to get the treatment for a user for an experiment.
Example: