environment parameter selects the sandbox:
GeminiInteractions in Agno 2.7.2 sends Antigravity requests in the foreground and forces store=True so each interaction is retrievable. The Google API also supports background Antigravity execution. Use the Google Gen AI SDK directly when you need background execution.
Code
antigravity.py
Usage
1
Set up your virtual environment
2
Set your API key
3
Install dependencies
4
Run Agent
Save the code above as
antigravity.py, then run: