Generating text artifacts. (We can generate PDFs and HTML documents with the document_generator tool, but can't generate a text artifact without a file format like Claude.ai that is shown in a side panel).
Editing text or code artifacts
Claude doesn't support editing generated artifacts. ChatGPT has the Canvas feature for editing code or text.
What
Generate artifacts
For generating text artifacts, we need to add the following:
[ ] T-1 modify document_generator to not generate a file output, but just markdown
[ ] T-2 add an endpoint to download document markdown as HTML/PDF (similar to the sandbox endpoint that is executing code)
[ ] T-3 extend artifact.tsx to text artifact and code artifact components that are viewing the artifacts
[ ] T-5 tool outputs must also be rendered with workflows to ensure that the text artifact is shown when using one of the workflow use cases (same of course for code artifacts if we would have one)
Edit artifacts
Out of the scope of this ticket, but should be kept in mind when writing the code
Why
We already implemented code artifacts similar to Claude's code artifacts.
We're missing features for:
document_generator
tool, but can't generate a text artifact without a file format like Claude.ai that is shown in a side panel).Claude doesn't support editing generated artifacts. ChatGPT has the Canvas feature for editing code or text.
What
Generate artifacts
For generating text artifacts, we need to add the following:
document_generator
to not generate a file output, but just markdownartifact.tsx
to text artifact and code artifact components that are viewing the artifactsEdit artifacts
Out of the scope of this ticket, but should be kept in mind when writing the code