Prompts
Props
Access and use variables in your prompts using props.
Access variables using curly braces and the props
object. Set test values for your variables in the test_settings:
Note: Test settings are only run automatically in the VSCode extension, or Puzzlet.
example.prompt.mdx
Complex Objects
You can use nested objects and arrays:
example.prompt.mdx
Best Practices
- Use descriptive variable names
- Set test props in test_settings
- Keep object structures simple and flat when possible
- Test with different variable values
Have Questions?
We’re here to help! Choose the best way to reach us:
Join our Discord community for quick answers and discussions
Email us at hello@puzzlet.ai for support
Schedule an Enterprise Demo to learn about our business solutions
Was this page helpful?