You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! This is a known limitation as there's no way for us to dynamically infer a strong type from a text template, but you're right that we should probably document it.
I've filed #417 as one way to help with this problem but you're right that we should at least document it.
Describe the bug
Schemas in dotprompt managed prompts don't propagate through to typescript. Input and output types are 'unknown'.
To Reproduce
generate
data()
orobject()
on the response is also 'unknown'Expected behavior
Input/output types are correctly typed.
At a minimum, update documentation to indicate that dotprompt prompts don't expose it.
The text was updated successfully, but these errors were encountered: