microsoft / vscode-prompt-tsx

MIT License
34 stars 1 forks source link

Store if a prompt tree element is included in the final renderer result #38

Open hediet opened 5 months ago

hediet commented 5 months ago

The prompt renderer materializes the prompt tree and computes the messages from it under consideration of the max prompt size and the prompt tree prioritization. For visualization purposes, it would be nice if the prompt tree elements would indicate if they are included in the final result or skipped. Otherwise, it is difficult to indicate in the tree visualization if a node made it after prioritization or not.

https://github.com/microsoft/vscode-prompt-tsx/blob/b9b5bb43655842ccff974ae8da41b1c120c71a23/src/base/promptRenderer.ts#L238

Are you up for a PR on this?