Guardrails
Load .RAIL files
RAIL files help create structured outputs for prompts. To integrate with Gaurdrails, 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.
Creating a Rail Prompt
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
.
Rail file format
./src/ai/prompts/bank_run.Prompt.rail
For details on the RAIL file format, refer to the Guardrails Docs
Last updated