- Reusability: Share configurations across multiple evaluations
- Centralized management: Update parameters in one place for all evaluations
- Version control: Track parameter changes independently of evaluation code
- Environment management: Use different parameter values across dev, staging, and production
This is a TypeScript-only feature. Parameters require Braintrust TypeScript SDK v2.2.1 or later.
Create parameters
Define parameters in code and push to Braintrust:eval-config.ts
When you create parameters with default values, Braintrust automatically initializes them with those defaults. This means the first version of your parameter will already have the default values set, ready to use in evaluations or modify in the UI.
Specify parameter types
Define the structure and types of your parameters using Zod (TypeScript). You can combine these building blocks to create any structure your evaluation needs, whether simple flat configurations or complex nested objects. These type definitions ensure your parameters have the correct data types and constraints. Building blocks for creating parameter schemas:Edit parameters
Update parameter values or schemas in the UI or in code. Every edit creates a new version automatically, preserving the history of changes.- UI
- SDK
- Go to Parameters.
- Select the parameters to edit.
- Modify values in the editor.
- Click Save version.
Use in evaluations
Load parameters in yourEval() function using loadParameters(). Parameters are accessed in your task function via the parameters argument. For TypeScript type inference in your Eval’s task, pass your parameter type as a generic to loadParameters().
For remote evals, parameters automatically become editable controls in the playground UI, letting you modify values without changing code.
Pin to a version
Load a specific parameter version by ID:Assign to an environment
To assign a specific parameter version to an environment:- Go to Parameters.
- Open the parameter.
- Click the icon.
- Select an environment.
Create custom table views
The Parameters page supports custom table views to save your preferred filters, column order, and display settings. To create or update a custom table view:- Apply the filters and display settings you want.
- Open the menu and select Save view… or Save view as….
Custom table views are visible to all project members. Creating or editing a table view requires the Update project permission.
Set default table views
You can set default views at two levels:- Organization default: Visible to all members when they open the page. This applies per page — for example, you can set separate organization defaults for Logs, Experiments, and Review. To set an organization default, you need the Manage settings organization permission (included by default in the Owner role). See Access control for details.
- Personal default: Overrides the organization default for you only. Personal defaults are stored in your browser, so they do not carry over across devices or browsers.
- Switch to the view you want by selecting it from the menu.
- Open the menu again and hover over the currently selected view to reveal its submenu.
- Choose Set as personal default view or Set as organization default view.
- Open the menu and hover over the currently selected view to reveal its submenu.
- Choose Clear personal default view or Clear organization default view.
Next steps
- Run evaluations using your parameters
- Run remote evals when you need to run evaluations on your own infrastructure
- Manage environments to version parameters across environments
- Use playgrounds to iterate on parameter configurations