Yara-AI Price Band Planner
POST/v1/skills/stream
Call the Yara-AI Price Band Planner skill with a new-api Token. This page is fixed to skill_key=app-price-band-structurer; the gateway maps it to model skill/app-price-band-structurer and returns streamed SSE events.
Request
Responses
- 200
- 401
- 403
Streamed SSE response.
API key is invalid or missing.
API key is disabled, expired, or has insufficient balance.
SSE Streaming Event Reference (Generic)
Each business message is pushed through SSE as data: {json}\n\n. Parse messages by top-level type.
type | Meaning | Frontend handling suggestion |
|---|---|---|
system | Stream initialization event (usually subtype=init) | Extract session_id and pass it back as session_id for follow-up turns |
assistant | Assistant output chunks (text/image/thinking, etc.) | Render as the main assistant stream |
user | SDK passthrough messages (usually tool execution output) | Mark as "tool output", do not treat as manually typed user input |
result | Success end signal for the current turn | Stop stream concatenation and mark completion |
error | Failure end signal for the current turn | Stop stream concatenation, show error, and allow retry |
done | Optional SDK passthrough end hint | Can be used to stop loading, but business completion should follow result / error |
Notes
- Heartbeats are SSE comment lines (for example
: heartbeat ...) instead ofdataevents, and can be ignored in business rendering.