Appearance
Streaming adapter (SDK data-stream protocol seam)
Applies to: **/streaming/**/*.py
Checklist
- SDK data-stream framing goes through the installed adapter's encoder; hand-formatted chunks, concatenated dict literals, or manual
[DONE]markers are prohibited. - The adapter stays a thin protocol seam: no reusable application logic, and framework/SDK objects never cross into application or domain APIs.
EventStreamResponseand the declared error part own the HTTP surface; flagStreamingResponse(media_type=...)built in a route.- Secret-bearing model fields stay
repr=FalseorSecretStr; flag credential-named fields without protection.