BizKitHub
DocsAPI ReferenceBff/bff/ai/agent-stream
postBffAdmin BFF

/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

4 total
Body · 4
messagesobject[]Required2 fields

Full multi-turn conversation history including the last user turn.

modelstring | string | string | string | string

Allowed model identifier. Defaults to gemini-2.5-flash.

maxStepsstring | integer

Maximum agent-loop steps before stopping. Hard-capped at 12 to bound cost per turn.

Range: 112
roomIdstring
Length: 2424

Request

POST /bff/ai/agent-stream

post
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.

Get API Key