- Issue created by @MrDaleSmith
The Drupal\ai_agents\Plugin\AiFunctionCall\Webscraper function uses the included WebScraperTrait to scrape a webpage, which in turn relies on EITHER the scrapingbot or simple_crawler modules to do the actual scraping. Howdver, on a site with only simple_crawler enabled the WebScraper cannot be used because it lists a dependency on the scrapingbot module.
The issue seems to be that the underlying code that consumes the module_dependencies array is not flexible enough to handle either/or dependencies. Ideally we would update the code so it can do this - possibly by listing OR dependencies within the array key with a ||
splitter. But if this is not desirable, the dependency on scrapingbot should be removed.
Active
1.1
Code