Powered by
🟡 Non-existent ctx.now Property Warning in BAML E...
# questions
a
arindamkhaled
12/12/2025, 12:05 AM
I tried to run the following example from the BAML website but am getting a non-existent ctx.now property warning:
arindamkhaled
12/12/2025, 12:05 AM
function GetCurrentTime(query: string) -> string { client "openai-responses/gpt-5-mini" prompt #" Current time: {{ ctx.now }} {{ ctx.output_format }} {{ _.role("user") }} {{ query }} "# }
arindamkhaled
12/12/2025, 12:06 AM
I'm looking to get the current year and am open to suggestions
a
aaronv (BAML)
12/12/2025, 12:09 AM
ah for getting any date you will need to pass it in as an arg
aaronv (BAML)
12/12/2025, 12:09 AM
we dont currently have that available as an internal thing
a
arindamkhaled
12/12/2025, 12:10 AM
ok cool
Previous
Next