tried the following
client = genai.Client(api_key=api_key)
response = await client.aio.models.generate_content(
model='gemini-2.0-flash',
contents="What's the sum of first 50 primes?",
config=types.GenerateContentConfig(
tools=[
types.Tool(google_search=types.GoogleSearch()),
types.Tool(code_execution=types.ToolCodeExecution()),
]
),
)
but get error
google.genai.errors.ClientError: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Code execution and search tool is not supported.', 'status': 'INVALID_ARGUMENT'}}