Calendar variables

If you want your agent to be able to properly understand words like “tomorrow” or “Monday next week” it is not enough to include information about current date and time in your prompt. Even if LLM knows current date it has very vague idea about calendar – and will typically hallucinate on the relevant questions.

To mitigate this problem you may include the calendar variable to include detailed calendar information in your prompt.

Example
Calendar information:
{calendar}

By default, {calendar} variable provides information about past, current, and the next four weeks. If you need more information, use the {calendar(N)} syntax that provides information for N next weeks.