Skip to main content
POST
Stream a chat response

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Gövde

application/json
prompt
string
gerekli

The user prompt to send to the assistant.

Required string length: 1 - 2000
history
object[] | null

Prior conversation messages (max 20 turns).

Maximum array length: 20

Yanıt

200 - text/event-stream

SSE stream. Listen for text_delta events and read data.delta to render the response progressively.

event
enum<string>
gerekli
Mevcut seçenekler:
stream_start,
step_start,
text_start,
text_delta,
text_complete,
step_finish,
stream_end
Örnek:

"text_delta"

data
object
gerekli