"I am currently testing the Gemini Deep Research Agent API. I encountered the following error while running the sample code provided on the API website. Could you explain the cause?
-–error log--------------------------------------------------------------------------------------------------------------------
PS D:\gemini> python .\interactions_api_test.py
D:\gemini\interactions_api_test.py:167: UserWarning: Interactions usage is experimental and may change in future versions.
interaction = client.interactions.create(
Traceback (most recent call last):
File “D:\gemini\interactions_api_test.py”, line 234, in
deep_research3()
File “D:\gemini\interactions_api_test.py”, line 167, in deep_research3
interaction = client.interactions.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\_utils\_utils.py”, line 298, in wrapper
return func(\*args, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\resources\interactions.py”, line 416, in create
return self.\_post(
^^^^^^^^^^^
File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\_base_client.py”, line 1301, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Python\Python312\Lib\site-packages\google\genai\_interactions\_base_client.py”, line 1088, in request
raise self.\_make_status_error_from_response(err.response) from None
google.genai._interactions.BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘There was a problem processing your request. You will not be charged.’, ‘code’: ‘invalid_request’}}