Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PY] fix: StreamingResponse attributes shared between different Strea…
…mingResponse instances (#2321) [PY] fix: StreamingResponse attributes shared between different StreamingResponse instances ## Linked issues closes: #2320 ## Details Initializes `StreamingResponse` attributes for instance instead of class. Each `StreamingResponse` will handle its own attributes, hence, sequence number, queue and stream id. #### Change details **code snippets**: ```python def __init__(self, context: TurnContext) -> None: """ Initializes a new instance of the `StreamingResponse` class. :param context: The turn context. """ self._context = context self._next_sequence = 1 self._stream_id = "" self._message = "" self._attachments = [] self._ended = False self._citations = [] self._sensitivity_label = None self._enable_feedback_loop = False self._feedback_loop_type = None self._enable_generated_by_ai_label = False self._queue = [] self._queue_sync = None self._chunk_queued = False ``` ## Attestation Checklist - [X] My code follows the style guidelines of this project - I have checked for/fixed spelling, linting, and other errors - I have commented my code for clarity - I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient) - My changes generate no new warnings - I have added tests that validates my changes, and provides sufficient test coverage. I have tested with: - Local testing - E2E testing in Teams - New and existing unit tests pass locally with my changes ### Additional information > Feel free to add other relevant information below
- Loading branch information