I put up this PR https://github.com/
dotprompt to simply prompt, when calling generate on a promptRef, but I am having second thoughts on the naming (context below). Any thoughts?Some of you wizards may recall there is also an
action w/ subtype prompt, which will simply render the prompt, without running it. This is mainly used by the Dev UI for the prompt runner's preview pane, and is generally not used by the developer.In this case, we are calling
prompt.generate() on a promptRef which will create a span w/ type prompt.The main goal here is to have an abstract concept for prompt, that can be used generically in the dev ui for displaying badging on traces, deciding when a trade/span can be loaded into the prompt runner, etc. I'd rather not leak the details of
dotprompt (the user is calling generate on a promptRef afterall) and do not want to have to look for dotprompt and whatever FOOprompt might be implemented in the future in the Dev UI code.I think alternatively we have a top level span type
helper.