Power-Fx icon indicating copy to clipboard operation
Power-Fx copied to clipboard

Implement AI disclaimer in intellisense.

Open MikeStall opened this issue 2 years ago • 2 comments

For AI functions, like AISummarize, formula bar needs to include a disclaimer in the summary.

This means:

  1. 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.
  2. 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 avatar Dec 13 '23 08:12 MikeStall

@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

akshar2401 avatar Dec 14 '23 15:12 akshar2401

@mikestall, Can we also have an AI disclaimer in REPL to enable such functionality?

snizar007 avatar Jan 03 '24 16:01 snizar007