def append_content()

in aidial_sdk/chat_completion/stage.py [0:0]


    def append_content(self, content: str):
        if not self._opened:
            raise runtime_error("Trying to append content to an unopened stage")
        if self._closed:
            raise runtime_error("Trying to append content to a closed stage")

        self._queue.put_nowait(
            ContentStageChunk(self._choice_index, self._stage_index, content)
        )