Skip to content

Issue #3537886: Update prompt builder and build schema on the fly from given PHP object

  • Update prompt builder and build schema on the fly from given PHP object.
  • Also adds in .env.copy-me (.ddev ignores anything with "example" in the title).
  • Adds a json Schema generator library.
  • Updates tests.

I’ve hardcoded a PHP object that represents a bundle from LINCS, as an example. To test locally, try:

ddev drush php-eval "print_r(\Drupal::service('ai_migration.ai_migrator')->convert('https://lincs.ed.gov/professional-development/resource-collections/prle-8850'));"

Other pages you could try:

Edited by majorrobot

Merge request reports

Loading