dotnet-smartcomponents / smartcomponents

Experimental, end-to-end AI features for .NET apps
693 stars 61 forks source link

SmartPasteButton - Add a way to provide custom fields metadata #24

Open hakenr opened 8 months ago

hakenr commented 8 months ago

Real scenario:

It would be nice to have a possibility to somehow (data attributes?) override the metadata used by the SmartPasteButton

SteveSandersonMS commented 8 months ago

Sure, this seems reasonable. For now you can use data-smartpaste-description to emit other field-specific instructions into the prompt, so it should be possible to state the exact format the value must conform to (and this is all that we're doing by default with the type attribute anyway so it's not much different).