//
// OpenRocky — Voice-first AI Agent
// https://github.com/openrocky
//
// Developed by everettjf with the assistance of Claude Code and Codex.
// Date: 2026-04-25
// Copyright (c) 2026 everettjf. All rights reserved.
//

import Foundation
@preconcurrency import SwiftOpenAI

/// `response.cancel` — tells the server to stop generating the in-progress response.
///
/// Sent when the user barges in. Without this, OpenAI continues to generate audio
/// after the user starts talking — wasting tokens and leaving the model with a
/// stale view of "I just said X" that conflicts with the truncated playback.
///
/// https://platform.openai.com/docs/api-reference/realtime-client-events/response/cancel
@RealtimeActor
struct OpenRockyRealtimeResponseCancel: Encodable {
    let type = "response.cancel"
}
