def METHOD_NAME(
    self, messages: Sequence[ChatMessage], **kwargs: Any
) -> ChatResponseGen:
    del messages  # unused
    full_message = self._responses[self._i]
    self._i += 1
    role = full_message.role
    full_text = full_message.content or ""
    text_so_far = ""
    for token in full_text:
        text_so_far += token
        message = ChatMessage(
            content=text_so_far,
            role=role,
        )
        yield ChatResponse(
            message=message,
            delta=token,
        )