Member Junction
    Preparing search index...

    Variable GEMINI_LEADING_USER_TURN_TEXTConst

    GEMINI_LEADING_USER_TURN_TEXT: "Proceed with the task described in the system instructions." = 'Proceed with the task described in the system instructions.'

    The user turn every Gemini conversation opens with.

    It is the prompt-cache anchor. Gemini's implicit cache reuses a previous request only when the new request repeats it past the system instruction into the first contents turn; a match on the system instruction alone is not reused (measured on Gemini 3.8 Flash: 0 of 8 such requests hit, against 7 of 8 with this fixed opening turn, each caching all but the last ~2,050 tokens of the previous request). An agent loop changes its first turn between its first and second call (the first call's only turn is per-turn state that the second call replaces), so without a fixed opening its second call never hits. A conversation whose first turn already is this text is left as it is.

    Gemini requires contents to begin with a user turn, and enforces it hard for tool calls: a functionCall turn is valid only "immediately after a user turn or after a function response turn" (400 INVALID_ARGUMENT otherwise). An agent whose whole task lives in the system instruction — Skip's agents send no user message at all — reaches its tool-result turn with [model(functionCall…), user(functionResponse…)] and is rejected; the same agent on the envelope path was tolerated only because a leading model TEXT turn is. The text names where the task is, so the model reads it as the opening request rather than as noise.