Skip to content
New issue

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

Adding support for text artifacts (besides code artifacts) #419

Open
5 tasks
marcusschiesser opened this issue Nov 11, 2024 · 0 comments
Open
5 tasks

Adding support for text artifacts (besides code artifacts) #419

marcusschiesser opened this issue Nov 11, 2024 · 0 comments
Assignees

Comments

@marcusschiesser
Copy link
Collaborator

Why

We already implemented code artifacts similar to Claude's code artifacts.

We're missing features for:

  1. 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).
  2. 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-4 jump between the artifacts versions like shown in https://x.com/vercel_changes/status/1854980020369768545
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants