How to use telescope.actions.state.get_selected_entry()

I’m following TJ DeVries video about telescope and in 1:32:09 he is explaining how to use telescope.actions.state.get_current_entry I tried this code in my config but it doesn’t work, It doesn’t break my config nor it gives me an error but it just does nothing

here is my code

config = function(_, _)
        local actions = require "telescope.actions"
        local telescope = require('telescope')
        local action_state = require 'telescope.actions.state'


       -- some code here
        telescope.setup {
            defaults = {
               -- some code here
                mappings = {
                    i = {
                        ["<C-j>"] = actions.move_selection_next, -- works fine
                        ["<C-k>"] = actions.move_selection_previous, -- works fine
                        ["<c-a>"] = function()
                            print(vim.inspect(action_state.get_selected_entry)) -- it does nothing why ????
                        end,
                    }
                }
            },
        }

    end,

any help appreaciated

It seems like you’re printing the function itself; after using the mapping try using :messages.

If you add parens to the end of get_selected_entry it should work (though you may still need :messages to see the result).