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