https://www.boundaryml.com logo
🟑 Hey, Does BAML provide any macro for current da...
# questions
t
Hey, Does BAML provide any macro for current date time in jenga prompt ?
v
Sadly not yet. Time is a weird thing cause time zones and various rendering formats.
So we currently delegate to the host language
t
So currently only option is add time in every baml method arg ? I think it might be better if instead of arg we can use bamloptions for some of these custom macros, wdyt ?
v
Oh that’s an interesting idea. Let me think about it and see what ideas i can come with
The other issue with time specifically is also how testing works
Cause in tests you need to mock time as well
Otherwise your tests will constantly break
t
Cool, haven't tried baml option in test.