Serialize one event payload as an SSE frame (its `type` is the event name).
(data: dict[str, Any])
| 103 | |
| 104 | |
| 105 | def ev(data: dict[str, Any]) -> str: |
| 106 | """Serialize one event payload as an SSE frame (its `type` is the event name).""" |
| 107 | return f"event: {data['type']}\ndata: {json.dumps(data)}\n\n" |
| 108 | |
| 109 | |
| 110 | def message_start() -> str: |
no outgoing calls
no test coverage detected