We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some prompts use XML tags like
<tag> content </tag>
We should ensure that the opening and closing tags cannot be pruned individually. I suggest something like
import { PromptElement, usePruneWith } from '@vscode/prompt-tsx'; class MyPromptElements extends PromptElement { render() { const token = usePruneWith(); return <> <Chunk pruneWith={token}>{`<${this.props.tagName}>`}</Chunk> {this.children} <Chunk pruneWith={token}>{`</${this.props.tagName}>`}</Chunk> </>; } }
The text was updated successfully, but these errors were encountered:
connor4312
No branches or pull requests
Some prompts use XML tags like
We should ensure that the opening and closing tags cannot be pruned individually. I suggest something like
The text was updated successfully, but these errors were encountered: