Class LiveClientContent.Builder

    • Constructor Detail

      • LiveClientContent.Builder

        LiveClientContent.Builder()
    • Method Detail

      • turns

         abstract LiveClientContent.Builder turns(List<Content> turns)

        Setter for turns.

        turns: The content appended to the current conversation with the model.

        For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history and latest request.

      • turns

        @CanIgnoreReturnValue() LiveClientContent.Builder turns(Array<Content> turns)

        Setter for turns.

        turns: The content appended to the current conversation with the model.

        For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history and latest request.

      • turns

        @CanIgnoreReturnValue() LiveClientContent.Builder turns(Array<Content.Builder> turnsBuilders)

        Setter for turns builder.

        turns: The content appended to the current conversation with the model.

        For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history and latest request.

      • turnComplete

         abstract LiveClientContent.Builder turnComplete(boolean turnComplete)

        Setter for turnComplete.

        turnComplete: If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server will await additional messages before starting generation.