You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok I will create a ScheduleConfig class that will look something like this :
classScheduleFrequency(StrEnum):
DAILY="daily"WEEKLY="weekly"MONTHLY="monthly"CUSTOM="custom"classScheduleConfig(BaseModel):
frequency: ScheduleFrequencytime: time# Time of day to runday_of_week: Optional[int] =None# 0-6 for weeklyday_of_month: Optional[int] =None# 1-31 for monthlycustom_cron: Optional[str] =None# For custom cron expressionsdaily_schedule=ScheduleConfig(
frequency=ScheduleFrequency.DAILY,
time=time(hour=9, minute=0)
)
The you pass to the env. This is for the straightforward version. For the prompt detection I will prompt engineering a module to return a instance of the ScheduleConfig if the prompt mentionned a schedule.
The rest is just a basic cron job for running the agent.
The text was updated successfully, but these errors were encountered:
The abstraction for the cron job is a bit simple but OK to start with but 1) I have the same concern as #131 (comment) regarding the .env and a notte-config.yml file. 2) The part of the rest is just a basic cron job for running the agent requires some attention. How do you setup this cron job exactly?
Ok I will create a ScheduleConfig class that will look something like this :
The you pass to the env. This is for the straightforward version. For the prompt detection I will prompt engineering a module to return a instance of the ScheduleConfig if the prompt mentionned a schedule.
The rest is just a basic cron job for running the agent.
The text was updated successfully, but these errors were encountered: