constructor(generation_config) {
        super();
        this.generation_config = generation_config;
    }
Creates a new Sampler object with the specified generation config.
@param {GenerationConfig} generation_config The generation config.