Member Junction
    Preparing search index...

    Variable GEMINI_TRAILING_USER_TURN_TEXTConst

    GEMINI_TRAILING_USER_TURN_TEXT: "Continue with the task." = 'Continue with the task.'

    The user turn Gemini is given when a conversation would otherwise end with a model turn.

    Gemini answers a request whose last turn is the user's; one ending with a model turn is a 400 ("Requests ending with a model turn are not supported"). The driver sends the last turn as the new message, and the SDK always sends that message as a user turn, so a trailing model turn would otherwise go out with its own parts relabelled as the user's. It stays a model turn in the history instead, and this turn asks the model to go on. Gemini models here take no assistant prefill, so no caller means a trailing model turn as one.