Expand description
Unbounded MPSC work queue for the Assistants API run processor.
Route handlers submit RunWorkItems through the RunQueueSender when a
new run is created. The spawn_run_worker background task drains
RunQueueReceiver and executes each run against the inference engine.
Structs§
- RunQueue
Receiver - Receiver half of the run work queue.
- RunQueue
Sender - Sender half of the run work queue.
- RunWork
Item - A single item submitted to the run worker queue.
Functions§
- new_
run_ queue - Create an unbounded run work queue.