Zack
07/29/2025, 9:24 PMgreg (BAML)
08/07/2025, 11:20 PMZack
08/08/2025, 3:20 AMgreg (BAML)
08/08/2025, 4:15 AMclass MyResponseType {
my_normal_field int
my_other_normal_field string
// Add two fields to the return type for guardrail data.
user_validation_ok bool @assert( {{ this }} )
user_validation_reason string
}
function MyFunction(my_param_1: int, user_guard: string) {
client "GPT5"
prompt #"
This is my normal prompt. It uses {{ my_param_1 }}.
Additionally, indicate whether the data in the response
satisfies this criterion:
{{ user_guard }}, and indicate this to me through
the user_validation_ok and user_validation_reason fields.
"#
}greg (BAML)
08/08/2025, 4:15 AMspeedo2k
08/13/2025, 5:50 PM