Skip to content

Rehydrate remote prompt parameters#1697

Merged
Joshua Wootonn (joshuawootonn) merged 2 commits into
mainfrom
josh/rehydrate-remote-prompt-parameters
Mar 31, 2026
Merged

Rehydrate remote prompt parameters#1697
Joshua Wootonn (joshuawootonn) merged 2 commits into
mainfrom
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

@joshuawootonn Joshua Wootonn (joshuawootonn) merged commit db57f90 into main Mar 31, 2026
50 of 51 checks passed
@joshuawootonn Joshua Wootonn (joshuawootonn) deleted the josh/rehydrate-remote-prompt-parameters branch March 31, 2026 19:15
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.

2 participants