Skip to main content
Serve an AgentOS scheduler agent, then use a separate chat process to create and manage recurring schedules.
scheduler_tools_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run PgVector

5

Start AgentOS

Save the code above as scheduler_tools_agent.py, then run:
Keep the server running while you use the chat process.
6

Start the chat process

In a second terminal in the same directory, start the chat client:
Full source: cookbook/05_agent_os/12_scheduler/04_scheduler_tools_agent.py