Ty Todd
Ty Todd
> Thanks @TyTodd! Is it hard to have `typing.cast()` in your codebase after `.compile()`? Thanks for your response! It's not really _hard_. It's more of a taste thing I guess....
> > dspy.Predict.**call**() as a union of Signature and Prediction which can lead to confusion because it will show the return type has extra attributes that it doesn't have. >...
> TypedPrediction[MyOutputSignature] = await module.acall( > MyInputSignature(input1="What's the capital and population of France?", input2=42) > ) Nice implementation @enigma. Ideally I think the normal workflow changes as little as possible....
Honestly it might just make more sense for Prediction to subclass Signature for this to ever work. I didn't really want the implementation to be too invasive, although it actually...
@enigma > Can you share what machinery is enabled by Signature holding both input/outputs flat, or what's the design choice? It's not as much about the machinery as it is...