Following the Learn DSPy section on Optimizers, the text states that the save_field_meta can be used while saving.
You can add save_field_meta to additionally save the list of fields with the keys, name, field_type, description, and prefix with: optimized_program.save(YOUR_SAVE_PATH, save_field_meta=True).
Yet doing so results in a TypeError:
optimized_program.save("my_program.json", save_field_meta=True) TypeError: BaseModule.save() got an unexpected keyword argument 'save_field_meta'
The method signature for save suggests that this functionality was removed/changed:
save(path, save_program=False, modules_to_serialize=None)