https://www.boundaryml.com logo
🟡 Can you use template_string in description?
# questions
c
Can you use template_string in description?
b
Not at the moment! Can I ask what the use case looks like? Trying to get a sense of if there are other language features that might help more in this case
c
Hi Sam, sorry I completely missed this message. But I have multiple class that have similar fields with multiline description, the examples are super made up but something like
Copy code
class Pineapple {
  sweetness_effects string[] @description(#"
  How sweet the pineapple is in concise natural language:

  Use an array to represent tier of sweetness and their effects:
  Tier 1:
  Properties found in common instances of the item
  Tier 2:
  Special properties only available in the rarest instances
  ...
  "#)
}

class Computer {
  power_consumption string[] @description(#"
  How much power does a compute unit consumes in verbose natural language:

  Use an array to represent tier of sweetness and their effects:
  Tier 1:
  Properties found in common instances of the item
  Tier 2:
  Special properties only available in the rarest instances
  ...
  "#)
}
b
Gotcha, thanks for the clarity there!