Skip to main content
POST
/
api
/
agent
/
chat
/
mock-stream
Stream an agent chat run with mock tools (dev only)
curl --request POST \
  --url https://app.puffle.ai/api/agent/chat/mock-stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {}
  ],
  "conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "currentPage": "<string>"
}
'
{
  "error": "Internal server error"
}

Overview

A dev-only twin of streamAgentChat that wires fixture tool implementations instead of hitting the real capability set. Used by the Puffle team when building agent-UI features where the real tools would be slow, destructive, or require live data the dev doesn’t have. Admin-only, 120 s max duration. Not intended for production clients.

AI agent notes

Dev-only. Don’t integrate against this in production — it returns synthetic tool results. Use Stream an agent chat run for real agent behavior.Identical stream shape. Same AI SDK UI message event format as the real streaming endpoint — useful for UI testing without the side effects.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
messages
object[]
required
conversationId
string<uuid>
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
currentPage
string
{key}
any

Response

SSE stream in AI SDK UI message format. Same event shape as streamAgentChat, but tool results are fixtures.