Dynamic control of DC-DC converter current limit
the typical circuit in the application note has 100 ohm resistors between the sense resistor and the chip.

if you steal current from the Iavgsns pin the chip will see a lower voltage there and perceive a higher current.

You could use PWM or a DAC with a resistor to do this.