useCopilotAction({ name: "sortHouseListings", description: "Sort the displayed house listings", parameters: [ { name: "columnId", type: "string", description: "The ID of the column to sort on", }, ], handler: async ({columnId, sortDirection}) => { sortColumn(columnId, sortDirection); }, });