Skip to content

Rehydrate remote prompt parameters#1697

Open
Joshua Wootonn (joshuawootonn) wants to merge 2 commits intomainfrom
josh/rehydrate-remote-prompt-parameters
Open

Rehydrate remote prompt parameters#1697
Joshua Wootonn (joshuawootonn) wants to merge 2 commits intomainfrom
josh/rehydrate-remote-prompt-parameters

Conversation

@joshuawootonn
Copy link
Copy Markdown
Contributor

@joshuawootonn Joshua Wootonn (joshuawootonn) commented Mar 27, 2026

Summary

Parameters were being passed to the task as a raw object in the JS SDK, which meant loaded Parameters did not expose .build() for hydrating your prompt with values. With this change, a Prompt class is instantiated after schema validation, so that you can run build in your task to rehydrate your prompt. This matches the existing behavior of static Parameters, not including this in the initial implementation was an oversight on my part.

Demo

  • JavaScript demo:
CleanShot.2026-03-27.at.10.28.05.mp4
  • Python demo:
CleanShot.2026-03-27.at.10.31.21.mp4

Related PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant