- Create a new thread with the specified assistant
- Send the specified input to that thread
Crons
client. To schedule a graph job, you need to pass a cron expression to inform the client when you want to run the graph. Cron
jobs are run in the background and do not interfere with normal invocations of the graph.
Setup
First, let’s set up our SDK client, assistant, and thread:- Python
- Javascript
- CURL
Cron job on a thread
To create a cron job associated with a specific thread, you can write:- Python
- Javascript
- CURL
Cron
jobs that are no longer useful. Otherwise you could rack up unwanted API charges to the LLM! You can delete a Cron
job using the following code:
- Python
- Javascript
- CURL
Cron job stateless
You can also create stateless cron jobs by using the following code:- Python
- Javascript
- CURL
- Python
- Javascript
- CURL