Use a spawn egg on a block to summon the Medium-level duelist, or use /pvpbot spawn <difficulty> to choose its skill level. The command places it beside you. It will seek the nearest eligible player within about 32 blocks.
The duelist fights automatically. It uses its bow when you are more than about nine blocks away, unless you are blocking with a shield; at close range it switches to its axe. It may strafe, jump, or retreat when badly hurt.