v2
chat
chat

Schedule turn at budget reset

Changed on

Resume the chat's paused task, or send a message, when the budget resets.

It fires just after the exhausted window that refills last. A chat has at most one of each: a resume set again replaces the earlier one, and a send joins the message already waiting, so nothing written meanwhile is lost. Sending a message in the chat cancels a pending resume.

post/api/chat/sessions/{session_id}/at-reset

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Path parameters

session_idstring required

Request body

kind'resume' | 'send' required

"resume" picks the paused task back up; "send" sends message as the user's.

messagestring nullable

What to send. Required for send, ignored for resume.

Response

Successful Response

kind'resume' | 'send' required
run_atstring date-time required
messagestring nullable

Changes