fix(responses): type completed_response as ResponsesAPIStreamingResponse to match base contract

This commit is contained in:
onatozmenn 2026-09-14 00:12:45 +03:00
parent 16d8abce3b
commit 135a9190b3
No known key found for this signature in database

View file

@ -276,7 +276,7 @@ class MCPEnhancedStreamingIterator(BaseResponsesAPIStreamingIterator):
# Streaming state management
self.phase = "initial_response" # initial_response -> mcp_discovery -> (continue_initial_response <-> tool_execution) -> finished
self.finished = False
self.completed_response: Any | None = None
self.completed_response: ResponsesAPIStreamingResponse | None = None
# Event queues and generation flags
self.mcp_discovery_events: list[ResponsesAPIStreamingResponse] = (