Expression Contexts
In positions where the DSL requires an<expr>, you can use:
- String Literal:
"abc" - Variable:
$channel.key - Function:
concat("Bearer ", $channel.key)
Note: Variables are only evaluated when used as bare expressions. If you wrap them in double quotes (e.g., "$channel.key"), they are treated as plain string literals and will not be expanded.
Built-in Variables
These variables are populated at runtime dynamically for every request.channel.* context
$channel.base_url: The channel base URL (string). Overridesupstream_config.base_urlif set by the API caller.$channel.key: The downstream API key/token (string) meant to be passed to the upstream provider.
request.* context
$request.model: The original requested model name from the upstream JSON body.$request.model_mapped: The transformed model name, determined after anymodel_mapoperations fire.