Power-Fx
Power-Fx copied to clipboard
Implement AI disclaimer in intellisense.
For AI functions, like AISummarize, formula bar needs to include a disclaimer in the summary.
This means:
- LSP needs to send rich markdown to UFB for a function's description. This can be prepending a disclaimer to existing function summary. See #2099 for a POC on how to do this. UFB already knows how to display it.
- LSP needs to know when to show the disclaimer. Initially, it can whitelist it based on function name (basically, if it starts with "AI"). But TexlFunctions need to track whether it requires the disclaimer. We can then populate that flag from Reflection Function, swagger, etc.
The exact markdown is TBD. It will include some bold and a hyperlink.
@MikeStall, formula bar supports markdown content for many different things such as error/warning/info messages, signature help, completion item documentation and more. As a part of this, we have a good opportunity to support this at a more general level
@mikestall, Can we also have an AI disclaimer in REPL to enable such functionality?