Templates
If you haven’t already, please refer to the Template Overview page for an overview of Chat Templates.
Pulling a template using the SDK
Using the Baserun SDK, you can retrieve a template stored in Baserun’s Prompt Registry. This way, your templates don’t need to be committed in your code, and can be updated almost instantly.
Each template can be deployed to different environments, and the SDK will automatically pull the correct version based on the ENVIRONMENT
environment variable.