FirebaseAILogic Framework Reference

ActivityHandling

public enum ActivityHandling : Sendable

How a model handles user input activity.

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

  • When the user sends input marking the start of activity, the model's current response will be cut-off immediately.

    The start of activity could be manually specified in the call, or the model could interpret it automatically (depending on the value of automaticActivityDetectionConfig).

    An example of activity starting implicitly could be the user speaking over the model.

    Declaration

    Swift

    case interrupt
  • When the user sends input marking the start of activity, the model will process it, but won't cut-off its current response.

    This is the inverse of interrupt.

    Declaration

    Swift

    case noInterrupt