FirebaseAILogic Framework Reference

RealtimeInputConfig

public struct RealtimeInputConfig : Sendable

Configures model input behavior when generating content in the Live API via the realtime supported methods

Public Preview: This API is a public preview and may be subject to change.

  • How a model handles user input activity.

    Public Preview: This API is a public preview and may be subject to change.

    Declaration

    Swift

    public enum ActivityHandling : Sendable
  • How the model considers which input is included in the user's turn.

    Public Preview: This API is a public preview and may be subject to change.

    Declaration

    Swift

    public enum TurnCoverage : Sendable
  • Creates a new RealtimeInputConfig value.

    Declaration

    Swift

    public init(automaticActivityDetection: ActivityDetectionConfig? = nil,
                activityHandling: ActivityHandling? = nil,
                turnCoverage: TurnCoverage? = nil)

    Parameters

    automaticActivityDetection

    Configures automatic activity detection on the model.

    activityHandling

    Defines how the model treats user input activity.

    turnCoverage

    Defines which input is included in the user's turn, relative to the starting and ending of the activity.