[Dev UI] Pass inputSchema in prompt-runner when exporting a prompt in Dev UI

Open Beginner friendly
#5,906 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Start at the Dev UI prompt runner's export or save flow and inspect the payload sent to the createPrompt API endpoint. Ensure the prompt's inputSchema or input.schema is included, then verify that an exported .prompt file preserves the input schema in its frontmatter.

Written by the indexing model from the issue text.

Description

devui papercuts
Summary

In the Developer UI's prompt runner, when exporting a prompt to a .prompt file, any input schema currently associated with the prompt is dropped during export.

Details

When a user runs or edits a prompt in the Dev UI prompt runner and clicks to export or save it as a .prompt file, the UI calls the createPrompt API endpoint. Because inputSchema is not passed in the request payload from the prompt runner UI component, any input schema defined on the prompt is lost in the exported .prompt frontmatter.

Expected Behavior

The Dev UI prompt runner component should include the prompt's inputSchema (or input.schema) in the payload sent to createPrompt so that exported .prompt files preserve input schema definitions.

Dominant language
TypeScript
Stars
6.5k
Forks
845
Avg merge
3d 22h
Merged PRs (30d)
56

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from genkit-ai/genkit

All issues in genkit-ai/genkit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.