iakashvekariya
09/27/2025, 10:27 AMclass PersonalInfo {
first_name string? @description("Candidate's first name.") @string.trim
last_name string? @description("Candidate's last name.") @string.to_upper_case
full_name string @description("Candidate's full name.")greg (BAML)
09/27/2025, 5:25 PMfirst_name and "Respond in uppercase" in the description of last_name, does the model not do that processing for you at inference-time?greg (BAML)
09/27/2025, 5:28 PM@string.trim and @string.to_upper_case appropriate additions to the class definition itself, or are they more properly part of a post-processing function that you would write?
In client code, you have a lot more power to post-process the PersonalInfo however you like, whereas in BAML we would only be able to support a limited number of @ functions, or let you specify the post-processing in jinja syntax, which hasn't provided a great user experience in the other attributes where we use it (checks and asserts).iakashvekariya
09/27/2025, 5:34 PMgreg (BAML)
09/27/2025, 5:37 PMiakashvekariya
09/27/2025, 5:37 PM