when:
  path: /v1beta/interactions
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"generation_config":{"tool_choice":"any"},"input":[{"content":[{"text":"Use the add tool to sum 7 and 11.","type":"text"}],"type":"user_input"}],"model":"gemini-3-flash-preview","store":true,"stream":false,"tools":[{"description":"Add two numbers together","name":"add","parameters":{"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"type":"function"}]}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"created":"1970-01-01T00:00:00Z","id":"v1_REDACTED_1","model":"gemini-3-flash-preview","object":"interaction","service_tier":"standard","status":"requires_action","steps":[{"signature":"signature_REDACTED_1","type":"thought"},{"arguments":{"x":7,"y":11},"id":"fc_REDACTED_1","name":"add","type":"function_call"}],"updated":"1970-01-01T00:00:00Z","usage":{"input_tokens_by_modality":[{"modality":"text","tokens":65}],"total_cached_tokens":0,"total_input_tokens":65,"total_output_tokens":17,"total_thought_tokens":47,"total_tokens":129,"total_tool_use_tokens":0}}'
---
when:
  path: /v1beta/interactions
  method: POST
  query_param: []
  header:
  - name: accept
    value: '*/*'
  - name: content-type
    value: application/json
  body: '{"input":[{"content":[{"call_id":"fc_REDACTED_1","name":"add","result":{"sum":18.0},"type":"function_result"}],"type":"user_input"}],"model":"gemini-3-flash-preview","previous_interaction_id":"v1_REDACTED_1","stream":false}'
then:
  status: 200
  header:
  - name: content-type
    value: application/json
  body: '{"created":"1970-01-01T00:00:00Z","id":"v1_REDACTED_2","model":"gemini-3-flash-preview","object":"interaction","service_tier":"standard","status":"completed","steps":[{"signature":"signature_REDACTED_2","type":"thought"},{"content":[{"text":"The sum of 7 and 11 is 18.","type":"text"}],"type":"model_output"}],"updated":"1970-01-01T00:00:00Z","usage":{"input_tokens_by_modality":[{"modality":"text","tokens":59}],"total_cached_tokens":0,"total_input_tokens":59,"total_output_tokens":14,"total_thought_tokens":0,"total_tokens":73,"total_tool_use_tokens":0}}'
