/bff/ai/agent-stream
Runs a multi-step agent loop. Model must be one of the allowed identifiers (see body.model). Max steps default 10, hard cap 12. SSE events: start, step-start, text-delta, reasoning-delta, tool-input-start, tool-call, tool-result, step-finish, finish, error.
bffpostBffAiAgent-stream
Parameters
4 body
Body · 4
messagesobject[]Required2 fieldsFull multi-turn conversation history including the last user turn.
modelstring | string | string | string | stringAllowed model identifier. Defaults to gemini-2.5-flash.
maxStepsstring | integerMaximum agent-loop steps before stopping. Hard-capped at 12 to bound cost per turn.
Range: 1–12
roomIdstringLength: 24–24
Request
POST /bff/ai/agent-stream
curl -X POST "https://api.bizkithub.com/bff/ai/agent-stream" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"messages": [
{
"content": "example_content"
}
],
"roomId": "example_roomId"
}'Response
JSON payload
{
"success": true
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.