Go to settings (Ctrl+,) search for "chat.agent" and enable it if it's not enabled. It should be enabled by default when you update VS Code to 1.99.2 onwards. And like @Dmitriy mentioned, you can select agent from the ask option in chat view.