3 ms·
Something I’ve wanted to hack together for a while is a custom react-renderer and react-reconciler for prompt templating so that you can write prompts with JSX.
by chatmasta 1y ago
Something I’ve wanted to hack together for a while is a custom react-renderer and react-reconciler for prompt templating so that you can write prompts with JSX.
I haven’t really thought about it beyond “JSX is a templating language and templating helps with prompt building and declarative is better than spaghetti code like LangChain.” But there’s probably some kernel of coolness there.
- sqs 1y agoPriompt might be what you're looking for: https://github.com/anysphere/priompt https://github.com/anysphere/priompt.
- dataviz1000 1y agoVSCode uses @vscode/prompt-tsx [0] They also provide documentation for all this. [1] VSCode also provides examples. [2] [0] https://github.com/microsoft/vscode-prompt-tsx https://github.com/microsoft/vscode-prompt-tsx [1] https://code.visualstudio.com/api/extension-guides/chat https://code.visualstudio.com/api/extension-guides/chat [2] https://github.com/microsoft/vscode-extension-samples/blob/main/chat-sample/src/play.tsx https://github.com/microsoft/vscode-extension-samples/blob/m...