/assistantSend the newest message only (a new user message, or the last assistant message carrying approval decisions); the history lives on the server. Answers an AI SDK 7 UI message stream (text/event-stream). Errors before streaming are problem+json.
collector.chatWithAssistant()assistant:useX-Request-Idobject
threadIdstring (uuid)requiredmessageobjectrequiredidstringrequiredroleenumrequireduserassistantpartsarray of anyrequiredat most 400 items
triggerenumsubmit-messageregenerate-message200OKA UI message stream (text/event-stream).
invalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
unauthorized: Not signed in (no session or token, or an expired one).
ai_budget_exhausted: The plan’s AI budget for the month is used up.
thread_out_of_datechange_already_made
thread_out_of_date: The conversation changed elsewhere; reload it.
change_already_made: That proposed change was already approved.
payload_too_large: The body is over 4,194,304 bytes, this operation’s limit.
rate_limitedtemporarily_blockedturn_in_progress
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
turn_in_progress: One turn per collector at a time.
internal: Something went wrong on our side (quote the requestId).
assistant_not_configured: The assistant isn’t set up here.