Skip to content

Commit 2422c71

Browse files
authored
docs(ai logic): Add docs callout 'LiveServerMessage.Payload' enum (#15395)
1 parent 9cb17fc commit 2422c71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

FirebaseAI/Sources/Types/Public/Live/LiveServerMessage.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public struct LiveServerMessage: Sendable {
1919
let serverMessage: BidiGenerateContentServerMessage
2020

2121
/// The type of message sent from the server.
22+
/// - Important: Potential future additions to the ``Payload`` enum may not
23+
/// trigger a semantic versioning major version update. If ensure forward
24+
/// compatibility, client code should avoid exhaustive switch statements
25+
/// over this enum by adding a default case.
2226
public enum Payload: Sendable {
2327
/// Content generated by the model in response to client messages.
2428
case content(LiveServerContent)

0 commit comments

Comments
 (0)