when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"Turn 1 of 5. Remember that the alpha token is NOVA. Reply exactly ACK-ALPHA.","thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.0,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":1024}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are running a deterministic Rig integration test. Preserve facts across turns. When a prompt says to use a tool, call exactly that tool before answering. Keep replies concise. When asked for the final code, return only the code with no markdown, quotes, or commentary.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Add x and y. This tool must be used for stress-test addition turns.","name":"stress_add","parameters":{"properties":{"x":{"description":"Left operand","type":"number"},"y":{"description":"Right operand","type":"number"}},"required":["x","y"],"type":"object"}},{"description":"Subtract y from x. This tool must be used for stress-test subtraction turns.","name":"stress_subtract","parameters":{"properties":{"x":{"description":"Value to subtract from","type":"number"},"y":{"description":"Value to subtract","type":"number"}},"required":["x","y"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"**My Immediate Response**\n\nOkay, this is straightforward. The user has given me a very basic instruction: recall a specific token and use it to craft a pre-defined response. No complex analysis, no external information needed, just immediate recall and replication. I understand the task completely. I just need to output \"ACK-ALPHA\". That''s it. Simple execution, no further consideration is necessary.\n","thought":true},{"text":"ACK-ALPHA","thoughtSignature":"signature_REDACTED_1"}],"role":"model"},"finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_1","usageMetadata":{"candidatesTokenCount":3,"promptTokenCount":204,"promptTokensDetails":[{"modality":"TEXT","tokenCount":204}],"serviceTier":"standard","thoughtsTokenCount":41,"totalTokenCount":248}}'
---
when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"Turn 1 of 5. Remember that the alpha token is NOVA. Reply exactly ACK-ALPHA.","thought":false}],"role":"user"},{"parts":[{"text":"**My Immediate Response**\n\nOkay, this is straightforward. The user has given me a very basic instruction: recall a specific token and use it to craft a pre-defined response. No complex analysis, no external information needed, just immediate recall and replication. I understand the task completely. I just need to output \"ACK-ALPHA\". That''s it. Simple execution, no further consideration is necessary.\n","thought":true},{"text":"ACK-ALPHA","thought":false}],"role":"model"},{"parts":[{"text":"Turn 2 of 5. Use the stress_add tool to compute 123 + 77. Remember the tool result as SUM. Reply exactly SUM=<tool result>.","thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.0,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":1024}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are running a deterministic Rig integration test. Preserve facts across turns. When a prompt says to use a tool, call exactly that tool before answering. Keep replies concise. When asked for the final code, return only the code with no markdown, quotes, or commentary.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Add x and y. This tool must be used for stress-test addition turns.","name":"stress_add","parameters":{"properties":{"x":{"description":"Left operand","type":"number"},"y":{"description":"Right operand","type":"number"}},"required":["x","y"],"type":"object"}},{"description":"Subtract y from x. This tool must be used for stress-test subtraction turns.","name":"stress_subtract","parameters":{"properties":{"x":{"description":"Value to subtract from","type":"number"},"y":{"description":"Value to subtract","type":"number"}},"required":["x","y"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"Okay, here''s my summary, presented as a stream of thought:\n\n**Calculating a Simple Sum with `stress_add`**\n\nAlright, the user wants me to crunch some numbers. Specifically, they want me to calculate 123 + 77. No problem. That looks like a job for the `stress_add` tool. So, my immediate next step is to *call* that tool, feed it the numbers 123 and 77, and let it do its thing.\n\nOnce I have the output from the `stress_add` tool, I need to remember that result. I need to internally label it as \"SUM.\" Gotta make sure I don''t lose track of that crucial piece of information. Finally, I need to format my response just right, because the user specified a particular output structure. I''ll make sure it''s perfect.\n","thought":true},{"functionCall":{"args":{"x":123,"y":77},"name":"stress_add"},"thoughtSignature":"signature_REDACTED_2"}],"role":"model"},"finishMessage":"Model generated function call(s).","finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_2","usageMetadata":{"candidatesTokenCount":23,"promptTokenCount":330,"promptTokensDetails":[{"modality":"TEXT","tokenCount":330}],"serviceTier":"standard","thoughtsTokenCount":43,"totalTokenCount":396}}'
---
when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"Turn 1 of 5. Remember that the alpha token is NOVA. Reply exactly ACK-ALPHA.","thought":false}],"role":"user"},{"parts":[{"text":"**My Immediate Response**\n\nOkay, this is straightforward. The user has given me a very basic instruction: recall a specific token and use it to craft a pre-defined response. No complex analysis, no external information needed, just immediate recall and replication. I understand the task completely. I just need to output \"ACK-ALPHA\". That''s it. Simple execution, no further consideration is necessary.\n","thought":true},{"text":"ACK-ALPHA","thought":false}],"role":"model"},{"parts":[{"text":"Turn 2 of 5. Use the stress_add tool to compute 123 + 77. Remember the tool result as SUM. Reply exactly SUM=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"Okay, here''s my summary, presented as a stream of thought:\n\n**Calculating a Simple Sum with `stress_add`**\n\nAlright, the user wants me to crunch some numbers. Specifically, they want me to calculate 123 + 77. No problem. That looks like a job for the `stress_add` tool. So, my immediate next step is to *call* that tool, feed it the numbers 123 and 77, and let it do its thing.\n\nOnce I have the output from the `stress_add` tool, I need to remember that result. I need to internally label it as \"SUM.\" Gotta make sure I don''t lose track of that crucial piece of information. Finally, I need to format my response just right, because the user specified a particular output structure. I''ll make sure it''s perfect.\n","thought":true},{"functionCall":{"args":{"x":123,"y":77},"name":"stress_add"},"thought":false,"thoughtSignature":"signature_REDACTED_2"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_add","response":{"result":200}},"thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.0,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":1024}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are running a deterministic Rig integration test. Preserve facts across turns. When a prompt says to use a tool, call exactly that tool before answering. Keep replies concise. When asked for the final code, return only the code with no markdown, quotes, or commentary.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Add x and y. This tool must be used for stress-test addition turns.","name":"stress_add","parameters":{"properties":{"x":{"description":"Left operand","type":"number"},"y":{"description":"Right operand","type":"number"}},"required":["x","y"],"type":"object"}},{"description":"Subtract y from x. This tool must be used for stress-test subtraction turns.","name":"stress_subtract","parameters":{"properties":{"x":{"description":"Value to subtract from","type":"number"},"y":{"description":"Value to subtract","type":"number"}},"required":["x","y"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"SUM={''stress_add_response'': {''result'': 200}}"}],"role":"model"},"finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_3","usageMetadata":{"candidatesTokenCount":16,"promptTokenCount":556,"promptTokensDetails":[{"modality":"TEXT","tokenCount":556}],"serviceTier":"standard","totalTokenCount":572}}'
---
when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"Turn 1 of 5. Remember that the alpha token is NOVA. Reply exactly ACK-ALPHA.","thought":false}],"role":"user"},{"parts":[{"text":"**My Immediate Response**\n\nOkay, this is straightforward. The user has given me a very basic instruction: recall a specific token and use it to craft a pre-defined response. No complex analysis, no external information needed, just immediate recall and replication. I understand the task completely. I just need to output \"ACK-ALPHA\". That''s it. Simple execution, no further consideration is necessary.\n","thought":true},{"text":"ACK-ALPHA","thought":false}],"role":"model"},{"parts":[{"text":"Turn 2 of 5. Use the stress_add tool to compute 123 + 77. Remember the tool result as SUM. Reply exactly SUM=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"Okay, here''s my summary, presented as a stream of thought:\n\n**Calculating a Simple Sum with `stress_add`**\n\nAlright, the user wants me to crunch some numbers. Specifically, they want me to calculate 123 + 77. No problem. That looks like a job for the `stress_add` tool. So, my immediate next step is to *call* that tool, feed it the numbers 123 and 77, and let it do its thing.\n\nOnce I have the output from the `stress_add` tool, I need to remember that result. I need to internally label it as \"SUM.\" Gotta make sure I don''t lose track of that crucial piece of information. Finally, I need to format my response just right, because the user specified a particular output structure. I''ll make sure it''s perfect.\n","thought":true},{"functionCall":{"args":{"x":123,"y":77},"name":"stress_add"},"thought":false,"thoughtSignature":"signature_REDACTED_2"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_add","response":{"result":200}},"thought":false}],"role":"user"},{"parts":[{"text":"SUM={''stress_add_response'': {''result'': 200}}","thought":false}],"role":"model"},{"parts":[{"text":"Turn 3 of 5. Use the stress_subtract tool to compute the remembered SUM minus 58. If you need concrete tool arguments, use x=200 and y=58. Remember the tool result as DELTA. Reply exactly DELTA=<tool result>.","thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.0,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":1024}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are running a deterministic Rig integration test. Preserve facts across turns. When a prompt says to use a tool, call exactly that tool before answering. Keep replies concise. When asked for the final code, return only the code with no markdown, quotes, or commentary.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Add x and y. This tool must be used for stress-test addition turns.","name":"stress_add","parameters":{"properties":{"x":{"description":"Left operand","type":"number"},"y":{"description":"Right operand","type":"number"}},"required":["x","y"],"type":"object"}},{"description":"Subtract y from x. This tool must be used for stress-test subtraction turns.","name":"stress_subtract","parameters":{"properties":{"x":{"description":"Value to subtract from","type":"number"},"y":{"description":"Value to subtract","type":"number"}},"required":["x","y"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"**My Approach to Using the Stress Subtraction Tool**\n\nOkay, so I''m aiming to leverage that `stress_subtract` tool. I''ve got my parameters locked and loaded: `x=200` and `y=58`. Simple enough. My next step, naturally, is to execute that function call. I need to make it explicitly `stress_subtract(x=200, y=58)`. And, critically, I need to capture the output – that crucial result. Let''s assign it to a variable, I think I''ll call that `DELTA`. This `DELTA` is the key, the output I''ll be working with. I need to remember the value of `DELTA` after I use it.\n","thought":true},{"functionCall":{"args":{"x":200,"y":58},"name":"stress_subtract"},"thoughtSignature":"signature_REDACTED_3"}],"role":"model"},"finishMessage":"Model generated function call(s).","finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_4","usageMetadata":{"candidatesTokenCount":23,"promptTokenCount":632,"promptTokensDetails":[{"modality":"TEXT","tokenCount":632}],"serviceTier":"standard","thoughtsTokenCount":60,"totalTokenCount":715}}'
---
when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"Turn 1 of 5. Remember that the alpha token is NOVA. Reply exactly ACK-ALPHA.","thought":false}],"role":"user"},{"parts":[{"text":"**My Immediate Response**\n\nOkay, this is straightforward. The user has given me a very basic instruction: recall a specific token and use it to craft a pre-defined response. No complex analysis, no external information needed, just immediate recall and replication. I understand the task completely. I just need to output \"ACK-ALPHA\". That''s it. Simple execution, no further consideration is necessary.\n","thought":true},{"text":"ACK-ALPHA","thought":false}],"role":"model"},{"parts":[{"text":"Turn 2 of 5. Use the stress_add tool to compute 123 + 77. Remember the tool result as SUM. Reply exactly SUM=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"Okay, here''s my summary, presented as a stream of thought:\n\n**Calculating a Simple Sum with `stress_add`**\n\nAlright, the user wants me to crunch some numbers. Specifically, they want me to calculate 123 + 77. No problem. That looks like a job for the `stress_add` tool. So, my immediate next step is to *call* that tool, feed it the numbers 123 and 77, and let it do its thing.\n\nOnce I have the output from the `stress_add` tool, I need to remember that result. I need to internally label it as \"SUM.\" Gotta make sure I don''t lose track of that crucial piece of information. Finally, I need to format my response just right, because the user specified a particular output structure. I''ll make sure it''s perfect.\n","thought":true},{"functionCall":{"args":{"x":123,"y":77},"name":"stress_add"},"thought":false,"thoughtSignature":"signature_REDACTED_2"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_add","response":{"result":200}},"thought":false}],"role":"user"},{"parts":[{"text":"SUM={''stress_add_response'': {''result'': 200}}","thought":false}],"role":"model"},{"parts":[{"text":"Turn 3 of 5. Use the stress_subtract tool to compute the remembered SUM minus 58. If you need concrete tool arguments, use x=200 and y=58. Remember the tool result as DELTA. Reply exactly DELTA=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"**My Approach to Using the Stress Subtraction Tool**\n\nOkay, so I''m aiming to leverage that `stress_subtract` tool. I''ve got my parameters locked and loaded: `x=200` and `y=58`. Simple enough. My next step, naturally, is to execute that function call. I need to make it explicitly `stress_subtract(x=200, y=58)`. And, critically, I need to capture the output – that crucial result. Let''s assign it to a variable, I think I''ll call that `DELTA`. This `DELTA` is the key, the output I''ll be working with. I need to remember the value of `DELTA` after I use it.\n","thought":true},{"functionCall":{"args":{"x":200,"y":58},"name":"stress_subtract"},"thought":false,"thoughtSignature":"signature_REDACTED_3"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_subtract","response":{"result":142}},"thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.0,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":1024}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are running a deterministic Rig integration test. Preserve facts across turns. When a prompt says to use a tool, call exactly that tool before answering. Keep replies concise. When asked for the final code, return only the code with no markdown, quotes, or commentary.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Add x and y. This tool must be used for stress-test addition turns.","name":"stress_add","parameters":{"properties":{"x":{"description":"Left operand","type":"number"},"y":{"description":"Right operand","type":"number"}},"required":["x","y"],"type":"object"}},{"description":"Subtract y from x. This tool must be used for stress-test subtraction turns.","name":"stress_subtract","parameters":{"properties":{"x":{"description":"Value to subtract from","type":"number"},"y":{"description":"Value to subtract","type":"number"}},"required":["x","y"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"DELTA={''stress_subtract_response'': {''result'': 142}}"}],"role":"model"},"finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_5","usageMetadata":{"candidatesTokenCount":16,"promptTokenCount":831,"promptTokensDetails":[{"modality":"TEXT","tokenCount":831}],"serviceTier":"standard","totalTokenCount":847}}'
---
when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"Turn 1 of 5. Remember that the alpha token is NOVA. Reply exactly ACK-ALPHA.","thought":false}],"role":"user"},{"parts":[{"text":"**My Immediate Response**\n\nOkay, this is straightforward. The user has given me a very basic instruction: recall a specific token and use it to craft a pre-defined response. No complex analysis, no external information needed, just immediate recall and replication. I understand the task completely. I just need to output \"ACK-ALPHA\". That''s it. Simple execution, no further consideration is necessary.\n","thought":true},{"text":"ACK-ALPHA","thought":false}],"role":"model"},{"parts":[{"text":"Turn 2 of 5. Use the stress_add tool to compute 123 + 77. Remember the tool result as SUM. Reply exactly SUM=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"Okay, here''s my summary, presented as a stream of thought:\n\n**Calculating a Simple Sum with `stress_add`**\n\nAlright, the user wants me to crunch some numbers. Specifically, they want me to calculate 123 + 77. No problem. That looks like a job for the `stress_add` tool. So, my immediate next step is to *call* that tool, feed it the numbers 123 and 77, and let it do its thing.\n\nOnce I have the output from the `stress_add` tool, I need to remember that result. I need to internally label it as \"SUM.\" Gotta make sure I don''t lose track of that crucial piece of information. Finally, I need to format my response just right, because the user specified a particular output structure. I''ll make sure it''s perfect.\n","thought":true},{"functionCall":{"args":{"x":123,"y":77},"name":"stress_add"},"thought":false,"thoughtSignature":"signature_REDACTED_2"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_add","response":{"result":200}},"thought":false}],"role":"user"},{"parts":[{"text":"SUM={''stress_add_response'': {''result'': 200}}","thought":false}],"role":"model"},{"parts":[{"text":"Turn 3 of 5. Use the stress_subtract tool to compute the remembered SUM minus 58. If you need concrete tool arguments, use x=200 and y=58. Remember the tool result as DELTA. Reply exactly DELTA=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"**My Approach to Using the Stress Subtraction Tool**\n\nOkay, so I''m aiming to leverage that `stress_subtract` tool. I''ve got my parameters locked and loaded: `x=200` and `y=58`. Simple enough. My next step, naturally, is to execute that function call. I need to make it explicitly `stress_subtract(x=200, y=58)`. And, critically, I need to capture the output – that crucial result. Let''s assign it to a variable, I think I''ll call that `DELTA`. This `DELTA` is the key, the output I''ll be working with. I need to remember the value of `DELTA` after I use it.\n","thought":true},{"functionCall":{"args":{"x":200,"y":58},"name":"stress_subtract"},"thought":false,"thoughtSignature":"signature_REDACTED_3"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_subtract","response":{"result":142}},"thought":false}],"role":"user"},{"parts":[{"text":"DELTA={''stress_subtract_response'': {''result'': 142}}","thought":false}],"role":"model"},{"parts":[{"text":"Turn 4 of 5. Remember that the suffix token is LIME. Also remember that the final code format is <ALPHA>-<SUM>-<DELTA>-<SUFFIX>. Reply exactly ACK-SUFFIX.","thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.0,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":1024}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are running a deterministic Rig integration test. Preserve facts across turns. When a prompt says to use a tool, call exactly that tool before answering. Keep replies concise. When asked for the final code, return only the code with no markdown, quotes, or commentary.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Add x and y. This tool must be used for stress-test addition turns.","name":"stress_add","parameters":{"properties":{"x":{"description":"Left operand","type":"number"},"y":{"description":"Right operand","type":"number"}},"required":["x","y"],"type":"object"}},{"description":"Subtract y from x. This tool must be used for stress-test subtraction turns.","name":"stress_subtract","parameters":{"properties":{"x":{"description":"Value to subtract from","type":"number"},"y":{"description":"Value to subtract","type":"number"}},"required":["x","y"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"Okay, here''s my understanding of the situation and how I''ll respond, keeping in mind I''m dealing with a real expert here:\n\n**My Processing of the User''s Request**\n\nAlright, I''ve got it. The user has given me a very specific directive, which is actually pretty straightforward, but it''s crucial I get this exactly right. My primary task is to internalize these two critical pieces of information for recall: the suffix token \"LIME\" and the final code format that will be used to structure the output to the user. My immediate reaction needs to signal that I''m paying attention to the suffix token, that \"LIME\". It''s a key piece of data and I have to demonstrate that it''s been registered. I need to acknowledge that and remember it. And also keep in mind that the *format* of my output is the ultimate goal. I must be precise with both pieces of data.\n\nSo, first things first, I''ll provide the acknowledgment they''ve requested. Then, I will internalize the format and be certain to use that format.\n","thought":true},{"text":"ACK-SUFFIX","thoughtSignature":"signature_REDACTED_4"}],"role":"model"},"finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_6","usageMetadata":{"candidatesTokenCount":3,"promptTokenCount":891,"promptTokensDetails":[{"modality":"TEXT","tokenCount":891}],"serviceTier":"standard","thoughtsTokenCount":38,"totalTokenCount":932}}'
---
when:
  path: /v1beta/models/gemini-2.5-flash:generateContent
  method: POST
  query_param:
  - name: key
    value: '[REDACTED]'
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"contents":[{"parts":[{"text":"Turn 1 of 5. Remember that the alpha token is NOVA. Reply exactly ACK-ALPHA.","thought":false}],"role":"user"},{"parts":[{"text":"**My Immediate Response**\n\nOkay, this is straightforward. The user has given me a very basic instruction: recall a specific token and use it to craft a pre-defined response. No complex analysis, no external information needed, just immediate recall and replication. I understand the task completely. I just need to output \"ACK-ALPHA\". That''s it. Simple execution, no further consideration is necessary.\n","thought":true},{"text":"ACK-ALPHA","thought":false}],"role":"model"},{"parts":[{"text":"Turn 2 of 5. Use the stress_add tool to compute 123 + 77. Remember the tool result as SUM. Reply exactly SUM=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"Okay, here''s my summary, presented as a stream of thought:\n\n**Calculating a Simple Sum with `stress_add`**\n\nAlright, the user wants me to crunch some numbers. Specifically, they want me to calculate 123 + 77. No problem. That looks like a job for the `stress_add` tool. So, my immediate next step is to *call* that tool, feed it the numbers 123 and 77, and let it do its thing.\n\nOnce I have the output from the `stress_add` tool, I need to remember that result. I need to internally label it as \"SUM.\" Gotta make sure I don''t lose track of that crucial piece of information. Finally, I need to format my response just right, because the user specified a particular output structure. I''ll make sure it''s perfect.\n","thought":true},{"functionCall":{"args":{"x":123,"y":77},"name":"stress_add"},"thought":false,"thoughtSignature":"signature_REDACTED_2"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_add","response":{"result":200}},"thought":false}],"role":"user"},{"parts":[{"text":"SUM={''stress_add_response'': {''result'': 200}}","thought":false}],"role":"model"},{"parts":[{"text":"Turn 3 of 5. Use the stress_subtract tool to compute the remembered SUM minus 58. If you need concrete tool arguments, use x=200 and y=58. Remember the tool result as DELTA. Reply exactly DELTA=<tool result>.","thought":false}],"role":"user"},{"parts":[{"text":"**My Approach to Using the Stress Subtraction Tool**\n\nOkay, so I''m aiming to leverage that `stress_subtract` tool. I''ve got my parameters locked and loaded: `x=200` and `y=58`. Simple enough. My next step, naturally, is to execute that function call. I need to make it explicitly `stress_subtract(x=200, y=58)`. And, critically, I need to capture the output – that crucial result. Let''s assign it to a variable, I think I''ll call that `DELTA`. This `DELTA` is the key, the output I''ll be working with. I need to remember the value of `DELTA` after I use it.\n","thought":true},{"functionCall":{"args":{"x":200,"y":58},"name":"stress_subtract"},"thought":false,"thoughtSignature":"signature_REDACTED_3"}],"role":"model"},{"parts":[{"functionResponse":{"name":"stress_subtract","response":{"result":142}},"thought":false}],"role":"user"},{"parts":[{"text":"DELTA={''stress_subtract_response'': {''result'': 142}}","thought":false}],"role":"model"},{"parts":[{"text":"Turn 4 of 5. Remember that the suffix token is LIME. Also remember that the final code format is <ALPHA>-<SUM>-<DELTA>-<SUFFIX>. Reply exactly ACK-SUFFIX.","thought":false}],"role":"user"},{"parts":[{"text":"Okay, here''s my understanding of the situation and how I''ll respond, keeping in mind I''m dealing with a real expert here:\n\n**My Processing of the User''s Request**\n\nAlright, I''ve got it. The user has given me a very specific directive, which is actually pretty straightforward, but it''s crucial I get this exactly right. My primary task is to internalize these two critical pieces of information for recall: the suffix token \"LIME\" and the final code format that will be used to structure the output to the user. My immediate reaction needs to signal that I''m paying attention to the suffix token, that \"LIME\". It''s a key piece of data and I have to demonstrate that it''s been registered. I need to acknowledge that and remember it. And also keep in mind that the *format* of my output is the ultimate goal. I must be precise with both pieces of data.\n\nSo, first things first, I''ll provide the acknowledgment they''ve requested. Then, I will internalize the format and be certain to use that format.\n","thought":true},{"text":"ACK-SUFFIX","thought":false}],"role":"model"},{"parts":[{"text":"Turn 5 of 5. Using only facts stored in the previous turns, produce the final code. Reply with the code only.","thought":false}],"role":"user"}],"generationConfig":{"maxOutputTokens":4096,"temperature":0.0,"thinkingConfig":{"includeThoughts":true,"thinkingBudget":1024}},"safetySettings":null,"systemInstruction":{"parts":[{"text":"You are running a deterministic Rig integration test. Preserve facts across turns. When a prompt says to use a tool, call exactly that tool before answering. Keep replies concise. When asked for the final code, return only the code with no markdown, quotes, or commentary.","thought":false}],"role":"model"},"toolConfig":null,"tools":[{"codeExecution":null,"functionDeclarations":[{"description":"Add x and y. This tool must be used for stress-test addition turns.","name":"stress_add","parameters":{"properties":{"x":{"description":"Left operand","type":"number"},"y":{"description":"Right operand","type":"number"}},"required":["x","y"],"type":"object"}},{"description":"Subtract y from x. This tool must be used for stress-test subtraction turns.","name":"stress_subtract","parameters":{"properties":{"x":{"description":"Value to subtract from","type":"number"},"y":{"description":"Value to subtract","type":"number"}},"required":["x","y"],"type":"object"}}]}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json; charset=UTF-8
  body: '{"candidates":[{"content":{"parts":[{"text":"**Final Code Generation**\n\nOkay, the user''s requesting the final code. I''ve got all the pieces I need from the previous turns. Let me see... I have NOVA for the ALPHA token from turn 1, so that''s good. Turn 2 gave me the SUM, which is actually the result of the `stress_add_response` calculation. I need to extract that value, which is 200. Got it. Turn 3 provided the DELTA, the `stress_subtract_response` result, and that''s 142. Perfect. Finally, I have LIME for the SUFFIX token, from turn 4. \n\nAlright, putting it all together, it''s pretty straightforward. The final code will be NOVA-200-142-LIME. That''s the format they asked for, and I believe I have it correct. Ready to output.\n","thought":true},{"text":"NOVA-200-142-LIME","thoughtSignature":"signature_REDACTED_5"}],"role":"model"},"finishReason":"STOP","index":0}],"modelVersion":"gemini-2.5-flash","responseId":"id_REDACTED_7","usageMetadata":{"candidatesTokenCount":12,"promptTokenCount":1154,"promptTokensDetails":[{"modality":"TEXT","tokenCount":1154}],"serviceTier":"standard","thoughtsTokenCount":166,"totalTokenCount":1332}}'
