Guardrails
Load .RAIL files
Last updated
Load .RAIL files
Last updated
RAIL files help create structured outputs for prompts. To integrate with , create a .Prompt.rail
file in the ./src/ai/prompts
directory.
These files are built during build time and are accessible as environment variables named after the prompt's filename.
If the prompt was named BankRun
The file name should be ./src/ai/prompts/BankRun.Prompt.rail
And the environment variable will be process.env.BankRunPrompt
.
For details on the RAIL file format, refer to the