diff --git a/FirebaseAI/Sources/Types/Public/Live/LiveServerMessage.swift b/FirebaseAI/Sources/Types/Public/Live/LiveServerMessage.swift index 5868efca07f..af6caca90c1 100644 --- a/FirebaseAI/Sources/Types/Public/Live/LiveServerMessage.swift +++ b/FirebaseAI/Sources/Types/Public/Live/LiveServerMessage.swift @@ -19,6 +19,10 @@ public struct LiveServerMessage: Sendable { let serverMessage: BidiGenerateContentServerMessage /// The type of message sent from the server. + /// - Important: Potential future additions to the ``Payload`` enum may not + /// trigger a semantic versioning major version update. If ensure forward + /// compatibility, client code should avoid exhaustive switch statements + /// over this enum by adding a default case. public enum Payload: Sendable { /// Content generated by the model in response to client messages. case content(LiveServerContent)