Skip to main content

Mia-AI PPT Structure-Preserving Polisher

POST 

/open/aigw/skill/stream

Call the Mia-AI PPT Structure-Preserving Polisher skill with a platform API key. This page is fixed to skillKey=ppt-structure-preserving-polisher and returns streamed SSE events.

Request

Responses

Streamed SSE response.

SSE Streaming Event Reference (Generic)

Each business message is pushed through SSE as data: {json}\n\n. Parse messages by top-level type.

typeMeaningFrontend handling suggestion
systemStream initialization event (usually subtype=init)Extract session_id and pass it back as conversationId for follow-up turns
assistantAssistant output chunks (text/image/thinking, etc.)Render as the main assistant stream
userSDK passthrough messages (usually tool execution output)Mark as "tool output", do not treat as manually typed user input
resultSuccess end signal for the current turnStop stream concatenation and mark completion
errorFailure end signal for the current turnStop stream concatenation, show error, and allow retry
doneOptional SDK passthrough end hintCan be used to stop loading, but business completion should follow result / error

Notes

  • Heartbeats are SSE comment lines (for example : heartbeat ...) instead of data events, and can be ignored in business rendering.