@Ajay Bhargava In principle, the user defines a DSPy compound module that mimics the structure of multiple BAML functions and how they're chained together. And then, each module of the DSPy compound module would have its own instructions that are jointly optimized by GEPA, following which it's a trivial operation to extract the instructions from the saved output of the DSPy program and pass those as template strings to the corresponding BAML function. I think this is the idea that @stugorf floated in my chats with him