(
state: "OpenAIFormatter.ResponsesStream",
event_type: str,
**payload: Any,
)
| 9125 | |
| 9126 | @staticmethod |
| 9127 | def _response_event( |
| 9128 | state: "OpenAIFormatter.ResponsesStream", |
| 9129 | event_type: str, |
| 9130 | **payload: Any, |
| 9131 | ) -> Dict[str, Any]: |
| 9132 | state.sequence_number += 1 |
| 9133 | event = { |
| 9134 | "type": event_type, |
| 9135 | "sequence_number": state.sequence_number, |
| 9136 | } |
| 9137 | event.update(payload) |
| 9138 | return event |
| 9139 | |
| 9140 | def _response_stream_response( |
| 9141 | self, |
no outgoing calls
no test coverage detected