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 Gemini is given when a conversation would otherwise open with a model turn.
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.
The user turn Gemini is given when a conversation would otherwise open with a model turn.
Gemini requires
contentsto begin with a user turn, and enforces it hard for tool calls: afunctionCallturn 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.