Класс GenerationStopService
Requests a stop of the active BitrixGPT generation in a one-to-one copilot chat. This service stays thin: it resolves the active aiassistant session (for idempotency, the initiator check and the event payload) and publishes the im `OnCopilotGenerationStop` event. The actual stop — finalizing the pending "thinking" placeholder, dropping the session, marking the context as user-stopped, the system message and the terminal pull signal — is performed by the aiassistant subscriber synchronously inside the event send, so the stop is already done when this method returns "Stopped". Idempotent: a repeated stop finds no active session and only reports the current state.
Полное имя класса
Bitrix\Im\V2\Chat\Copilot\GenerationStopService
Методы
Методы и их характеристики