Skip to main content

gen_ai__prompt__variable__key

Function gen_ai__prompt__variable__key 

Source
pub fn gen_ai__prompt__variable__key<T: Display>(value: T) -> String
Expand description

Instantiates the <key> placeholder in the attribute GEN_AI__PROMPT__VARIABLE__KEY (gen_ai.prompt.variable.<key>) with a concrete value.

ยงExample

use relay_conventions::interpolate::gen_ai__prompt__variable__key;
assert_eq!(gen_ai__prompt__variable__key("foobar"), "gen_ai.prompt.variable.foobar");